From b7cd7670a790a8683060857cea897bf7d954973a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Ho=C3=9F?= Date: Sun, 11 Feb 2024 12:24:23 +0100 Subject: [PATCH] add ROCm/gpu-operator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sebastian Hoß --- .reuse/dep5 | 4 ++ code-generator/src/catalog.rs | 7 ++++ .../charts.amd.com/v1alpha1/amdgpus.yaml | 39 +++++++++++++++++++ kube-custom-resources-rs/Cargo.toml | 1 + .../src/charts_amd_com/mod.rs | 1 + .../src/charts_amd_com/v1alpha1/amdgpus.rs | 8 ++++ .../src/charts_amd_com/v1alpha1/mod.rs | 1 + kube-custom-resources-rs/src/lib.rs | 7 ++++ 8 files changed, 68 insertions(+) create mode 100644 crd-catalog/ROCm/gpu-operator/charts.amd.com/v1alpha1/amdgpus.yaml create mode 100644 kube-custom-resources-rs/src/charts_amd_com/mod.rs create mode 100644 kube-custom-resources-rs/src/charts_amd_com/v1alpha1/amdgpus.rs create mode 100644 kube-custom-resources-rs/src/charts_amd_com/v1alpha1/mod.rs diff --git a/.reuse/dep5 b/.reuse/dep5 index d8ef6ad72..5d3b278ca 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -863,6 +863,10 @@ Files: crd-catalog/RedisLabs/redis-enterprise-k8s-docs/* Copyright: The RedisLabs/redis-enterprise-k8s-docs Authors License: Apache-2.0 +Files: crd-catalog/ROCm/gpu-operator/* +Copyright: The ROCm/gpu-operator Authors +License: Apache-2.0 + Files: crd-catalog/rook/rook/* Copyright: The rook/rook Authors License: Apache-2.0 diff --git a/code-generator/src/catalog.rs b/code-generator/src/catalog.rs index 81bfa56d0..1e6473b8f 100644 --- a/code-generator/src/catalog.rs +++ b/code-generator/src/catalog.rs @@ -2274,6 +2274,13 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[ "https://github.com/RedisLabs/redis-enterprise-k8s-docs/blob/master/crds/rerc_crd.yaml", ], }, + UpstreamSource { + project_name: "ROCm/gpu-operator", + license: APACHE_V2, + urls: &[ + "https://github.com/ROCm/gpu-operator/blob/master/config/crd/bases/charts.amd.com_amdgpus.yaml", + ], + }, UpstreamSource { project_name: "rook/rook", license: APACHE_V2, diff --git a/crd-catalog/ROCm/gpu-operator/charts.amd.com/v1alpha1/amdgpus.yaml b/crd-catalog/ROCm/gpu-operator/charts.amd.com/v1alpha1/amdgpus.yaml new file mode 100644 index 000000000..4ed2e3351 --- /dev/null +++ b/crd-catalog/ROCm/gpu-operator/charts.amd.com/v1alpha1/amdgpus.yaml @@ -0,0 +1,39 @@ +apiVersion: "apiextensions.k8s.io/v1" +kind: "CustomResourceDefinition" +metadata: + name: "amdgpus.charts.amd.com" +spec: + group: "charts.amd.com" + names: + kind: "AMDGPU" + listKind: "AMDGPUList" + plural: "amdgpus" + singular: "amdgpu" + scope: "Namespaced" + versions: + - name: "v1alpha1" + schema: + openAPIV3Schema: + description: "AMDGPU is the Schema for the amdgpus API" + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: "string" + kind: + description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: "string" + metadata: + type: "object" + spec: + description: "Spec defines the desired state of AMDGPU" + type: "object" + x-kubernetes-preserve-unknown-fields: true + status: + description: "Status defines the observed state of AMDGPU" + type: "object" + x-kubernetes-preserve-unknown-fields: true + type: "object" + served: true + storage: true + subresources: + status: {} diff --git a/kube-custom-resources-rs/Cargo.toml b/kube-custom-resources-rs/Cargo.toml index 9d973e5ec..0e58e5b35 100644 --- a/kube-custom-resources-rs/Cargo.toml +++ b/kube-custom-resources-rs/Cargo.toml @@ -81,6 +81,7 @@ ceph_rook_io = [] cert_manager_io = [] chaos_mesh_org = [] chaosblade_io = [] +charts_amd_com = [] che_eclipse_org = [] chisel_operator_io = [] cilium_io = [] diff --git a/kube-custom-resources-rs/src/charts_amd_com/mod.rs b/kube-custom-resources-rs/src/charts_amd_com/mod.rs new file mode 100644 index 000000000..32a5a9d4f --- /dev/null +++ b/kube-custom-resources-rs/src/charts_amd_com/mod.rs @@ -0,0 +1 @@ +pub mod v1alpha1; diff --git a/kube-custom-resources-rs/src/charts_amd_com/v1alpha1/amdgpus.rs b/kube-custom-resources-rs/src/charts_amd_com/v1alpha1/amdgpus.rs new file mode 100644 index 000000000..b2d4a1d34 --- /dev/null +++ b/kube-custom-resources-rs/src/charts_amd_com/v1alpha1/amdgpus.rs @@ -0,0 +1,8 @@ +// WARNING: generated by kopium - manual changes will be overwritten +// kopium command: kopium --docs --filename=./crd-catalog/ROCm/gpu-operator/charts.amd.com/v1alpha1/amdgpus.yaml --derive=Default --derive=PartialEq +// kopium version: 0.16.5 + + + + + diff --git a/kube-custom-resources-rs/src/charts_amd_com/v1alpha1/mod.rs b/kube-custom-resources-rs/src/charts_amd_com/v1alpha1/mod.rs new file mode 100644 index 000000000..6c122ab37 --- /dev/null +++ b/kube-custom-resources-rs/src/charts_amd_com/v1alpha1/mod.rs @@ -0,0 +1 @@ +pub mod amdgpus; diff --git a/kube-custom-resources-rs/src/lib.rs b/kube-custom-resources-rs/src/lib.rs index 0d455e981..1a25439b9 100644 --- a/kube-custom-resources-rs/src/lib.rs +++ b/kube-custom-resources-rs/src/lib.rs @@ -530,6 +530,11 @@ apiVersion `chaos-mesh.org/v1alpha1`: apiVersion `chaosblade.io/v1alpha1`: - `ChaosBlade` +## charts_amd_com + +apiVersion `charts.amd.com/v1alpha1`: +- `AMDGPU` + ## che_eclipse_org apiVersion `che.eclipse.org/v1alpha1`: @@ -2656,6 +2661,8 @@ pub mod cert_manager_io; pub mod chaos_mesh_org; #[cfg(feature = "chaosblade_io")] pub mod chaosblade_io; +#[cfg(feature = "charts_amd_com")] +pub mod charts_amd_com; #[cfg(feature = "che_eclipse_org")] pub mod che_eclipse_org; #[cfg(feature = "chisel_operator_io")]