diff --git a/.reuse/dep5 b/.reuse/dep5 index ccc737364..200f499be 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -47,6 +47,10 @@ Files: crd-catalog/argoproj-labs/argocd-operator/* Copyright: The argoproj-labs/argocd-operator Authors License: Apache-2.0 +Files: crd-catalog/atlasmap/atlasmap-operator/* +Copyright: The atlasmap/atlasmap-operator Authors +License: Apache-2.0 + Files: crd-catalog/aws-controllers-k8s/apigatewayv2-controller/* Copyright: The aws-controllers-k8s/apigatewayv2-controller Authors License: Apache-2.0 diff --git a/code-generator/src/catalog.rs b/code-generator/src/catalog.rs index 5ab51eeb0..8cfcf5b30 100644 --- a/code-generator/src/catalog.rs +++ b/code-generator/src/catalog.rs @@ -101,6 +101,13 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[ "https://github.com/argoproj-labs/argocd-operator/blob/master/config/crd/bases/argoproj.io_argocds.yaml", ], }, + UpstreamSource { + project_name: "atlasmap/atlasmap-operator", + license: APACHE_V2, + urls: &[ + "https://github.com/atlasmap/atlasmap-operator/blob/main/config/crd/bases/atlasmap.io_atlasmaps.yaml", + ], + }, UpstreamSource { project_name: "aws-controllers-k8s/apigatewayv2-controller", license: APACHE_V2, diff --git a/crd-catalog/atlasmap/atlasmap-operator/atlasmap.io/v1alpha1/atlasmaps.yaml b/crd-catalog/atlasmap/atlasmap-operator/atlasmap.io/v1alpha1/atlasmaps.yaml new file mode 100644 index 000000000..6a1d538f4 --- /dev/null +++ b/crd-catalog/atlasmap/atlasmap-operator/atlasmap.io/v1alpha1/atlasmaps.yaml @@ -0,0 +1,99 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.4.1 + name: atlasmaps.atlasmap.io +spec: + group: atlasmap.io + names: + kind: AtlasMap + listKind: AtlasMapList + plural: atlasmaps + singular: atlasmap + scope: Namespaced + versions: + - additionalPrinterColumns: + - description: AtlasMap URL + jsonPath: .status.URL + name: URL + type: string + - description: AtlasMap image + jsonPath: .status.image + name: Image + type: string + - description: AtlasMap phase + jsonPath: .status.phase + name: Phase + type: string + name: v1alpha1 + schema: + openAPIV3Schema: + description: AtlasMap is the Schema for the atlasmaps 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: AtlasMapSpec defines the desired state of AtlasMap + properties: + limitCPU: + description: The amount of CPU to limit + pattern: '[0-9]+m?$' + type: string + limitMemory: + description: The amount of memory to request + pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' + type: string + replicas: + description: Replicas determines the desired number of running AtlasMap pods + format: int32 + type: integer + requestCPU: + description: The amount of CPU to request + pattern: '[0-9]+m?$' + type: string + requestMemory: + description: The amount of memory to request + pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' + type: string + routeHostName: + description: RouteHostName sets the host name to use on the Ingress or OpenShift Route + type: string + version: + description: Version sets the version of the container image used for AtlasMap + type: string + type: object + status: + description: AtlasMapStatus defines the observed state of AtlasMap + properties: + URL: + description: The URL where AtlasMap can be accessed + type: string + image: + description: The container image that AtlasMap is using + type: string + phase: + description: The current phase that the AtlasMap resource is in + type: string + type: object + type: object + served: true + storage: true + subresources: + scale: + labelSelectorPath: .status.labelSelector + specReplicasPath: .spec.replicas + statusReplicasPath: .status.replicas + status: {} +status: + acceptedNames: + kind: '' + plural: '' + conditions: [] + storedVersions: [] diff --git a/kube-custom-resources-rs/Cargo.toml b/kube-custom-resources-rs/Cargo.toml index c59e2541a..e94dc8765 100644 --- a/kube-custom-resources-rs/Cargo.toml +++ b/kube-custom-resources-rs/Cargo.toml @@ -54,6 +54,7 @@ argoproj_io_v1alpha1 = [] argoproj_io_v1beta1 = [] asdb_aerospike_com_v1 = [] asdb_aerospike_com_v1beta1 = [] +atlasmap_io_v1alpha1 = [] autoscaling_k8s_io_v1 = [] autoscaling_k8s_io_v1beta2 = [] autoscaling_karmada_io_v1alpha1 = [] diff --git a/kube-custom-resources-rs/src/atlasmap_io_v1alpha1/atlasmaps.rs b/kube-custom-resources-rs/src/atlasmap_io_v1alpha1/atlasmaps.rs new file mode 100644 index 000000000..7bb9c5620 --- /dev/null +++ b/kube-custom-resources-rs/src/atlasmap_io_v1alpha1/atlasmaps.rs @@ -0,0 +1,51 @@ +// WARNING: generated by kopium - manual changes will be overwritten +// kopium command: kopium --docs --filename ./crd-catalog/atlasmap/atlasmap-operator/atlasmap.io/v1alpha1/atlasmaps.yaml +// kopium version: 0.16.1 + +use kube::CustomResource; +use serde::{Serialize, Deserialize}; + +/// AtlasMapSpec defines the desired state of AtlasMap +#[derive(CustomResource, Serialize, Deserialize, Clone, Debug)] +#[kube(group = "atlasmap.io", version = "v1alpha1", kind = "AtlasMap", plural = "atlasmaps")] +#[kube(namespaced)] +#[kube(status = "AtlasMapStatus")] +#[kube(schema = "disabled")] +pub struct AtlasMapSpec { + /// The amount of CPU to limit + #[serde(default, skip_serializing_if = "Option::is_none", rename = "limitCPU")] + pub limit_cpu: Option, + /// The amount of memory to request + #[serde(default, skip_serializing_if = "Option::is_none", rename = "limitMemory")] + pub limit_memory: Option, + /// Replicas determines the desired number of running AtlasMap pods + #[serde(default, skip_serializing_if = "Option::is_none")] + pub replicas: Option, + /// The amount of CPU to request + #[serde(default, skip_serializing_if = "Option::is_none", rename = "requestCPU")] + pub request_cpu: Option, + /// The amount of memory to request + #[serde(default, skip_serializing_if = "Option::is_none", rename = "requestMemory")] + pub request_memory: Option, + /// RouteHostName sets the host name to use on the Ingress or OpenShift Route + #[serde(default, skip_serializing_if = "Option::is_none", rename = "routeHostName")] + pub route_host_name: Option, + /// Version sets the version of the container image used for AtlasMap + #[serde(default, skip_serializing_if = "Option::is_none")] + pub version: Option, +} + +/// AtlasMapStatus defines the observed state of AtlasMap +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct AtlasMapStatus { + /// The URL where AtlasMap can be accessed + #[serde(default, skip_serializing_if = "Option::is_none", rename = "URL")] + pub url: Option, + /// The container image that AtlasMap is using + #[serde(default, skip_serializing_if = "Option::is_none")] + pub image: Option, + /// The current phase that the AtlasMap resource is in + #[serde(default, skip_serializing_if = "Option::is_none")] + pub phase: Option, +} + diff --git a/kube-custom-resources-rs/src/atlasmap_io_v1alpha1/mod.rs b/kube-custom-resources-rs/src/atlasmap_io_v1alpha1/mod.rs new file mode 100644 index 000000000..0aa9fd26d --- /dev/null +++ b/kube-custom-resources-rs/src/atlasmap_io_v1alpha1/mod.rs @@ -0,0 +1 @@ +pub mod atlasmaps; diff --git a/kube-custom-resources-rs/src/lib.rs b/kube-custom-resources-rs/src/lib.rs index bf66e532d..e5799d71f 100644 --- a/kube-custom-resources-rs/src/lib.rs +++ b/kube-custom-resources-rs/src/lib.rs @@ -54,6 +54,8 @@ pub mod argoproj_io_v1beta1; pub mod asdb_aerospike_com_v1; #[cfg(feature = "asdb_aerospike_com_v1beta1")] pub mod asdb_aerospike_com_v1beta1; +#[cfg(feature = "atlasmap_io_v1alpha1")] +pub mod atlasmap_io_v1alpha1; #[cfg(feature = "autoscaling_k8s_io_v1")] pub mod autoscaling_k8s_io_v1; #[cfg(feature = "autoscaling_k8s_io_v1beta2")]