Skip to content

Commit 5e44c88

Browse files
committed
re-generate clickhouse-operator w/ kopium 0.22.3
Signed-off-by: Sebastian Hoß <[email protected]>
1 parent f61bf29 commit 5e44c88

File tree

20 files changed

+7441
-4
lines changed

20 files changed

+7441
-4
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 clickhouse_altinity_com
5+
on:
6+
schedule:
7+
- cron: 2 15 * * THU
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 Thursday' -- custom-resources/clickhouse_altinity_com)" >> $GITHUB_OUTPUT
23+
- id: release
24+
name: Create Release Version
25+
if: steps.commits.outputs.count > 0
26+
run: echo "version=2.$(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_clickhouse_altinity_com ${{ 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_clickhouse_altinity_com
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 }}/clickhouse_altinity_com 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 }}/clickhouse_altinity_com version [${{ steps.release.outputs.version }}](${{ steps.create_release.outputs.url }}) published
69+
server: ${{ secrets.MATRIX_SERVER }}
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 clickhouse_keeper_altinity_com
5+
on:
6+
schedule:
7+
- cron: 4 21 * * 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/clickhouse_keeper_altinity_com)" >> $GITHUB_OUTPUT
23+
- id: release
24+
name: Create Release Version
25+
if: steps.commits.outputs.count > 0
26+
run: echo "version=2.$(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_clickhouse_keeper_altinity_com ${{ 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_clickhouse_keeper_altinity_com
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 }}/clickhouse_keeper_altinity_com 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 }}/clickhouse_keeper_altinity_com version [${{ steps.release.outputs.version }}](${{ steps.create_release.outputs.url }}) published
69+
server: ${{ secrets.MATRIX_SERVER }}

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ members = [
8686
"custom-resources/chisel_operator_io",
8787
"custom-resources/cilium_io",
8888
"custom-resources/claudie_io",
89+
"custom-resources/clickhouse_altinity_com",
90+
"custom-resources/clickhouse_keeper_altinity_com",
8991
"custom-resources/cloudformation_linki_space",
9092
"custom-resources/cloudfront_services_k8s_aws",
9193
"custom-resources/cloudtrail_services_k8s_aws",

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ The following groups are available:
126126
- [chisel-operator.io](https://crates.io/crates/kcr_chisel_operator_io)
127127
- [cilium.io](https://crates.io/crates/kcr_cilium_io)
128128
- [claudie.io](https://crates.io/crates/kcr_claudie_io)
129+
- [clickhouse-keeper.altinity.com](https://crates.io/crates/kcr_clickhouse_keeper_altinity_com)
130+
- [clickhouse.altinity.com](https://crates.io/crates/kcr_clickhouse_altinity_com)
129131
- [cloudformation.linki.space](https://crates.io/crates/kcr_cloudformation_linki_space)
130132
- [cloudfront.services.k8s.aws](https://crates.io/crates/kcr_cloudfront_services_k8s_aws)
131133
- [cloudtrail.services.k8s.aws](https://crates.io/crates/kcr_cloudtrail_services_k8s_aws)

crd-catalog/Altinity/clickhouse-operator/clickhouse-keeper.altinity.com/v1/clickhousekeeperinstallations.ignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

crd-catalog/Altinity/clickhouse-operator/clickhouse.altinity.com/v1/clickhouseinstallations.ignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

crd-catalog/Altinity/clickhouse-operator/clickhouse.altinity.com/v1/clickhouseinstallationtemplates.ignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

crd-catalog/Altinity/clickhouse-operator/clickhouse.altinity.com/v1/clickhouseoperatorconfigurations.ignore

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# SPDX-FileCopyrightText: The kube-custom-resources-rs Authors
2+
# SPDX-License-Identifier: 0BSD
3+
4+
[package]
5+
name = "kcr_clickhouse_altinity_com"
6+
version = "0.0.0"
7+
edition.workspace = true
8+
authors.workspace = true
9+
description.workspace = true
10+
homepage.workspace = true
11+
readme = "README.md"
12+
keywords.workspace = true
13+
categories.workspace = true
14+
license.workspace = true
15+
repository.workspace = true
16+
17+
[dependencies]
18+
schemars = { version = "~1" }
19+
serde = { version = "~1" }
20+
serde_json = { version = "~1" }
21+
k8s-openapi = { version = "~0" }
22+
kube = { version = "~2", default-features = false, features = ["derive"] }
23+
24+
[dev-dependencies]
25+
k8s-openapi = { version = "~0", features = ["v1_34"] }
26+
27+
[package.metadata.docs.rs]
28+
features = ["k8s-openapi/v1_34"]
29+
30+
[features]
31+
default = ["v1"]
32+
v1 = []
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!--
2+
SPDX-FileCopyrightText: The kube-custom-resources-rs Authors
3+
SPDX-License-Identifier: 0BSD
4+
-->
5+
6+
# clickhouse.altinity.com
7+
8+
This crate contains [kube-rs](https://kube.rs/) compatible bindings for Kubernetes [custom resources](https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/) of the `clickhouse.altinity.com` group. Each binding is generated with [kopium](https://github.com/kube-rs/kopium), updated and released weekly.
9+
10+
This crate is part of [kube-custom-resources-rs](https://github.com/metio/kube-custom-resources-rs).
11+
12+
## Available Custom Resources
13+
14+
### clickhouse.altinity.com/v1
15+
- `ClickHouseInstallation`
16+
- `ClickHouseInstallationTemplate`
17+
- `ClickHouseOperatorConfiguration`

0 commit comments

Comments
 (0)