v1alpha3

package
v0.1.0-beta-3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Overview

Package v1alpha3 contains API Schema definitions for the bootstrap v1alpha3 API group +kubebuilder:object:generate=true +groupName=bootstrap.cluster.x-k8s.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "bootstrap.cluster.x-k8s.io", Version: "v1alpha3"}

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

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

	Spec   EtcdadmConfigSpec   `json:"spec,omitempty"`
	Status EtcdadmConfigStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:storageversion +kubebuilder:subresource:status EtcdadmConfig is the Schema for the etcdadmconfigs API

func (*EtcdadmConfig) DeepCopy

func (in *EtcdadmConfig) DeepCopy() *EtcdadmConfig

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

func (*EtcdadmConfig) DeepCopyInto

func (in *EtcdadmConfig) DeepCopyInto(out *EtcdadmConfig)

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

func (*EtcdadmConfig) DeepCopyObject

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

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

func (*EtcdadmConfig) GetConditions

func (c *EtcdadmConfig) GetConditions() clusterv1.Conditions

func (*EtcdadmConfig) SetConditions

func (c *EtcdadmConfig) SetConditions(conditions clusterv1.Conditions)

type EtcdadmConfigList

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

EtcdadmConfigList contains a list of EtcdadmConfig

func (*EtcdadmConfigList) DeepCopy

func (in *EtcdadmConfigList) DeepCopy() *EtcdadmConfigList

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

func (*EtcdadmConfigList) DeepCopyInto

func (in *EtcdadmConfigList) DeepCopyInto(out *EtcdadmConfigList)

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

func (*EtcdadmConfigList) DeepCopyObject

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

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

type EtcdadmConfigSpec

type EtcdadmConfigSpec struct {
	// Users specifies extra users to add
	// +optional
	Users []capbk.User `json:"users,omitempty"`

	// +optional
	EtcdadmBuiltin bool `json:"etcdadmBuiltin,omitempty"`

	// +optional
	EtcdadmInstallCommands []string `json:"etcdadmInstallCommands,omitempty"`

	// PreEtcdadmCommands specifies extra commands to run before kubeadm runs
	// +optional
	PreEtcdadmCommands []string `json:"preEtcdadmCommands,omitempty"`

	// PostEtcdadmCommands specifies extra commands to run after kubeadm runs
	// +optional
	PostEtcdadmCommands []string `json:"postEtcdadmCommands,omitempty"`

	// +optional
	Version string `json:"version,omitempty"`

	// ImageRepository is an optional field to specify where etcdadm can pull etcd images from
	// +optional
	ImageRepository string `json:"imageRepository,omitempty"`

	// EtcdReleaseURL is an optional field to specify where etcdadm can download etcd from
	// +optional
	EtcdReleaseURL string `json:"etcdReleaseURL,omitempty"`

	// Format specifies the output format of the bootstrap data
	// +optional
	Format Format `json:"format,omitempty"`
}

EtcdadmConfigSpec defines the desired state of EtcdadmConfig

func (*EtcdadmConfigSpec) DeepCopy

func (in *EtcdadmConfigSpec) DeepCopy() *EtcdadmConfigSpec

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

func (*EtcdadmConfigSpec) DeepCopyInto

func (in *EtcdadmConfigSpec) DeepCopyInto(out *EtcdadmConfigSpec)

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

type EtcdadmConfigStatus

type EtcdadmConfigStatus struct {
	// Conditions defines current service state of the KubeadmConfig.
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`

	DataSecretName *string `json:"dataSecretName,omitempty"`

	Ready bool `json:"ready,omitempty"`
}

EtcdadmConfigStatus defines the observed state of EtcdadmConfig

func (*EtcdadmConfigStatus) DeepCopy

func (in *EtcdadmConfigStatus) DeepCopy() *EtcdadmConfigStatus

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

func (*EtcdadmConfigStatus) DeepCopyInto

func (in *EtcdadmConfigStatus) DeepCopyInto(out *EtcdadmConfigStatus)

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

type Format added in v0.1.1

type Format string

Format specifies the output format of the bootstrap data +kubebuilder:validation:Enum=cloud-config;bottlerocket

const (
	DataSecretAvailableCondition clusterv1.ConditionType = "DataSecretAvailable"
	// CloudConfig make the bootstrap data to be of cloud-config format.
	CloudConfig Format = "cloud-config"
	// Bottlerocket make the bootstrap data to be of bottlerocket format.
	Bottlerocket Format = "bottlerocket"
)

NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.

Jump to

Keyboard shortcuts

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