Skip to content

Commit 0eadcff

Browse files
committed
add konveyor/operator
Signed-off-by: Sebastian Hoß <[email protected]>
1 parent 7f93432 commit 0eadcff

File tree

17 files changed

+3668
-0
lines changed

17 files changed

+3668
-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 tackle_konveyor_io
5+
on:
6+
schedule:
7+
- cron: 23 6 * * SUN
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 Sunday' -- custom-resources/tackle_konveyor_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_tackle_konveyor_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_tackle_konveyor_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 }}/tackle_konveyor_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 }}/tackle_konveyor_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
@@ -751,6 +751,10 @@ Files: crd-catalog/knative/operator/*
751751
Copyright: The knative/operator Authors
752752
License: Apache-2.0
753753

754+
Files: crd-catalog/konveyor/operator/*
755+
Copyright: The konveyor/operator Authors
756+
License: Apache-2.0
757+
754758
Files: crd-catalog/koordinator-sh/koordinator/*
755759
Copyright: The koordinator-sh/koordinator Authors
756760
License: Apache-2.0

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ members = [
381381
"custom-resources/stunner_l7mp_io",
382382
"custom-resources/submariner_io",
383383
"custom-resources/superset_stackable_tech",
384+
"custom-resources/tackle_konveyor_io",
384385
"custom-resources/telemetry_istio_io",
385386
"custom-resources/templates_gatekeeper_sh",
386387
"custom-resources/tempo_grafana_com",

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ The following groups are available:
421421
- [stunner.l7mp.io](https://crates.io/crates/kcr_stunner_l7mp_io)
422422
- [submariner.io](https://crates.io/crates/kcr_submariner_io)
423423
- [superset.stackable.tech](https://crates.io/crates/kcr_superset_stackable_tech)
424+
- [tackle.konveyor.io](https://crates.io/crates/kcr_tackle_konveyor_io)
424425
- [telemetry.istio.io](https://crates.io/crates/kcr_telemetry_istio_io)
425426
- [templates.gatekeeper.sh](https://crates.io/crates/kcr_templates_gatekeeper_sh)
426427
- [tempo.grafana.com](https://crates.io/crates/kcr_tempo_grafana_com)

code-generator/src/catalog.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2024,6 +2024,17 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
20242024
],
20252025
ignores: &[],
20262026
},
2027+
UpstreamSource {
2028+
project_name: "konveyor/operator",
2029+
license: APACHE_V2,
2030+
urls: &[
2031+
"https://github.com/konveyor/operator/blob/main/helm/templates/crds/tackle.konveyor.io_addons.yaml",
2032+
"https://github.com/konveyor/operator/blob/main/helm/templates/crds/tackle.konveyor.io_extensions.yaml",
2033+
"https://github.com/konveyor/operator/blob/main/helm/templates/crds/tackle.konveyor.io_tackles.yaml",
2034+
"https://github.com/konveyor/operator/blob/main/helm/templates/crds/tackle.konveyor.io_tasks.yaml",
2035+
],
2036+
ignores: &[],
2037+
},
20272038
UpstreamSource {
20282039
project_name: "koordinator-sh/koordinator",
20292040
license: APACHE_V2,

0 commit comments

Comments
 (0)