v1alpha1

package
v0.1.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the sops v1alpha1 API group +kubebuilder:object:generate=true +groupName=sops.peakscale.ch

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "sops.peakscale.ch", 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 SopsProvider

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

	Spec   SopsProviderSpec   `json:"spec,omitempty"`
	Status SopsProviderStatus `json:"status,omitempty"`
}

SopsProvider is the Schema for the sopsproviders API

func (*SopsProvider) DeepCopy

func (in *SopsProvider) DeepCopy() *SopsProvider

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

func (*SopsProvider) DeepCopyInto

func (in *SopsProvider) DeepCopyInto(out *SopsProvider)

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

func (*SopsProvider) DeepCopyObject

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

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

func (*SopsProvider) GatherProviderSecrets

func (s *SopsProvider) GatherProviderSecrets(ctx context.Context, client client.Client) ([]corev1.Secret, error)

GatherProviderSecrets selects unique secrets based on ProviderSelectors

type SopsProviderItemStatus

type SopsProviderItemStatus struct {
	// Conditions represent the latest available observations of an instances state
	metav1.Condition `json:",inline"`
	// The Origin this Provider origaniated from
	api.Origin `json:",inline"`
}

func (*SopsProviderItemStatus) DeepCopy

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

func (*SopsProviderItemStatus) DeepCopyInto

func (in *SopsProviderItemStatus) DeepCopyInto(out *SopsProviderItemStatus)

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

type SopsProviderList

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

SopsProviderList contains a list of SopsProvider

func (*SopsProviderList) DeepCopy

func (in *SopsProviderList) DeepCopy() *SopsProviderList

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

func (*SopsProviderList) DeepCopyInto

func (in *SopsProviderList) DeepCopyInto(out *SopsProviderList)

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

func (*SopsProviderList) DeepCopyObject

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

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

type SopsProviderSelector

type SopsProviderSelector struct {
	// Select namespaces or secrets where decryption information for this
	// provider can be sourced from
	*api.NamespacedSelector `json:",omitempty"`
}

func (*SopsProviderSelector) DeepCopy

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

func (*SopsProviderSelector) DeepCopyInto

func (in *SopsProviderSelector) DeepCopyInto(out *SopsProviderSelector)

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

type SopsProviderSpec

type SopsProviderSpec struct {
	// Selector Referencing which Secrets can be encrypted by this provider
	// This selects effective SOPS Secrets
	SOPSSelectors []*api.NamespacedSelector `json:"sops"`

	// Select namespaces or secrets where decryption information for this
	// provider can be sourced from
	ProviderSecrets []*SopsProviderSelector `json:"providers"`
}

SopsProviderSpec defines the desired state of SopsProvider

func (*SopsProviderSpec) DeepCopy

func (in *SopsProviderSpec) DeepCopy() *SopsProviderSpec

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

func (*SopsProviderSpec) DeepCopyInto

func (in *SopsProviderSpec) DeepCopyInto(out *SopsProviderSpec)

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

type SopsProviderStatus

type SopsProviderStatus struct {
	// List Validated Providers
	Providers []*SopsProviderItemStatus `json:"providers,omitempty"`
	// Conditions represent the latest available observations of an instances state
	Condition metav1.Condition `json:"condition,omitempty"`
}

SopsProviderStatus defines the observed state of SopsProvider

func (*SopsProviderStatus) DeepCopy

func (in *SopsProviderStatus) DeepCopy() *SopsProviderStatus

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

func (*SopsProviderStatus) DeepCopyInto

func (in *SopsProviderStatus) DeepCopyInto(out *SopsProviderStatus)

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

func (*SopsProviderStatus) GetInstance

Get an instance current status

func (*SopsProviderStatus) RemoveInstance

func (ms *SopsProviderStatus) RemoveInstance(stat *SopsProviderItemStatus)

Removes an instance

func (*SopsProviderStatus) UpdateInstance

func (ms *SopsProviderStatus) UpdateInstance(stat *SopsProviderItemStatus)

Add/Update the status for a single instance

type SopsSecret

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

	Spec   SopsSecretSpec    `json:"spec,omitempty"`
	Status SopsSecretStatus  `json:"status,omitempty"`
	Sops   *api.SopsMetadata `json:"sops,omitempty"`
}

SopsSecret is the Schema for the sopssecrets API

func (*SopsSecret) DeepCopy

func (in *SopsSecret) DeepCopy() *SopsSecret

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

func (*SopsSecret) DeepCopyInto

func (in *SopsSecret) DeepCopyInto(out *SopsSecret)

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

func (*SopsSecret) DeepCopyObject

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

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

type SopsSecretItem

