diff --git a/.reuse/dep5 b/.reuse/dep5 index dea0d3291..33699b336 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -475,6 +475,10 @@ Files: crd-catalog/linki/cloudformation-operator/* Copyright: The linki/cloudformation-operator Authors License: MIT +Files: crd-catalog/LinuxSuRen/api-testing/* +Copyright: The LinuxSuRen/api-testing Authors +License: MIT + Files: crd-catalog/litmuschaos/chaos-operator/* Copyright: The litmuschaos/chaos-operator Authors License: Apache-2.0 diff --git a/code-generator/src/catalog.rs b/code-generator/src/catalog.rs index 3f1982901..3cb89054e 100644 --- a/code-generator/src/catalog.rs +++ b/code-generator/src/catalog.rs @@ -1243,6 +1243,13 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[ "https://github.com/linki/cloudformation-operator/blob/master/config/crd/bases/cloudformation.linki.space_stacks.yaml", ], }, + UpstreamSource { + project_name: "LinuxSuRen/api-testing", + license: MIT, + urls: &[ + "https://github.com/LinuxSuRen/api-testing/blob/master/operator/config/crd/bases/core.linuxsuren.github.com_atests.yaml", + ], + }, UpstreamSource { project_name: "litmuschaos/chaos-operator", license: APACHE_V2, diff --git a/crd-catalog/LinuxSuRen/api-testing/core.linuxsuren.github.com/v1alpha1/atests.yaml b/crd-catalog/LinuxSuRen/api-testing/core.linuxsuren.github.com/v1alpha1/atests.yaml new file mode 100644 index 000000000..2c9285c88 --- /dev/null +++ b/crd-catalog/LinuxSuRen/api-testing/core.linuxsuren.github.com/v1alpha1/atests.yaml @@ -0,0 +1,58 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.11.1 + name: atests.core.linuxsuren.github.com +spec: + group: core.linuxsuren.github.com + names: + kind: ATest + listKind: ATestList + plural: atests + singular: atest + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + description: ATest is the Schema for the atests 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: ATestSpec defines the desired state of ATest + properties: + image: + type: string + persistent: + description: Persistent defines the persistent volume claim + properties: + enabled: + type: boolean + storageClass: + type: string + type: object + replicas: + format: int32 + type: integer + serviceType: + description: Service Type string describes ingress methods for a service + type: string + version: + type: string + type: object + status: + description: ATestStatus defines the observed state of ATest + type: object + 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 519a3bd49..c59e2541a 100644 --- a/kube-custom-resources-rs/Cargo.toml +++ b/kube-custom-resources-rs/Cargo.toml @@ -86,6 +86,7 @@ config_gatekeeper_sh_v1alpha1 = [] config_grafana_com_v1 = [] config_karmada_io_v1alpha1 = [] config_koordinator_sh_v1alpha1 = [] +core_linuxsuren_github_com_v1alpha1 = [] core_openfeature_dev_v1alpha1 = [] core_openfeature_dev_v1alpha2 = [] couchbase_com_v2 = [] diff --git a/kube-custom-resources-rs/src/core_linuxsuren_github_com_v1alpha1/atests.rs b/kube-custom-resources-rs/src/core_linuxsuren_github_com_v1alpha1/atests.rs new file mode 100644 index 000000000..d0ddc6102 --- /dev/null +++ b/kube-custom-resources-rs/src/core_linuxsuren_github_com_v1alpha1/atests.rs @@ -0,0 +1,42 @@ +// WARNING: generated by kopium - manual changes will be overwritten +// kopium command: kopium --docs --filename ./crd-catalog/LinuxSuRen/api-testing/core.linuxsuren.github.com/v1alpha1/atests.yaml +// kopium version: 0.16.1 + +use kube::CustomResource; +use serde::{Serialize, Deserialize}; + +/// ATestSpec defines the desired state of ATest +#[derive(CustomResource, Serialize, Deserialize, Clone, Debug)] +#[kube(group = "core.linuxsuren.github.com", version = "v1alpha1", kind = "ATest", plural = "atests")] +#[kube(namespaced)] +#[kube(status = "ATestStatus")] +#[kube(schema = "disabled")] +pub struct ATestSpec { + #[serde(default, skip_serializing_if = "Option::is_none")] + pub image: Option, + /// Persistent defines the persistent volume claim + #[serde(default, skip_serializing_if = "Option::is_none")] + pub persistent: Option, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub replicas: Option, + /// Service Type string describes ingress methods for a service + #[serde(default, skip_serializing_if = "Option::is_none", rename = "serviceType")] + pub service_type: Option, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub version: Option, +} + +/// Persistent defines the persistent volume claim +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct ATestPersistent { + #[serde(default, skip_serializing_if = "Option::is_none")] + pub enabled: Option, + #[serde(default, skip_serializing_if = "Option::is_none", rename = "storageClass")] + pub storage_class: Option, +} + +/// ATestStatus defines the observed state of ATest +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct ATestStatus { +} + diff --git a/kube-custom-resources-rs/src/core_linuxsuren_github_com_v1alpha1/mod.rs b/kube-custom-resources-rs/src/core_linuxsuren_github_com_v1alpha1/mod.rs new file mode 100644 index 000000000..4900ba2c1 --- /dev/null +++ b/kube-custom-resources-rs/src/core_linuxsuren_github_com_v1alpha1/mod.rs @@ -0,0 +1 @@ +pub mod atests; diff --git a/kube-custom-resources-rs/src/lib.rs b/kube-custom-resources-rs/src/lib.rs index ca9454d5c..bf66e532d 100644 --- a/kube-custom-resources-rs/src/lib.rs +++ b/kube-custom-resources-rs/src/lib.rs @@ -118,6 +118,8 @@ pub mod config_grafana_com_v1; pub mod config_karmada_io_v1alpha1; #[cfg(feature = "config_koordinator_sh_v1alpha1")] pub mod config_koordinator_sh_v1alpha1; +#[cfg(feature = "core_linuxsuren_github_com_v1alpha1")] +pub mod core_linuxsuren_github_com_v1alpha1; #[cfg(feature = "core_openfeature_dev_v1alpha1")] pub mod core_openfeature_dev_v1alpha1; #[cfg(feature = "core_openfeature_dev_v1alpha2")]