Skip to content

Commit 7f93432

Browse files
committed
add devfile/api
Signed-off-by: Sebastian Hoß <[email protected]>
1 parent 680031b commit 7f93432

File tree

18 files changed

+25810
-0
lines changed

18 files changed

+25810
-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 workspace_devfile_io
5+
on:
6+
schedule:
7+
- cron: 55 16 * * MON
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 Monday' -- custom-resources/workspace_devfile_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_workspace_devfile_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_workspace_devfile_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 }}/workspace_devfile_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/[email protected]
65+
with:
66+
room_id: ${{ secrets.MATRIX_ROOM_ID }}
67+
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
68+
message: ${{ github.event.repository.name }}/workspace_devfile_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
@@ -451,6 +451,10 @@ Files: crd-catalog/datainfrahq/druid-operator/*
451451
Copyright: The datainfrahq/druid-operator Authors
452452
License: Apache-2.0
453453

454+
Files: crd-catalog/devfile/api/*
455+
Copyright: The devfile/api Authors
456+
License: Apache-2.0
457+
454458
Files: crd-catalog/devfile/registry-operator/*
455459
Copyright: The devfile/registry-operator Authors
456460
License: Apache-2.0

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ members = [
412412
"custom-resources/work_karmada_io",
413413
"custom-resources/workload_codeflare_dev",
414414
"custom-resources/workloads_kubeblocks_io",
415+
"custom-resources/workspace_devfile_io",
415416
"custom-resources/workspace_maistra_io",
416417
"custom-resources/zonecontrol_k8s_aws",
417418
"custom-resources/zookeeper_pravega_io",

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ The following groups are available:
452452
- [work.karmada.io](https://crates.io/crates/kcr_work_karmada_io)
453453
- [workload.codeflare.dev](https://crates.io/crates/kcr_workload_codeflare_dev)
454454
- [workloads.kubeblocks.io](https://crates.io/crates/kcr_workloads_kubeblocks_io)
455+
- [workspace.devfile.io](https://crates.io/crates/kcr_workspace_devfile_io)
455456
- [workspace.maistra.io](https://crates.io/crates/kcr_workspace_maistra_io)
456457
- [zonecontrol.k8s.aws](https://crates.io/crates/kcr_zonecontrol_k8s_aws)
457458
- [zookeeper.pravega.io](https://crates.io/crates/kcr_zookeeper_pravega_io)

code-generator/src/catalog.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,6 +1237,17 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
12371237
],
12381238
ignores: &[],
12391239
},
1240+
UpstreamSource {
1241+
project_name: "devfile/api",
1242+
license: APACHE_V2,
1243+
urls: &[
1244+
"https://github.com/devfile/api/blob/main/crds/workspace.devfile.io_devworkspaces.v1beta1.yaml",
1245+
"https://github.com/devfile/api/blob/main/crds/workspace.devfile.io_devworkspaces.yaml",
1246+
"https://github.com/devfile/api/blob/main/crds/workspace.devfile.io_devworkspacetemplates.v1beta1.yaml",
1247+
"https://github.com/devfile/api/blob/main/crds/workspace.devfile.io_devworkspacetemplates.yaml",
1248+
],
1249+
ignores: &[],
1250+
},
12401251
UpstreamSource {
12411252
project_name: "devfile/registry-operator",
12421253
license: APACHE_V2,

0 commit comments

Comments
 (0)