v1alpha1

package
v0.0.0-...-5e0a0ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the secret v1alpha1 API group +kubebuilder:object:generate=true +groupName=secret.linhng98.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "secret.linhng98.com", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Backend

type Backend string

+kubebuilder:validation:Enum=kubernetes;vault

const (
	KubernetesBackend Backend = "kubernetes"
	VaultBackend      Backend = "vault"
)

type PLaintextSecretSpec

type PLaintextSecretSpec struct {
	Key       string  `json:"key"`
	Len       int     `json:"len,omitempty"`
	Whitelist string  `json:"whitelist,omitempty"`
	Prefix    string  `json:"prefix,omitempty"`
	Postfix   string  `json:"postfix,omitempty"`
	Backend   Backend `json:"backend"`
}

+kubebuilder:validation:Optional

func (*PLaintextSecretSpec) DeepCopy

func (in *PLaintextSecretSpec) DeepCopy() *PLaintextSecretSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PLaintextSecretSpec.

func (*PLaintextSecretSpec) DeepCopyInto

func (in *PLaintextSecretSpec) DeepCopyInto(out *PLaintextSecretSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Phase

type Phase string

+kubebuilder:validation:Enum=Pending;Ready;Rotating;Terminating;Error

const (
	// PhasePending means a custom secret resource has just been created and is not yet ready
	PhasePending Phase = "Pending"

	// PhaseReady means a custom secret resource is ready and up to date
	PhaseReady Phase = "Ready"

	// PhaseUpdating means a custom secret resource is in the process of rotating to a new desired state (spec)
	PhaseRotating Phase = "Rotating"

	// PhaseTerminating means a custom secret resource is in the process of being removed
	PhaseTerminating Phase = "Terminating"

	// PhaseError means an error occured with custom resource management
	PhaseError Phase = "Error"
)

type Plaintext

type Plaintext struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PlaintextSpec   `json:"spec,omitempty"`
	Status PlaintextStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:scope=Namespaced,shortName=pt +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase",description="Sync phase of the Secret" +kubebuilder:printcolumn:name="Last Synced Date",type="date",JSONPath=".status.lastsynceddate" Plaintext is the Schema for the plaintexts API

func (*Plaintext) DeepCopy

func (in *Plaintext) DeepCopy() *Plaintext

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Plaintext.

func (*Plaintext) DeepCopyInto

func (in *Plaintext) DeepCopyInto(out *Plaintext)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Plaintext) DeepCopyObject

func (in *Plaintext) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PlaintextList

type PlaintextList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Plaintext `json:"items"`
}

PlaintextList contains a list of Plaintext

func (*PlaintextList) DeepCopy

func (in *PlaintextList) DeepCopy() *PlaintextList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlaintextList.

func (*PlaintextList) DeepCopyInto

func (in *PlaintextList) DeepCopyInto(out *PlaintextList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PlaintextList) DeepCopyObject

func (in *PlaintextList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PlaintextSpec

type PlaintextSpec struct {

	// Foo is an example field of Plaintext. Edit plaintext_types.go to remove/update
	Secrets []*PLaintextSecretSpec `json:"secrets"`
}

PlaintextSpec defines the desired state of Plaintext

func (*PlaintextSpec) DeepCopy

func (in *PlaintextSpec) DeepCopy() *PlaintextSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlaintextSpec.

func (*PlaintextSpec) DeepCopyInto

func (in *PlaintextSpec) DeepCopyInto(out *PlaintextSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PlaintextStatus

type PlaintextStatus struct {
	// Phase - define observed sync phase of the Plaintext
	// +kubebuilder:validation:Type: string
	Phase Phase `json:"phase"`

	// LastSyncedDate - define last synced date of the Plaintext
	// +kubebuilder:validation:Type: string
	// +kubebuilder:validation:Format: date-time
	LastSyncedDate metav1.Time `json:"lastsynceddate"`
}

PlaintextStatus defines the observed state of Plaintext

func (*PlaintextStatus) DeepCopy

func (in *PlaintextStatus) DeepCopy() *PlaintextStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlaintextStatus.

func (*PlaintextStatus) DeepCopyInto

func (in *PlaintextStatus) DeepCopyInto(out *PlaintextStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL