v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the secretsync v1alpha1 API group +kubebuilder:object:generate=true +groupName=secretsync.secret-sync.x-k8s.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "secretsync.secret-sync.x-k8s.io", 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 SecretObject

type SecretObject struct {
	// Name of the K8s secret object
	SecretName string `json:"secretName,omitempty"`

	// Type of K8s secret object
	Type string `json:"type,omitempty"`

	// Labels of K8s secret object
	Labels map[string]string `json:"labels,omitempty"`

	// Annotations of k8s secret object
	Annotations map[string]string `json:"annotations,omitempty"`

	// Data field to populate
	Data []*SecretObjectData `json:"data,omitempty"`
}

SecretObject defines the desired state of synced K8s secret objects

func (*SecretObject) DeepCopy

func (in *SecretObject) DeepCopy() *SecretObject

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

func (*SecretObject) DeepCopyInto

func (in *SecretObject) DeepCopyInto(out *SecretObject)

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

type SecretObjectData

type SecretObjectData struct {
	// Name of the object to sync
	ObjectName string `json:"objectName,omitempty"`

	// Data field to populate
	Key string `json:"key,omitempty"`
}

SecretObjectData defines the desired state of synced K8s secret object data

func (*SecretObjectData) DeepCopy

func (in *SecretObjectData) DeepCopy() *SecretObjectData

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

func (*SecretObjectData) DeepCopyInto

func (in *SecretObjectData) DeepCopyInto(out *SecretObjectData)

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

type SecretSync

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

	Spec   SecretSyncSpec   `json:"spec,omitempty"`
	Status SecretSyncStatus `json:"status,omitempty"`
}

SecretSync is the Schema for the secretsyncs API

func (*SecretSync) DeepCopy

func (in *SecretSync) DeepCopy() *SecretSync

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

func (*SecretSync) DeepCopyInto

func (in *SecretSync) DeepCopyInto(out *SecretSync)

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

func (*SecretSync) DeepCopyObject

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

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

type SecretSyncList

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

SecretSyncList contains a list of SecretSync

func (*SecretSyncList) DeepCopy

func (in *SecretSyncList) DeepCopy() *SecretSyncList

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

func (*SecretSyncList) DeepCopyInto

func (in *SecretSyncList) DeepCopyInto(out *SecretSyncList)

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

func (*SecretSyncList) DeepCopyObject

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

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

type SecretSyncSpec

type SecretSyncSpec struct {

	// ServiceAccountName is the name of the service account that will be used to
	// access the secret store.
	ServiceAccountName string `json:"serviceAccountName"`

	// SecretRef is the name of the secret that will be used to access the secret
	// store.
	SecretRef string `json:"secretRef,omitempty"`

	// SecretProviderClassName is the name of the secret provider class that will
	// be used to access the secret store.
	SecretProviderClassName string `json:"secretProviderClassName"`

	// SecretObject is the secret that will be downloaded.
	SecretObject *SecretObject `json:"secretObject,omitempty"`

	// RotationPollInterval is the interval at which the controller will poll the
	// provider to get the latest secret version.
	// Defaults to 2 minutes, can't be set to less.
	// +optional
	RotationPollIntervalInSeconds *metav1.Duration `json:"rotationPollIntervalInSeconds,omitempty"`
}

SecretSyncSpec defines the desired state of SecretSync

func (*SecretSyncSpec) DeepCopy

func (in *SecretSyncSpec) DeepCopy() *SecretSyncSpec

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

func (*SecretSyncSpec) DeepCopyInto

func (in *SecretSyncSpec) DeepCopyInto(out *SecretSyncSpec)

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

type SecretSyncStatus

type SecretSyncStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	SecretHash string `json:"secretHash,omitempty"`
}

SecretSyncStatus defines the observed state of SecretSync

func (*SecretSyncStatus) DeepCopy

func (in *SecretSyncStatus) DeepCopy() *SecretSyncStatus

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

func (*SecretSyncStatus) DeepCopyInto

func (in *SecretSyncStatus) DeepCopyInto(out *SecretSyncStatus)

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