v1alpha3

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 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 BottlerocketConfig added in v0.1.1

type BottlerocketConfig struct {
	// EtcdImage specifies the etcd image to use by etcdadm
	EtcdImage string `json:"etcdImage,omitempty"`

	// BootstrapImage specifies the container image to use for bottlerocket's bootstrapping
	BootstrapImage string `json:"bootstrapImage"`

	// PauseImage specifies the image to use for the pause container
	PauseImage string `json:"pauseImage"`
}

func (*BottlerocketConfig) DeepCopy added in v0.1.1

func (in *BottlerocketConfig) DeepCopy() *BottlerocketConfig

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

func (*BottlerocketConfig) DeepCopyInto added in v0.1.1

func (in *BottlerocketConfig) DeepCopyInto(out *BottlerocketConfig)

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

type CloudInitConfig added in v0.1.1

type CloudInitConfig struct {
	// +optional
	Version string `json:"version,omitempty"`

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

	// InstallDir is an optional field to specify where etcdadm will extract etcd binaries to
	// +optional
	InstallDir string `json:"installDir,omitempty"`
}

func (*CloudInitConfig) DeepCopy added in v0.1.1

func (in *CloudInitConfig) DeepCopy() *CloudInitConfig

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

func (*CloudInitConfig) DeepCopyInto added in v0.1.1

func (in *CloudInitConfig) DeepCopyInto(out *CloudInitConfig)

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

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"`

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

	// BottlerocketConfig specifies the configuration for the bottlerocket bootstrap data
	// +optional
	BottlerocketConfig *BottlerocketConfig `json:"bottlerocketConfig,omitempty"`

	// CloudInitConfig specifies the configuration for the cloud-init bootstrap data
	// +optional
	CloudInitConfig *CloudInitConfig `json:"cloudInitConfig,omitempty"`

	// Files specifies extra files to be passed to user_data upon creation.
	// +optional
	Files []capbk.File `json:"files,omitempty"`

	// Proxy holds the https and no proxy information
	// This is only used for bottlerocket
	// +optional
	Proxy *ProxyConfiguration `json:"proxy,omitempty"`

	// RegistryMirror holds the image registry mirror information
	// This is only used for bottlerocket
	// +optional
	RegistryMirror *RegistryMirrorConfiguration `json:"registryMirror,omitempty"`

	// CipherSuites is a list of comma-delimited supported TLS cipher suites, mapping to the --cipher-suites flag.
	// Default is empty, which means that they will be auto-populated by Go.
	// +optional
	CipherSuites string `json:"cipherSuites,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.

type ProxyConfiguration added in v0.1.1

type ProxyConfiguration struct {
	// HTTP Proxy
	HTTPProxy string `json:"httpProxy,omitempty"`

	// HTTPS proxy
	HTTPSProxy string `json:"httpsProxy,omitempty"`

	// No proxy, list of ips that should not use proxy
	NoProxy []string `json:"noProxy,omitempty"`
}

ProxyConfiguration holds the settings for proxying bottlerocket services

func (*ProxyConfiguration) DeepCopy added in v0.1.1

func (in *ProxyConfiguration) DeepCopy() *ProxyConfiguration

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

func (*ProxyConfiguration) DeepCopyInto added in v0.1.1

func (in *ProxyConfiguration) DeepCopyInto(out *ProxyConfiguration)

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

type RegistryMirrorConfiguration added in v0.1.1

type RegistryMirrorConfiguration struct {
	// Endpoint defines the registry mirror endpoint to use for pulling images
	Endpoint string `json:"endpoint,omitempty"`

	// CACert defines the CA cert for the registry mirror
	CACert string `json:"caCert,omitempty"`
}

RegistryMirrorConfiguration holds the settings for image registry mirror

func (*RegistryMirrorConfiguration) DeepCopy added in v0.1.1

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

func (*RegistryMirrorConfiguration) DeepCopyInto added in v0.1.1

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