Skip to content

Commit

Permalink
add 1Password/onepassword-operator
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Hoß <[email protected]>
  • Loading branch information
sebhoss committed Feb 11, 2024
1 parent 364619c commit bd1def3
Show file tree
Hide file tree
Showing 8 changed files with 129 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions code-generator/src/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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: {}
1 change: 1 addition & 0 deletions kube-custom-resources-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
7 changes: 7 additions & 0 deletions kube-custom-resources-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand Down Expand Up @@ -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")]
Expand Down
1 change: 1 addition & 0 deletions kube-custom-resources-rs/src/onepassword_com/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod v1;
1 change: 1 addition & 0 deletions kube-custom-resources-rs/src/onepassword_com/v1/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod onepassworditems;
Original file line number Diff line number Diff line change
@@ -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<String>,
}

/// OnePasswordItemStatus defines the observed state of OnePasswordItem
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct OnePasswordItemStatus {
pub conditions: Vec<OnePasswordItemStatusConditions>,
}

#[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<String>,
/// Human-readable message indicating details about last transition.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub message: Option<String>,
/// Status of the condition, one of True, False, Unknown.
pub status: String,
/// Type of job condition, Completed.
#[serde(rename = "type")]
pub r#type: String,
}

0 comments on commit bd1def3

Please sign in to comment.