Skip to content

Commit 4745b0b

Browse files
committed
update ROCm/gpu-operator
Signed-off-by: Sebastian Hoß <[email protected]>
1 parent 95a8ccf commit 4745b0b

File tree

11 files changed

+1707
-2
lines changed

11 files changed

+1707
-2
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 amd_com
5+
on:
6+
schedule:
7+
- cron: 54 21 * * 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/amd_com)" >> $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_amd_com ${{ 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_amd_com
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 }}/amd_com 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 }}/amd_com version [${{ steps.release.outputs.version }}](${{ steps.create_release.outputs.url }}) published
65+
server: ${{ secrets.MATRIX_SERVER }}

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ members = [
1212
"custom-resources/addons_cluster_x_k8s_io",
1313
"custom-resources/agent_k8s_elastic_co",
1414
"custom-resources/akri_sh",
15+
"custom-resources/amd_com",
1516
"custom-resources/anywhere_eks_amazonaws_com",
1617
"custom-resources/apacheweb_arsenal_dev",
1718
"custom-resources/api_clever_cloud_com",

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ The following groups are available:
5252
- [addons.cluster.x-k8s.io](https://crates.io/crates/kcr_addons_cluster_x_k8s_io)
5353
- [agent.k8s.elastic.co](https://crates.io/crates/kcr_agent_k8s_elastic_co)
5454
- [akri.sh](https://crates.io/crates/kcr_akri_sh)
55+
- [amd.com](https://crates.io/crates/kcr_amd_com)
5556
- [anywhere.eks.amazonaws.com](https://crates.io/crates/kcr_anywhere_eks_amazonaws_com)
5657
- [apacheweb.arsenal.dev](https://crates.io/crates/kcr_apacheweb_arsenal_dev)
5758
- [api.clever-cloud.com](https://crates.io/crates/kcr_api_clever_cloud_com)

code-generator/src/catalog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3183,7 +3183,7 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
31833183
project_name: "ROCm/gpu-operator",
31843184
license: APACHE_V2,
31853185
urls: &[
3186-
"https://github.com/ROCm/gpu-operator/blob/master/config/crd/bases/charts.amd.com_amdgpus.yaml",
3186+
"https://github.com/ROCm/gpu-operator/blob/main/config/crd/bases/amd.com_deviceconfigs.yaml",
31873187
],
31883188
ignores: &[],
31893189
},

crd-catalog/ROCm/gpu-operator/amd.com/v1alpha1/deviceconfigs.yaml

Lines changed: 715 additions & 0 deletions
Large diffs are not rendered by default.
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_amd_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 = { workspace = true }
19+
serde = { workspace = true }
20+
serde_json = { workspace = true }
21+
k8s-openapi = { workspace = true }
22+
kube = { workspace = true }
23+
24+
[dev-dependencies]
25+
k8s-openapi = { workspace = true, features = ["v1_31"] }
26+
27+
[package.metadata.docs.rs]
28+
features = ["k8s-openapi/v1_31"]
29+
30+
[features]
31+
default = ["v1alpha1"]
32+
v1alpha1 = []

custom-resources/amd_com/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!--
2+
SPDX-FileCopyrightText: The kube-custom-resources-rs Authors
3+
SPDX-License-Identifier: 0BSD
4+
-->
5+
6+
# amd.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 `amd.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+
### amd.com/v1alpha1
15+
- `DeviceConfig`
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*!
2+
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/) for the `amd.com` group. Each binding is generated with [kopium](https://github.com/kube-rs/kopium), updated and released weekly.
3+
4+
# Available Custom Resources
5+
6+
## amd.com/v1alpha1
7+
- `DeviceConfig`
8+
*/
9+
#[cfg(feature = "v1alpha1")]
10+
pub mod v1alpha1;

0 commit comments

Comments
 (0)