Skip to content

Commit be7a90b

Browse files
committed
add buildpacks-community/kpack
Signed-off-by: Sebastian Hoß <seb@xn--ho-hia.de>
1 parent 127a473 commit be7a90b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1005
-0
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# SPDX-FileCopyrightText: The kube-custom-resources-rs Authors
2+
# SPDX-License-Identifier: 0BSD
3+
4+
name: Release kpack_io
5+
on:
6+
schedule:
7+
- cron: 28 15 * * TUE
8+
workflow_dispatch:
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
steps:
15+
- id: checkout
16+
name: Checkout
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
- id: commits
21+
name: Count Commits
22+
run: echo "count=$(git rev-list --count HEAD --since='last Tuesday' -- custom-resources/kpack_io)" >> $GITHUB_OUTPUT
23+
- id: release
24+
name: Create Release Version
25+
if: steps.commits.outputs.count > 0
26+
run: echo "version=1.$(date --utc +'%Y%m%d').$(date --utc +'%-H%M%S')" >> $GITHUB_OUTPUT
27+
- name: Set up Rust
28+
if: steps.commits.outputs.count > 0
29+
uses: dtolnay/rust-toolchain@stable
30+
- name: Install cargo-workspaces
31+
uses: taiki-e/install-action@v2
32+
with:
33+
tool: cargo-edit
34+
- name: Cargo Version
35+
if: steps.commits.outputs.count > 0
36+
run: cargo set-version --package kcr_kpack_io ${{ steps.release.outputs.version }}
37+
- name: Publish to crates.io
38+
if: steps.commits.outputs.count > 0
39+
run: >
40+
cargo publish
41+
--allow-dirty
42+
--token ${{ secrets.CRATES_IO_TOKEN }}
43+
--package kcr_kpack_io
44+
--jobs 1
45+
--no-verify
46+
env:
47+
RUSTFLAGS: "-A warnings"
48+
- id: mail
49+
name: Send Mail
50+
if: steps.commits.outputs.count > 0
51+
uses: dawidd6/action-send-mail@v5
52+
with:
53+
server_address: ${{ secrets.MAIL_SERVER }}
54+
server_port: ${{ secrets.MAIL_PORT }}
55+
username: ${{ secrets.MAIL_USERNAME }}
56+
password: ${{ secrets.MAIL_PASSWORD }}
57+
subject: ${{ github.event.repository.name }}/kpack_io version ${{ steps.release.outputs.version }} published
58+
body: See ${{ steps.create_release.outputs.url }} for details.
59+
to: ${{ secrets.MAIL_RECIPIENT }}
60+
from: ${{ secrets.MAIL_SENDER }}
61+
- id: matrix
62+
name: Send Matrix Message
63+
if: steps.commits.outputs.count > 0
64+
uses: s3krit/matrix-message-action@v0.0.3
65+
with:
66+
room_id: ${{ secrets.MATRIX_ROOM_ID }}
67+
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
68+
message: ${{ github.event.repository.name }}/kpack_io version [${{ steps.release.outputs.version }}](${{ steps.create_release.outputs.url }}) published
69+
server: ${{ secrets.MATRIX_SERVER }}

.reuse/dep5

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,10 @@ Files: crd-catalog/bpfman/bpfman-operator/*
331331
Copyright: The bpfman/bpfman-operator Authors
332332
License: Apache-2.0
333333

334+
Files: crd-catalog/buildpacks-community/kpack/*
335+
Copyright: The buildpacks-community/kpack Authors
336+
License: Apache-2.0
337+
334338
Files: crd-catalog/carlosedp/lbconfig-operator/*
335339
Copyright: The carlosedp/lbconfig-operator Authors
336340
License: MIT

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ members = [
217217
"custom-resources/kmm_sigs_x_k8s_io",
218218
"custom-resources/kms_services_k8s_aws",
219219
"custom-resources/kom_kaiso_github_io",
220+
"custom-resources/kpack_io",
220221
"custom-resources/kuadrant_io",
221222
"custom-resources/kube_green_com",
222223
"custom-resources/kubean_io",

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ The following groups are available:
257257
- [kmm.sigs.x-k8s.io](https://crates.io/crates/kcr_kmm_sigs_x_k8s_io)
258258
- [kms.services.k8s.aws](https://crates.io/crates/kcr_kms_services_k8s_aws)
259259
- [kom.kaiso.github.io](https://crates.io/crates/kcr_kom_kaiso_github_io)
260+
- [kpack.io](https://crates.io/crates/kcr_kpack_io)
260261
- [kuadrant.io](https://crates.io/crates/kcr_kuadrant_io)
261262
- [kube-green.com](https://crates.io/crates/kcr_kube_green_com)
262263
- [kubean.io](https://crates.io/crates/kcr_kubean_io)

code-generator/src/catalog.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,23 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
906906
],
907907
ignores: &[],
908908
},
909+
UpstreamSource {
910+
project_name: "buildpacks-community/kpack",
911+
license: APACHE_V2,
912+
urls: &[
913+
"https://github.com/buildpacks-community/kpack/blob/main/config/build.yaml",
914+
"https://github.com/buildpacks-community/kpack/blob/main/config/builder.yaml",
915+
"https://github.com/buildpacks-community/kpack/blob/main/config/buildpack.yaml",
916+
"https://github.com/buildpacks-community/kpack/blob/main/config/clusterbuilder.yaml",
917+
"https://github.com/buildpacks-community/kpack/blob/main/config/clusterbuildpack.yaml",
918+
"https://github.com/buildpacks-community/kpack/blob/main/config/clusterlifecycle.yaml",
919+
"https://github.com/buildpacks-community/kpack/blob/main/config/clusterstack.yaml",
920+
"https://github.com/buildpacks-community/kpack/blob/main/config/clusterstore.yaml",
921+
"https://github.com/buildpacks-community/kpack/blob/main/config/image.yaml",
922+
"https://github.com/buildpacks-community/kpack/blob/main/config/sourceresolver.yaml",
923+
],
924+
ignores: &[],
925+
},
909926
UpstreamSource {
910927
project_name: "carlosedp/lbconfig-operator",
911928
license: MIT,
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
apiVersion: "apiextensions.k8s.io/v1"
2+
kind: "CustomResourceDefinition"
3+
metadata:
4+
name: "builders.kpack.io"
5+
spec:
6+
conversion:
7+
strategy: "Webhook"
8+
webhook:
9+
clientConfig:
10+
service:
11+
name: "kpack-webhook"
12+
namespace: "kpack"
13+
path: "/convert"
14+
port: 443
15+
conversionReviewVersions:
16+
- "v1"
17+
group: "kpack.io"
18+
names:
19+
categories:
20+
- "kpack"
21+
kind: "Builder"
22+
listKind: "BuilderList"
23+
plural: "builders"
24+
shortNames:
25+
- "bldr"
26+
- "bldrs"
27+
singular: "builder"
28+
scope: "Namespaced"
29+
versions:
30+
- additionalPrinterColumns:
31+
- jsonPath: ".status.latestImage"
32+
name: "LatestImage"
33+
type: "string"
34+
- jsonPath: ".status.conditions[?(@.type==\"Ready\")].status"
35+
name: "Ready"
36+
type: "string"
37+
name: "v1alpha1"
38+
schema:
39+
openAPIV3Schema:
40+
type: "object"
41+
x-kubernetes-preserve-unknown-fields: true
42+
served: true
43+
storage: false
44+
subresources:
45+
status: {}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
apiVersion: "apiextensions.k8s.io/v1"
2+
kind: "CustomResourceDefinition"
3+
metadata:
4+
name: "builds.kpack.io"
5+
spec:
6+
conversion:
7+
strategy: "Webhook"
8+
webhook:
9+
clientConfig:
10+
service:
11+
name: "kpack-webhook"
12+
namespace: "kpack"
13+
path: "/convert"
14+
port: 443
15+
conversionReviewVersions:
16+
- "v1"
17+
group: "kpack.io"
18+
names:
19+
categories:
20+
- "kpack"
21+
kind: "Build"
22+
listKind: "BuildList"
23+
plural: "builds"
24+
shortNames:
25+
- "cnbbuild"
26+
- "cnbbuilds"
27+
- "bld"
28+
- "blds"
29+
singular: "build"
30+
scope: "Namespaced"
31+
versions:
32+
- additionalPrinterColumns:
33+
- jsonPath: ".status.latestImage"
34+
name: "Image"
35+
type: "string"
36+
- jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].status"
37+
name: "Succeeded"
38+
type: "string"
39+
name: "v1alpha1"
40+
schema:
41+
openAPIV3Schema:
42+
type: "object"
43+
x-kubernetes-preserve-unknown-fields: true
44+
served: true
45+
storage: false
46+
subresources:
47+
status: {}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
apiVersion: "apiextensions.k8s.io/v1"
2+
kind: "CustomResourceDefinition"
3+
metadata:
4+
name: "clusterbuilders.kpack.io"
5+
spec:
6+
group: "kpack.io"
7+
names:
8+
categories:
9+
- "kpack"
10+
kind: "ClusterBuilder"
11+
listKind: "ClusterBuilderList"
12+
plural: "clusterbuilders"
13+
shortNames:
14+
- "clstbldr"
15+
- "clstbldrs"
16+
singular: "clusterbuilder"
17+
scope: "Cluster"
18+
versions:
19+
- additionalPrinterColumns:
20+
- jsonPath: ".status.latestImage"
21+
name: "LatestImage"
22+
type: "string"
23+
- jsonPath: ".status.conditions[?(@.type==\"Ready\")].status"
24+
name: "Ready"
25+
type: "string"
26+
name: "v1alpha1"
27+
schema:
28+
openAPIV3Schema:
29+
type: "object"
30+
x-kubernetes-preserve-unknown-fields: true
31+
served: true
32+
storage: false
33+
subresources:
34+
status: {}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: "apiextensions.k8s.io/v1"
2+
kind: "CustomResourceDefinition"
3+
metadata:
4+
name: "clusterstacks.kpack.io"
5+
spec:
6+
group: "kpack.io"
7+
names:
8+
categories:
9+
- "kpack"
10+
kind: "ClusterStack"
11+
listKind: "ClusterStackList"
12+
plural: "clusterstacks"
13+
singular: "clusterstack"
14+
scope: "Cluster"
15+
versions:
16+
- additionalPrinterColumns:
17+
- jsonPath: ".status.conditions[?(@.type==\"Ready\")].status"
18+
name: "Ready"
19+
type: "string"
20+
name: "v1alpha1"
21+
schema:
22+
openAPIV3Schema:
23+
type: "object"
24+
x-kubernetes-preserve-unknown-fields: true
25+
served: true
26+
storage: false
27+
subresources:
28+
status: {}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: "apiextensions.k8s.io/v1"
2+
kind: "CustomResourceDefinition"
3+
metadata:
4+
name: "clusterstores.kpack.io"
5+
spec:
6+
group: "kpack.io"
7+
names:
8+
categories:
9+
- "kpack"
10+
kind: "ClusterStore"
11+
listKind: "ClusterStoreList"
12+
plural: "clusterstores"
13+
singular: "clusterstore"
14+
scope: "Cluster"
15+
versions:
16+
- additionalPrinterColumns:
17+
- jsonPath: ".status.conditions[?(@.type==\"Ready\")].status"
18+
name: "Ready"
19+
type: "string"
20+
name: "v1alpha1"
21+
schema:
22+
openAPIV3Schema:
23+
type: "object"
24+
x-kubernetes-preserve-unknown-fields: true
25+
served: true
26+
storage: false
27+
subresources:
28+
status: {}

0 commit comments

Comments
 (0)