v1alpha1

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: BSD-3-Clause 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.mz.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.mz.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
)

Functions

This section is empty.

Types

type ConfigMapSecret

type ConfigMapSecret struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Desired state of the ConfigMapSecret.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec ConfigMapSecretSpec `json:"spec,omitempty"`

	// Observed state of the ConfigMapSecret.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Status ConfigMapSecretStatus `json:"status,omitempty"`
}

ConfigMapSecret holds configuration data with embedded secrets.

func (*ConfigMapSecret) DeepCopy

func (in *ConfigMapSecret) DeepCopy() *ConfigMapSecret

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

func (*ConfigMapSecret) DeepCopyInto

func (in *ConfigMapSecret) DeepCopyInto(out *ConfigMapSecret)

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

func (*ConfigMapSecret) DeepCopyObject

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

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

type ConfigMapSecretCondition

type ConfigMapSecretCondition struct {
	// Type of the condition.
	Type ConfigMapSecretConditionType `json:"type"`
	// Status of the condition: True, False, or Unknown.
	Status corev1.ConditionStatus `json:"status"`
	// The last time the condition was updated.
	// +optional
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
	// Last time the condition transitioned from one status to another.
	// +optional
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// The reason for the last update.
	// +optional
	Reason string `json:"reason,omitempty"`
	// A human readable message indicating details about the last update.
	// +optional
	Message string `json:"message,omitempty"`
}

ConfigMapSecretCondition describes the state of a ConfigMapSecret.

func (*ConfigMapSecretCondition) DeepCopy

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

func (*ConfigMapSecretCondition) DeepCopyInto

func (in *ConfigMapSecretCondition) DeepCopyInto(out *ConfigMapSecretCondition)

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

type ConfigMapSecretConditionType

type ConfigMapSecretConditionType string

ConfigMapSecretConditionType is a valid value for ConfigMapSecretCondition.Type

const (
	// ConfigMapSecretRenderFailure means that the target secret could not be
	// rendered.
	ConfigMapSecretRenderFailure ConfigMapSecretConditionType = "RenderFailure"
)

type ConfigMapSecretList

type ConfigMapSecretList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#lists-and-simple-kinds
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`

	// List of ConfigMapSecrets.
	Items []ConfigMapSecret `json:"items"`
}

ConfigMapSecretList contains a list of ConfigMapSecrets.

func (*ConfigMapSecretList) DeepCopy

func (in *ConfigMapSecretList) DeepCopy() *ConfigMapSecretList

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

func (*ConfigMapSecretList) DeepCopyInto

func (in *ConfigMapSecretList) DeepCopyInto(out *ConfigMapSecretList)

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

func (*ConfigMapSecretList) DeepCopyObject

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

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

type ConfigMapSecretSpec

type ConfigMapSecretSpec struct {
	// Template that describes the config that will be rendered.
	// Variable references $(VAR_NAME) in template data are expanded using the
	// ConfigMapSecret's variables. If a variable cannot be resolved, the reference
	// in the input data will be unchanged. The $(VAR_NAME) syntax can be escaped
	// with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
	// regardless of whether the variable exists or not.
	// +optional
	Template ConfigMapTemplate `json:"template,omitempty"`

	// List of template variables.
	// +optional
	Vars []TemplateVariable `json:"vars,omitempty"`
}

ConfigMapSecretSpec defines the desired state of a ConfigMapSecret.

func (*ConfigMapSecretSpec) DeepCopy

func (in *ConfigMapSecretSpec) DeepCopy() *ConfigMapSecretSpec

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

func (*ConfigMapSecretSpec) DeepCopyInto

func (in *ConfigMapSecretSpec) DeepCopyInto(out *ConfigMapSecretSpec)

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

type ConfigMapSecretStatus

type ConfigMapSecretStatus struct {
	// The generation observed by the ConfigMapSecret controller.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// Represents the latest available observations of a ConfigMapSecret's current state.
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []ConfigMapSecretCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

ConfigMapSecretStatus describes the observed state of a ConfigMapSecret.

func (*ConfigMapSecretStatus) DeepCopy

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

func (*ConfigMapSecretStatus) DeepCopyInto

func (in *ConfigMapSecretStatus) DeepCopyInto(out *ConfigMapSecretStatus)

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

type ConfigMapTemplate

type ConfigMapTemplate struct {
	// Standard object metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Data contains the configuration data.
	// Each key must consist of alphanumeric characters, '-', '_' or '.'.
	// Values with non-UTF-8 byte sequences must use the BinaryData field.
	// The keys stored in Data must not overlap with the keys in
	// the BinaryData field.
	// +optional
	Data map[string]string `json:"data,omitempty"`

	// BinaryData contains the binary data.
	// Each key must consist of alphanumeric characters, '-', '_' or '.'.
	// BinaryData can contain byte sequences that are not in the UTF-8 range.
	// The keys stored in BinaryData must not overlap with the keys in
	// the Data field.
	// +optional
	BinaryData map[string][]byte `json:"binaryData,omitempty"`
}

ConfigMapTemplate is a ConfigMap template.

func (*ConfigMapTemplate) DeepCopy

func (in *ConfigMapTemplate) DeepCopy() *ConfigMapTemplate

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

func (*ConfigMapTemplate) DeepCopyInto

func (in *ConfigMapTemplate) DeepCopyInto(out *ConfigMapTemplate)

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

type TemplateVariable

type TemplateVariable struct {
	// Name of the template variable.
	Name string `json:"name"`

	// Variable references $(VAR_NAME) are expanded using the previous defined
	// environment variables in the ConfigMapSecret. If a variable cannot be resolved,
	// the reference in the input string will be unchanged. The $(VAR_NAME) syntax
	// can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will
	// never be expanded, regardless of whether the variable exists or not.
	// Defaults to "".
	// +optional
	Value string `json:"value,omitempty"`
	// SecretValue selects a value by its key in a Secret.
	// +optional
	SecretValue *corev1.SecretKeySelector `json:"secretValue,omitempty"`
	// ConfigMapValue selects a value by its key in a ConfigMap.
	// +optional
	ConfigMapValue *corev1.ConfigMapKeySelector `json:"configMapValue,omitempty"`
}

TemplateVariable is a template variable.

func (*TemplateVariable) DeepCopy

func (in *TemplateVariable) DeepCopy() *TemplateVariable

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

func (*TemplateVariable) DeepCopyInto

func (in *TemplateVariable) DeepCopyInto(out *TemplateVariable)

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