v1beta1

package
v0.0.0-...-e950fe4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the maupu.org v1beta1 API group +kubebuilder:object:generate=true +groupName=maupu.org

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "maupu.org", Version: "v1beta1"}

	// 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 AppRoleAuthType

type AppRoleAuthType struct {
	Name     string `json:"name,omitempty"`
	RoleID   string `json:"roleId,required"`
	SecretID string `json:"secretId,required"`
}

AppRoleAuthType AppRole authentication type

func (*AppRoleAuthType) DeepCopy

func (in *AppRoleAuthType) DeepCopy() *AppRoleAuthType

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

func (*AppRoleAuthType) DeepCopyInto

func (in *AppRoleAuthType) DeepCopyInto(out *AppRoleAuthType)

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

type BySecretKey

type BySecretKey []VaultSecretSpecSecret

BySecretKey allows sorting an array of VaultSecretSpecSecret by SecretKey

func (BySecretKey) DeepCopy

func (in BySecretKey) DeepCopy() BySecretKey

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

func (BySecretKey) DeepCopyInto

func (in BySecretKey) DeepCopyInto(out *BySecretKey)

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

func (BySecretKey) Len

func (a BySecretKey) Len() int

Len returns the len of a BySecretKey object

func (BySecretKey) Less

func (a BySecretKey) Less(i, j int) bool

Less checks if a given SecretKey object is lexicographically inferior to another SecretKey object

func (BySecretKey) Swap

func (a BySecretKey) Swap(i, j int)

Swap swaps two elements of a BySecretKey object

type KubernetesAuthType

type KubernetesAuthType struct {
	Role    string `json:"role,required"`
	Cluster string `json:"cluster,required"`
	// ServiceAccount to use for authentication, using "default" if not provided
	ServiceAccount string `json:"serviceAccount,omitempty"`
}

KubernetesAuthType Kubernetes authentication type

func (*KubernetesAuthType) DeepCopy

func (in *KubernetesAuthType) DeepCopy() *KubernetesAuthType

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

func (*KubernetesAuthType) DeepCopyInto

func (in *KubernetesAuthType) DeepCopyInto(out *KubernetesAuthType)

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

type VaultSecret

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

	Spec   VaultSecretSpec   `json:"spec,omitempty"`
	Status VaultSecretStatus `json:"status,omitempty"`
}

VaultSecret is the Schema for the vaultsecrets API +k8s:openapi-gen=true +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:path=vaultsecrets,scope=Namespaced

func (*VaultSecret) DeepCopy

func (in *VaultSecret) DeepCopy() *VaultSecret

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

func (*VaultSecret) DeepCopyInto

func (in *VaultSecret) DeepCopyInto(out *VaultSecret)

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

func (*VaultSecret) DeepCopyObject

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

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

func (*VaultSecret) GetVaultAuthProvider

func (cr *VaultSecret) GetVaultAuthProvider(c client.Client) (nmvault.AuthProvider, error)

GetVaultAuthProvider implem from custom resource object

type VaultSecretList

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

VaultSecretList contains a list of VaultSecret

func (*VaultSecretList) DeepCopy

func (in *VaultSecretList) DeepCopy() *VaultSecretList

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

func (*VaultSecretList) DeepCopyInto

func (in *VaultSecretList) DeepCopyInto(out *VaultSecretList)

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

func (*VaultSecretList) DeepCopyObject

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

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

type VaultSecretSpec

type VaultSecretSpec struct {
	Config VaultSecretSpecConfig `json:"config,required"`
	// +listType=set
	Secrets           []VaultSecretSpecSecret `json:"secrets,required"`
	SecretName        string                  `json:"secretName,omitempty"`
	SecretType        corev1.SecretType       `json:"secretType,omitempty"`
	SecretLabels      map[string]string       `json:"secretLabels,omitempty"`
	SecretAnnotations map[string]string       `json:"secretAnnotations,omitempty"`
	SyncPeriod        metav1.Duration         `json:"syncPeriod,omitempty"`
}

VaultSecretSpec defines the desired state of VaultSecret +k8s:openapi-gen=true

func (*VaultSecretSpec) DeepCopy

func (in *VaultSecretSpec) DeepCopy() *VaultSecretSpec

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

func (*VaultSecretSpec) DeepCopyInto

func (in *VaultSecretSpec) DeepCopyInto(out *VaultSecretSpec)

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

type VaultSecretSpecConfig

type VaultSecretSpecConfig struct {
	Addr      string                    `json:"addr,required"`
	Namespace string                    `json:"namespace,omitempty"`
	Insecure  bool                      `json:"insecure,omitempty"`
	Auth      VaultSecretSpecConfigAuth `json:"auth,required"`
}

VaultSecretSpecConfig Configuration part of a vault-secret object

func (*VaultSecretSpecConfig) DeepCopy

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

func (*VaultSecretSpecConfig) DeepCopyInto

func (in *VaultSecretSpecConfig) DeepCopyInto(out *VaultSecretSpecConfig)

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

type VaultSecretSpecConfigAuth

type VaultSecretSpecConfigAuth struct {
	Token      string             `json:"token,omitempty"`
	Kubernetes KubernetesAuthType `json:"kubernetes,omitempty"`
	AppRole    AppRoleAuthType    `json:"approle,omitempty"`
}

VaultSecretSpecConfigAuth Mean of authentication for Vault

func (*VaultSecretSpecConfigAuth) DeepCopy

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

func (*VaultSecretSpecConfigAuth) DeepCopyInto

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

type VaultSecretSpecSecret

type VaultSecretSpecSecret struct {
	// Key name in the secret to create
	SecretKey string `json:"secretKey,required"`
	// Path of the key-value storage
	KvPath string `json:"kvPath,required"`
	// Path of the vault secret
	Path string `json:"path,required"`
	// Field to retrieve from the path
	Field string `json:"field,required"`
	// KvVersion is the version of the KV backend, if unspecified, try to automatically determine it
	KvVersion int `json:"kvVersion,omitempty"`
}

VaultSecretSpecSecret Defines secrets to create from Vault

func (*VaultSecretSpecSecret) DeepCopy

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

func (*VaultSecretSpecSecret) DeepCopyInto

func (in *VaultSecretSpecSecret) DeepCopyInto(out *VaultSecretSpecSecret)

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

type VaultSecretStatus

type VaultSecretStatus struct {
	// +listType=set
	Entries []VaultSecretStatusEntry `json:"entries,omitempty"`
}

VaultSecretStatus Status field regarding last custom resource process +k8s:openapi-gen=true

func (*VaultSecretStatus) DeepCopy

func (in *VaultSecretStatus) DeepCopy() *VaultSecretStatus

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

func (*VaultSecretStatus) DeepCopyInto

func (in *VaultSecretStatus) DeepCopyInto(out *VaultSecretStatus)

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

type VaultSecretStatusEntry

type VaultSecretStatusEntry struct {
	Secret    VaultSecretSpecSecret `json:"secret,required"`
	Status    bool                  `json:"status,required"`
	Message   string                `json:"message,omitempty"`
	RootError string                `json:"rootError,omitempty"`
}

VaultSecretStatusEntry Entry for the status field

func (*VaultSecretStatusEntry) DeepCopy

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

func (*VaultSecretStatusEntry) DeepCopyInto

func (in *VaultSecretStatusEntry) DeepCopyInto(out *VaultSecretStatusEntry)

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