type SopsSecretItem struct {
	// Name must be unique within a namespace. Is required when creating resources, although
	// some resources may allow a client to request the generation of an appropriate name
	// automatically. Name is primarily intended for creation idempotence and configuration
	// definition.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
	// Map of string keys and values that can be used to organize and categorize
	// (scope and select) objects. May match selectors of replication controllers
	// and services.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
	// +optional
	Labels map[string]string `json:"labels,omitempty" protobuf:"bytes,11,rep,name=labels"`
	// Map of string keys and values that can be used to organize and categorize
	// (scope and select) objects. May match selectors of replication controllers
	// and services.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
	// +optional
	Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,11,rep,name=labels"`
	// Kubernetes secret type.
	// Defaults to Opaque.
	// Allowed values:
	// - Opaque
	// - kubernetes.io/service-account-token
	// - kubernetes.io/dockercfg
	// - kubernetes.io/dockerconfigjson
	// - kubernetes.io/basic-auth
	// - kubernetes.io/ssh-auth
	// - kubernetes.io/tls
	// - bootstrap.kubernetes.io/token
	// +kubebuilder:validation:Enum=Opaque;kubernetes.io/service-account-token;kubernetes.io/dockercfg;kubernetes.io/dockerconfigjson;kubernetes.io/basic-auth;kubernetes.io/ssh-auth;kubernetes.io/tls;bootstrap.kubernetes.io/token
	Type corev1.SecretType `json:"type,omitempty"`
	// Data map to use in Kubernetes secret (equivalent to Kubernetes Secret object data, please see for more
	// information: https://kubernetes.io/docs/concepts/configuration/secret/#overview-of-secrets)
	//+optional
	Data map[string]string `json:"data,omitempty"`
	// stringData map to use in Kubernetes secret (equivalent to Kubernetes Secret object stringData, please see for more
	// information: https://kubernetes.io/docs/concepts/configuration/secret/#overview-of-secrets)
	//+optional
	StringData map[string]string `json:"stringData,omitempty"`
	// Immutable, if set to true, ensures that data stored in the Secret cannot
	// be updated (only object metadata can be modified).
	// If not set to true, the field can be modified at any time.
	// Defaulted to nil.
	// +optional
	Immutable *bool `json:"immutable,omitempty" protobuf:"varint,5,opt,name=immutable"`
}

SopsSecretTemplate defines the map of secrets to create +kubebuilder:object:root=false

func (*SopsSecretItem) DeepCopy

func (in *SopsSecretItem) DeepCopy() *SopsSecretItem

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

func (*SopsSecretItem) DeepCopyInto

func (in *SopsSecretItem) DeepCopyInto(out *SopsSecretItem)

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

type SopsSecretItemStatus

type SopsSecretItemStatus struct {
	Condition metav1.Condition `json:"condition"`
	Name      string           `json:"name"`
	Namespace string           `json:"namespace"`
	UID       k8stypes.UID     `json:"uid,omitempty"`
}

func (*SopsSecretItemStatus) DeepCopy

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

func (*SopsSecretItemStatus) DeepCopyInto

func (in *SopsSecretItemStatus) DeepCopyInto(out *SopsSecretItemStatus)

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

type SopsSecretList

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

SopsSecretList contains a list of SopsSecret

func (*SopsSecretList) DeepCopy

func (in *SopsSecretList) DeepCopy() *SopsSecretList

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

func (*SopsSecretList) DeepCopyInto

func (in *SopsSecretList) DeepCopyInto(out *SopsSecretList)

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

func (*SopsSecretList) DeepCopyObject

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

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

type SopsSecretSpec

type SopsSecretSpec struct {
	// Define Secrets to replicate, when secret is decrypted
	Secrets []*SopsSecretItem `json:"secrets"`
}

SopsSecretSpec defines the desired state of SopsSecret

func (*SopsSecretSpec) DeepCopy

func (in *SopsSecretSpec) DeepCopy() *SopsSecretSpec

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

func (*SopsSecretSpec) DeepCopyInto

func (in *SopsSecretSpec) DeepCopyInto(out *SopsSecretSpec)

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

type SopsSecretStatus

type SopsSecretStatus struct {
	// Amount of tenants selected by this translator
	//+kubebuilder:default=0
	Size uint `json:"size,omitempty"`
	// Secrets being replicated by this SopsSecret
	Secrets []*SopsSecretItemStatus `json:"secrets,omitempty"`
	// Conditions represent the latest available observations of an instances state
	Condition metav1.Condition `json:"condition,omitempty"`
}

SopsSecretStatus defines the observed state of SopsSecret

func (*SopsSecretStatus) DeepCopy

func (in *SopsSecretStatus) DeepCopy() *SopsSecretStatus

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

func (*SopsSecretStatus) DeepCopyInto

func (in *SopsSecretStatus) DeepCopyInto(out *SopsSecretStatus)

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

func (*SopsSecretStatus) GetInstance

Get an instance current status

func (*SopsSecretStatus) RemoveInstance

func (ms *SopsSecretStatus) RemoveInstance(stat *SopsSecretItemStatus)

Removes an instance

func (*SopsSecretStatus) UpdateInstance

func (ms *SopsSecretStatus) UpdateInstance(stat *SopsSecretItemStatus)

Add/Update the status for a single instance

Jump to

Keyboard shortcuts

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