v1alpha1

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "secrets.doppler.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
)
View Source
var DefaultProcessor = SecretProcessor{Type: "plain"}

Functions

This section is empty.

Types

type DopplerSecret

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

	Spec   DopplerSecretSpec   `json:"spec,omitempty"`
	Status DopplerSecretStatus `json:"status,omitempty"`
}

DopplerSecret is the Schema for the dopplersecrets API

func (*DopplerSecret) DeepCopy

func (in *DopplerSecret) DeepCopy() *DopplerSecret

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

func (*DopplerSecret) DeepCopyInto

func (in *DopplerSecret) DeepCopyInto(out *DopplerSecret)

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

func (*DopplerSecret) DeepCopyObject

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

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

func (DopplerSecret) GetNamespacedName

func (d DopplerSecret) GetNamespacedName() string

type DopplerSecretList

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

DopplerSecretList contains a list of DopplerSecret

func (*DopplerSecretList) DeepCopy

func (in *DopplerSecretList) DeepCopy() *DopplerSecretList

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

func (*DopplerSecretList) DeepCopyInto

func (in *DopplerSecretList) DeepCopyInto(out *DopplerSecretList)

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

func (*DopplerSecretList) DeepCopyObject

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

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

type DopplerSecretSpec

type DopplerSecretSpec struct {
	// The Kubernetes secret containing the Doppler service token
	TokenSecretRef TokenSecretReference `json:"tokenSecret,omitempty"`

	// The Kubernetes secret where the operator will store and sync the fetched secrets
	ManagedSecretRef ManagedSecretReference `json:"managedSecret,omitempty"`

	// The Doppler project
	// +optional
	Project string `json:"project,omitempty"`

	// The Doppler config
	// +optional
	Config string `json:"config,omitempty"`

	// A list of secrets to sync from the config
	// +optional
	Secrets []string `json:"secrets,omitempty"`

	// A list of processors to transform the data during ingestion
	// +kubebuilder:default={}
	Processors SecretProcessors `json:"processors,omitempty"`

	// The Doppler API host
	// +kubebuilder:default="https://api.doppler.com"
	Host string `json:"host,omitempty"`

	// Whether or not to verify TLS
	// +kubebuilder:default=true
	VerifyTLS bool `json:"verifyTLS,omitempty"`

	// The environment variable compatible secrets name transformer to apply
	// +kubebuilder:validation:Enum=upper-camel;camel;lower-snake;tf-var;dotnet-env;lower-kebab
	// +optional
	NameTransformer string `json:"nameTransformer,omitempty"`

	// Format enables the downloading of secrets as a file
	// +kubebuilder:validation:Enum=json;dotnet-json;env;yaml;docker
	// +optional
	Format string `json:"format,omitempty"`

	// The number of seconds to wait between resyncs
	// +kubebuilder:default=60
	ResyncSeconds int64 `json:"resyncSeconds,omitempty"`
}

DopplerSecretSpec defines the desired state of DopplerSecret

func (*DopplerSecretSpec) DeepCopy

func (in *DopplerSecretSpec) DeepCopy() *DopplerSecretSpec

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

func (*DopplerSecretSpec) DeepCopyInto

func (in *DopplerSecretSpec) DeepCopyInto(out *DopplerSecretSpec)

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

type DopplerSecretStatus

type DopplerSecretStatus struct {
	Conditions []metav1.Condition `json:"conditions"`
}

DopplerSecretStatus defines the observed state of DopplerSecret

func (*DopplerSecretStatus) DeepCopy

func (in *DopplerSecretStatus) DeepCopy() *DopplerSecretStatus

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

func (*DopplerSecretStatus) DeepCopyInto

func (in *DopplerSecretStatus) DeepCopyInto(out *DopplerSecretStatus)

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

type ManagedSecretReference added in v1.4.0

type ManagedSecretReference struct {
	// The name of the Secret resource
	Name string `json:"name"`

	// Namespace of the resource being referred to. Ignored if not cluster scoped
	// +optional
	Namespace string `json:"namespace,omitempty"`

	// The secret type of the managed secret
	// +kubebuilder:validation:Enum=Opaque;kubernetes.io/tls;kubernetes.io/service-account-token;kubernetes.io/dockercfg;kubernetes.io/dockerconfigjson;kubernetes.io/basic-auth;kubernetes.io/ssh-auth;bootstrap.kubernetes.io/token
	// +kubebuilder:default=Opaque
	// +optional
	Type string `json:"type,omitempty"`
}

A reference to a managed Kubernetes secret

func (*ManagedSecretReference) DeepCopy added in v1.4.0

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

func (*ManagedSecretReference) DeepCopyInto added in v1.4.0

func (in *ManagedSecretReference) DeepCopyInto(out *ManagedSecretReference)

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

type SecretProcessor

type SecretProcessor struct {
	// The type of process to be performed, either "plain" or "base64"
	// +kubebuilder:validation:Enum=plain;base64
	// +kubebuilder:default=plain
	// +optional
	Type string `json:"type"`

	// The mapped name of the field in the managed secret, defaults to the original Doppler secret name for Opaque Kubernetes secrets. If omitted for other types, the value is not copied to the managed secret.
	AsName string `json:"asName,omitempty"`
}

func (*SecretProcessor) DeepCopy

func (in *SecretProcessor) DeepCopy() *SecretProcessor

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

func (*SecretProcessor) DeepCopyInto

func (in *SecretProcessor) DeepCopyInto(out *SecretProcessor)

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

type SecretProcessors

type SecretProcessors map[string]*SecretProcessor

func (SecretProcessors) DeepCopy

func (in SecretProcessors) DeepCopy() SecretProcessors

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

func (SecretProcessors) DeepCopyInto

func (in SecretProcessors) DeepCopyInto(out *SecretProcessors)

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

type TokenSecretReference added in v1.4.0

type TokenSecretReference struct {
	// The name of the Secret resource
	Name string `json:"name"`

	// Namespace of the resource being referred to. Ignored if not cluster scoped
	// +optional
	Namespace string `json:"namespace,omitempty"`
}

A reference to a token Kubernetes secret

func (*TokenSecretReference) DeepCopy added in v1.4.0

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

func (*TokenSecretReference) DeepCopyInto added in v1.4.0

func (in *TokenSecretReference) DeepCopyInto(out *TokenSecretReference)

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