Skip to content

Commit 7a0e355

Browse files
committed
add replicatedhq/troubleshoot
Signed-off-by: Sebastian Hoß <[email protected]>
1 parent cd803fe commit 7a0e355

File tree

25 files changed

+45909
-0
lines changed

25 files changed

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

.reuse/dep5

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,10 @@ Files: crd-catalog/RedisLabs/redis-enterprise-k8s-docs/*
11711171
Copyright: The RedisLabs/redis-enterprise-k8s-docs Authors
11721172
License: Apache-2.0
11731173

1174+
Files: crd-catalog/replicatedhq/troubleshoot/*
1175+
Copyright: The replicatedhq/troubleshoot Authors
1176+
License: MIT
1177+
11741178
Files: crd-catalog/ROCm/gpu-operator/*
11751179
Copyright: The ROCm/gpu-operator Authors
11761180
License: Apache-2.0

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ members = [
388388
"custom-resources/training_kubedl_io",
389389
"custom-resources/trident_netapp_io",
390390
"custom-resources/trino_stackable_tech",
391+
"custom-resources/troubleshoot_sh",
391392
"custom-resources/trust_cert_manager_io",
392393
"custom-resources/upgrade_cattle_io",
393394
"custom-resources/upgrade_managed_openshift_io",

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ The following groups are available:
428428
- [training.kubedl.io](https://crates.io/crates/kcr_training_kubedl_io)
429429
- [trident.netapp.io](https://crates.io/crates/kcr_trident_netapp_io)
430430
- [trino.stackable.tech](https://crates.io/crates/kcr_trino_stackable_tech)
431+
- [troubleshoot.sh](https://crates.io/crates/kcr_troubleshoot_sh)
431432
- [trust.cert-manager.io](https://crates.io/crates/kcr_trust_cert_manager_io)
432433
- [upgrade.cattle.io](https://crates.io/crates/kcr_upgrade_cattle_io)
433434
- [upgrade.managed.openshift.io](https://crates.io/crates/kcr_upgrade_managed_openshift_io)

code-generator/src/catalog.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3179,6 +3179,21 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
31793179
],
31803180
ignores: &[],
31813181
},
3182+
UpstreamSource {
3183+
project_name: "replicatedhq/troubleshoot",
3184+
license: APACHE_V2,
3185+
urls: &[
3186+
"https://github.com/replicatedhq/troubleshoot/blob/main/config/crds/troubleshoot.sh_analyzers.yaml",
3187+
"https://github.com/replicatedhq/troubleshoot/blob/main/config/crds/troubleshoot.sh_collectors.yaml",
3188+
"https://github.com/replicatedhq/troubleshoot/blob/main/config/crds/troubleshoot.sh_hostcollectors.yaml",
3189+
"https://github.com/replicatedhq/troubleshoot/blob/main/config/crds/troubleshoot.sh_hostpreflights.yaml",
3190+
"https://github.com/replicatedhq/troubleshoot/blob/main/config/crds/troubleshoot.sh_preflights.yaml",
3191+
"https://github.com/replicatedhq/troubleshoot/blob/main/config/crds/troubleshoot.sh_redactors.yaml",
3192+
"https://github.com/replicatedhq/troubleshoot/blob/main/config/crds/troubleshoot.sh_remotecollectors.yaml",
3193+
"https://github.com/replicatedhq/troubleshoot/blob/main/config/crds/troubleshoot.sh_supportbundles.yaml",
3194+
],
3195+
ignores: &[],
3196+
},
31823197
UpstreamSource {
31833198
project_name: "ROCm/gpu-operator",
31843199
license: APACHE_V2,

0 commit comments

Comments
 (0)