diff --git a/.reuse/dep5 b/.reuse/dep5 index 4c57dcc91..8266f1094 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -7,6 +7,10 @@ Files: kube-custom-resources-rs/src/* Copyright: The kube-custom-resources-rs Authors License: 0BSD +Files: crd-catalog/1Password/onepassword-operator/* +Copyright: The 1Password/onepassword-operator Authors +License: MIT + Files: crd-catalog/3scale/apicast-operator/* Copyright: The 3scale/apicast-operator Authors License: Apache-2.0 diff --git a/code-generator/src/catalog.rs b/code-generator/src/catalog.rs index cdcb14ed0..6565c8222 100644 --- a/code-generator/src/catalog.rs +++ b/code-generator/src/catalog.rs @@ -2,6 +2,13 @@ // SPDX-License-Identifier: 0BSD pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[ + UpstreamSource { + project_name: "1Password/onepassword-operator", + license: MIT, + urls: &[ + "https://github.com/1Password/onepassword-operator/blob/main/config/crd/bases/onepassword.com_onepassworditems.yaml", + ], + }, UpstreamSource { project_name: "3scale/apicast-operator", license: APACHE_V2, diff --git a/crd-catalog/1Password/onepassword-operator/onepassword.com/v1/onepassworditems.yaml b/crd-catalog/1Password/onepassword-operator/onepassword.com/v1/onepassworditems.yaml new file mode 100644 index 000000000..e26c4e1bc --- /dev/null +++ b/crd-catalog/1Password/onepassword-operator/onepassword.com/v1/onepassworditems.yaml @@ -0,0 +1,69 @@ +apiVersion: "apiextensions.k8s.io/v1" +kind: "CustomResourceDefinition" +metadata: + annotations: + controller-gen.kubebuilder.io/version: "v0.13.0" + name: "onepassworditems.onepassword.com" +spec: + group: "onepassword.com" + names: + kind: "OnePasswordItem" + listKind: "OnePasswordItemList" + plural: "onepassworditems" + singular: "onepassworditem" + scope: "Namespaced" + versions: + - name: "v1" + schema: + openAPIV3Schema: + description: "OnePasswordItem is the Schema for the onepassworditems 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: "OnePasswordItemSpec defines the desired state of OnePasswordItem" + properties: + itemPath: + type: "string" + type: "object" + status: + description: "OnePasswordItemStatus defines the observed state of OnePasswordItem" + properties: + conditions: + items: + properties: + lastTransitionTime: + description: "Last time the condition transit from one status to another." + format: "date-time" + type: "string" + message: + description: "Human-readable message indicating details about last transition." + type: "string" + status: + description: "Status of the condition, one of True, False, Unknown." + type: "string" + type: + description: "Type of job condition, Completed." + type: "string" + required: + - "status" + - "type" + type: "object" + type: "array" + required: + - "conditions" + type: "object" + type: + description: "Kubernetes secret type. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types" + type: "string" + 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 e08c3f27a..07187ed8c 100644 --- a/kube-custom-resources-rs/Cargo.toml +++ b/kube-custom-resources-rs/Cargo.toml @@ -220,6 +220,7 @@ nfd_kubernetes_io = [] nodeinfo_volcano_sh = [] notebook_kubedl_io = [] notification_toolkit_fluxcd_io = [] +onepassword_com = [] opensearchservice_services_k8s_aws = [] opentelemetry_io = [] operations_kubeedge_io = [] diff --git a/kube-custom-resources-rs/src/lib.rs b/kube-custom-resources-rs/src/lib.rs index c11073bf9..a738201c2 100644 --- a/kube-custom-resources-rs/src/lib.rs +++ b/kube-custom-resources-rs/src/lib.rs @@ -1771,6 +1771,11 @@ apiVersion `notification.toolkit.fluxcd.io/v1beta3`: - `Alert` - `Provider` +## onepassword_com + +apiVersion `onepassword.com/v1`: +- `OnePasswordItem` + ## opensearchservice_services_k8s_aws apiVersion `opensearchservice.services.k8s.aws/v1alpha1`: @@ -2848,6 +2853,8 @@ pub mod nodeinfo_volcano_sh; pub mod notebook_kubedl_io; #[cfg(feature = "notification_toolkit_fluxcd_io")] pub mod notification_toolkit_fluxcd_io; +#[cfg(feature = "onepassword_com")] +pub mod onepassword_com; #[cfg(feature = "opensearchservice_services_k8s_aws")] pub mod opensearchservice_services_k8s_aws; #[cfg(feature = "opentelemetry_io")] diff --git a/kube-custom-resources-rs/src/onepassword_com/mod.rs b/kube-custom-resources-rs/src/onepassword_com/mod.rs new file mode 100644 index 000000000..a3a6d96c3 --- /dev/null +++ b/kube-custom-resources-rs/src/onepassword_com/mod.rs @@ -0,0 +1 @@ +pub mod v1; diff --git a/kube-custom-resources-rs/src/onepassword_com/v1/mod.rs b/kube-custom-resources-rs/src/onepassword_com/v1/mod.rs new file mode 100644 index 000000000..fb7d9fb34 --- /dev/null +++ b/kube-custom-resources-rs/src/onepassword_com/v1/mod.rs @@ -0,0 +1 @@ +pub mod onepassworditems; diff --git a/kube-custom-resources-rs/src/onepassword_com/v1/onepassworditems.rs b/kube-custom-resources-rs/src/onepassword_com/v1/onepassworditems.rs new file mode 100644 index 000000000..de03e0528 --- /dev/null +++ b/kube-custom-resources-rs/src/onepassword_com/v1/onepassworditems.rs @@ -0,0 +1,39 @@ +// WARNING: generated by kopium - manual changes will be overwritten +// kopium command: kopium --docs --filename=./crd-catalog/1Password/onepassword-operator/onepassword.com/v1/onepassworditems.yaml --derive=Default --derive=PartialEq +// kopium version: 0.16.5 + +use kube::CustomResource; +use serde::{Serialize, Deserialize}; + +/// OnePasswordItemSpec defines the desired state of OnePasswordItem +#[derive(CustomResource, Serialize, Deserialize, Clone, Debug, Default, PartialEq)] +#[kube(group = "onepassword.com", version = "v1", kind = "OnePasswordItem", plural = "onepassworditems")] +#[kube(namespaced)] +#[kube(status = "OnePasswordItemStatus")] +#[kube(schema = "disabled")] +pub struct OnePasswordItemSpec { + #[serde(default, skip_serializing_if = "Option::is_none", rename = "itemPath")] + pub item_path: Option, +} + +/// OnePasswordItemStatus defines the observed state of OnePasswordItem +#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)] +pub struct OnePasswordItemStatus { + pub conditions: Vec, +} + +#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)] +pub struct OnePasswordItemStatusConditions { + /// Last time the condition transit from one status to another. + #[serde(default, skip_serializing_if = "Option::is_none", rename = "lastTransitionTime")] + pub last_transition_time: Option, + /// Human-readable message indicating details about last transition. + #[serde(default, skip_serializing_if = "Option::is_none")] + pub message: Option, + /// Status of the condition, one of True, False, Unknown. + pub status: String, + /// Type of job condition, Completed. + #[serde(rename = "type")] + pub r#type: String, +} +