-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sebastian Hoß <[email protected]>
- Loading branch information
Showing
8 changed files
with
129 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
crd-catalog/1Password/onepassword-operator/onepassword.com/v1/onepassworditems.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod v1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod onepassworditems; |
39 changes: 39 additions & 0 deletions
39
kube-custom-resources-rs/src/onepassword_com/v1/onepassworditems.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} | ||
|