v1alpha1

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the keyhub v1alpha1 API group +kubebuilder:object:generate=true +groupName=keyhub.topicus.nl

Index

Constants

View Source
const SecretTypeApachePasswordFile corev1.SecretType = "kubernetes.io/htpasswd"

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "keyhub.topicus.nl", 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 KeyHubSecret

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

	Spec   KeyHubSecretSpec   `json:"spec,omitempty"`
	Status KeyHubSecretStatus `json:"status,omitempty"`
}

KeyHubSecret is the Schema for the keyhubsecrets API

func (*KeyHubSecret) DeepCopy

func (in *KeyHubSecret) DeepCopy() *KeyHubSecret

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

func (*KeyHubSecret) DeepCopyInto

func (in *KeyHubSecret) DeepCopyInto(out *KeyHubSecret)

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

func (*KeyHubSecret) DeepCopyObject

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

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

type KeyHubSecretConditionReason

type KeyHubSecretConditionReason string
var (
	AwaitingSync KeyHubSecretConditionReason = "AwaitingSync"
)

type KeyHubSecretConditionType

type KeyHubSecretConditionType string
var (
	TypeSynced KeyHubSecretConditionType = "Synced"
)

type KeyHubSecretList

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

KeyHubSecretList contains a list of KeyHubSecret

func (*KeyHubSecretList) DeepCopy

func (in *KeyHubSecretList) DeepCopy() *KeyHubSecretList

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

func (*KeyHubSecretList) DeepCopyInto

func (in *KeyHubSecretList) DeepCopyInto(out *KeyHubSecretList)

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

func (*KeyHubSecretList) DeepCopyObject

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

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

type KeyHubSecretSpec

type KeyHubSecretSpec struct {

	// +optional
	Template SecretTemplate `json:"template,omitempty"`

	Data []SecretKeyReference `json:"data"`
}

KeyHubSecretSpec defines the desired state of KeyHubSecret +kubebuilder:validation:XPreserveUnknownFields

func (*KeyHubSecretSpec) DeepCopy

func (in *KeyHubSecretSpec) DeepCopy() *KeyHubSecretSpec

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

func (*KeyHubSecretSpec) DeepCopyInto

func (in *KeyHubSecretSpec) DeepCopyInto(out *KeyHubSecretSpec)

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

type KeyHubSecretStatus

type KeyHubSecretStatus struct {

	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	ObservedSecretGeneration int64 `json:"observedGeneration,omitempty"`

	Sync SyncStatus `json:"sync,omitempty"`

	// +optional
	VaultRecordStatuses []VaultRecordStatus `json:"vaultRecordStatuses,omitempty"`

	// +optional
	SecretKeyStatuses []SecretKeyStatus `json:"secretKeyStatuses,omitempty"`
}

KeyHubSecretStatus defines the observed state of KeyHubSecret

func (*KeyHubSecretStatus) DeepCopy

func (in *KeyHubSecretStatus) DeepCopy() *KeyHubSecretStatus

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

func (*KeyHubSecretStatus) DeepCopyInto

func (in *KeyHubSecretStatus) DeepCopyInto(out *KeyHubSecretStatus)

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

type SecretKeyReference

type SecretKeyReference struct {
	Name string `json:"name"`

	Record string `json:"record"`

	// +kubebuilder:default:="password"
	Property string `json:"property,omitempty"`

	// +optional
	Format string `json:"format,omitempty"`
}

SecretKeyReference defines the mapping between a KeyHub vault record and a K8s Secret key

func (*SecretKeyReference) DeepCopy

func (in *SecretKeyReference) DeepCopy() *SecretKeyReference

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

func (*SecretKeyReference) DeepCopyInto

func (in *SecretKeyReference) DeepCopyInto(out *SecretKeyReference)

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

type SecretKeyStatus

type SecretKeyStatus struct {
	Key string `json:"key"`

	Hash []byte `json:"hash"`
}

func (*SecretKeyStatus) DeepCopy

func (in *SecretKeyStatus) DeepCopy() *SecretKeyStatus

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

func (*SecretKeyStatus) DeepCopyInto

func (in *SecretKeyStatus) DeepCopyInto(out *SecretKeyStatus)

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

type SecretTemplate

type SecretTemplate struct {
	// +optional
	Type corev1.SecretType `json:"type,omitempty"`

	// +optional
	Metadata SecretTemplateMetadata `json:"metadata,omitempty"`
}

func (*SecretTemplate) DeepCopy

func (in *SecretTemplate) DeepCopy() *SecretTemplate

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

func (*SecretTemplate) DeepCopyInto

func (in *SecretTemplate) DeepCopyInto(out *SecretTemplate)

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

type SecretTemplateMetadata

type SecretTemplateMetadata struct {
	// +optional
	Labels map[string]string `json:"labels,omitempty"`

	// +optional
	Annotations map[string]string `json:"annotations,omitempty"`
}

func (*SecretTemplateMetadata) DeepCopy

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

func (*SecretTemplateMetadata) DeepCopyInto

func (in *SecretTemplateMetadata) DeepCopyInto(out *SecretTemplateMetadata)

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

type SyncStatus

type SyncStatus struct {
	// Status is the sync state of the secret
	Status SyncStatusCode `json:"status"`
}

SyncStatus contains information about the currently observed live and desired states of a secret

func (*SyncStatus) DeepCopy

func (in *SyncStatus) DeepCopy() *SyncStatus

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

func (*SyncStatus) DeepCopyInto

func (in *SyncStatus) DeepCopyInto(out *SyncStatus)

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

type SyncStatusCode

type SyncStatusCode string
const (
	// SyncStatusCodeUnknown indicates that the status of a sync could not be reliably determined
	SyncStatusCodeUnknown SyncStatusCode = "Unknown"
	// SyncStatusCodeOutOfSync indicates that desired and live states match
	SyncStatusCodeSynced SyncStatusCode = "Synced"
	// SyncStatusCodeOutOfSync indicates that there is a drift beween desired and live states
	SyncStatusCodeOutOfSync SyncStatusCode = "OutOfSync"
)

type VaultRecordState2

type VaultRecordState2 struct {
	Record string `json:"record"`

	Name string `json:"name"`

	// LastModifiedAt is the timestamp this record was last modified in KeyHub
	// +optional
	LastModifiedAt *metav1.Time `json:"lastModifiedAt,omitempty"`

	// Message is a human readable description of the details of the last
	// transition, complementing reason.
	// +optional
	Message string `json:"message,omitempty"`
}

func (*VaultRecordState2) DeepCopy

func (in *VaultRecordState2) DeepCopy() *VaultRecordState2

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

func (*VaultRecordState2) DeepCopyInto

func (in *VaultRecordState2) DeepCopyInto(out *VaultRecordState2)

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

type VaultRecordStatus

type VaultRecordStatus struct {
	RecordID string `json:"recordID"`

	Name string `json:"name"`

	// +optional
	// LastModifiedAt is the timestamp this record was last modified in KeyHub
	// +optional
	LastModifiedAt metav1.Time `json:"lastModifiedAt,omitempty"`
}

func (*VaultRecordStatus) DeepCopy

func (in *VaultRecordStatus) DeepCopy() *VaultRecordStatus

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

func (*VaultRecordStatus) DeepCopyInto

func (in *VaultRecordStatus) DeepCopyInto(out *VaultRecordStatus)

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