Documentation ¶
Overview ¶
Package v1alpha3 contains API Schema definitions for the etcd boostrap v1alpha3 API group +kubebuilder:object:generate=true +groupName=bootstrap.cluster.x-k8s.io +k8s:conversion-gen=github.com/mrajashree/etcdadm-bootstrap-provider/api/v1beta1
Package v1alpha3 contains API Schema definitions for the bootstrap v1alpha3 API group +kubebuilder:object:generate=true +groupName=bootstrap.cluster.x-k8s.io
Index ¶
- Variables
- func Convert_v1alpha3_BottlerocketConfig_To_v1beta1_BottlerocketConfig(in *BottlerocketConfig, out *v1beta1.BottlerocketConfig, s conversion.Scope) error
- func Convert_v1alpha3_CloudInitConfig_To_v1beta1_CloudInitConfig(in *CloudInitConfig, out *v1beta1.CloudInitConfig, s conversion.Scope) error
- func Convert_v1alpha3_EtcdadmConfigList_To_v1beta1_EtcdadmConfigList(in *EtcdadmConfigList, out *v1beta1.EtcdadmConfigList, s conversion.Scope) error
- func Convert_v1alpha3_EtcdadmConfigSpec_To_v1beta1_EtcdadmConfigSpec(in *EtcdadmConfigSpec, out *v1beta1.EtcdadmConfigSpec, s conversion.Scope) error
- func Convert_v1alpha3_EtcdadmConfigStatus_To_v1beta1_EtcdadmConfigStatus(in *EtcdadmConfigStatus, out *v1beta1.EtcdadmConfigStatus, s conversion.Scope) error
- func Convert_v1alpha3_EtcdadmConfig_To_v1beta1_EtcdadmConfig(in *EtcdadmConfig, out *v1beta1.EtcdadmConfig, s conversion.Scope) error
- func Convert_v1alpha3_ProxyConfiguration_To_v1beta1_ProxyConfiguration(in *ProxyConfiguration, out *v1beta1.ProxyConfiguration, s conversion.Scope) error
- func Convert_v1alpha3_RegistryMirrorConfiguration_To_v1beta1_RegistryMirrorConfiguration(in *RegistryMirrorConfiguration, out *v1beta1.RegistryMirrorConfiguration, ...) error
- func Convert_v1beta1_BottlerocketConfig_To_v1alpha3_BottlerocketConfig(in *v1beta1.BottlerocketConfig, out *BottlerocketConfig, s conversion.Scope) error
- func Convert_v1beta1_CloudInitConfig_To_v1alpha3_CloudInitConfig(in *v1beta1.CloudInitConfig, out *CloudInitConfig, s conversion.Scope) error
- func Convert_v1beta1_EtcdadmConfigList_To_v1alpha3_EtcdadmConfigList(in *v1beta1.EtcdadmConfigList, out *EtcdadmConfigList, s conversion.Scope) error
- func Convert_v1beta1_EtcdadmConfigSpec_To_v1alpha3_EtcdadmConfigSpec(in *v1beta1.EtcdadmConfigSpec, out *EtcdadmConfigSpec, s conversion.Scope) error
- func Convert_v1beta1_EtcdadmConfigStatus_To_v1alpha3_EtcdadmConfigStatus(in *v1beta1.EtcdadmConfigStatus, out *EtcdadmConfigStatus, s conversion.Scope) error
- func Convert_v1beta1_EtcdadmConfig_To_v1alpha3_EtcdadmConfig(in *v1beta1.EtcdadmConfig, out *EtcdadmConfig, s conversion.Scope) error
- func Convert_v1beta1_ProxyConfiguration_To_v1alpha3_ProxyConfiguration(in *v1beta1.ProxyConfiguration, out *ProxyConfiguration, s conversion.Scope) error
- func Convert_v1beta1_RegistryMirrorConfiguration_To_v1alpha3_RegistryMirrorConfiguration(in *v1beta1.RegistryMirrorConfiguration, out *RegistryMirrorConfiguration, ...) error
- func RegisterConversions(s *runtime.Scheme) error
- type BottlerocketConfig
- type CloudInitConfig
- type EtcdadmConfig
- func (dst *EtcdadmConfig) ConvertFrom(srcRaw conversion.Hub) error
- func (src *EtcdadmConfig) ConvertTo(dstRaw conversion.Hub) error
- func (in *EtcdadmConfig) DeepCopy() *EtcdadmConfig
- func (in *EtcdadmConfig) DeepCopyInto(out *EtcdadmConfig)
- func (in *EtcdadmConfig) DeepCopyObject() runtime.Object
- func (c *EtcdadmConfig) GetConditions() clusterv1.Conditions
- func (c *EtcdadmConfig) SetConditions(conditions clusterv1.Conditions)
- type EtcdadmConfigList
- func (dst *EtcdadmConfigList) ConvertFrom(srcRaw conversion.Hub) error
- func (src *EtcdadmConfigList) ConvertTo(dstRaw conversion.Hub) error
- func (in *EtcdadmConfigList) DeepCopy() *EtcdadmConfigList
- func (in *EtcdadmConfigList) DeepCopyInto(out *EtcdadmConfigList)
- func (in *EtcdadmConfigList) DeepCopyObject() runtime.Object
- type EtcdadmConfigSpec
- type EtcdadmConfigStatus
- type Format
- type ProxyConfiguration
- type RegistryMirrorConfiguration
Constants ¶
This section is empty.
Variables ¶
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 ¶
func Convert_v1alpha3_BottlerocketConfig_To_v1beta1_BottlerocketConfig ¶
func Convert_v1alpha3_BottlerocketConfig_To_v1beta1_BottlerocketConfig(in *BottlerocketConfig, out *v1beta1.BottlerocketConfig, s conversion.Scope) error
Convert_v1alpha3_BottlerocketConfig_To_v1beta1_BottlerocketConfig is an autogenerated conversion function.
func Convert_v1alpha3_CloudInitConfig_To_v1beta1_CloudInitConfig ¶
func Convert_v1alpha3_CloudInitConfig_To_v1beta1_CloudInitConfig(in *CloudInitConfig, out *v1beta1.CloudInitConfig, s conversion.Scope) error
Convert_v1alpha3_CloudInitConfig_To_v1beta1_CloudInitConfig is an autogenerated conversion function.
func Convert_v1alpha3_EtcdadmConfigList_To_v1beta1_EtcdadmConfigList ¶
func Convert_v1alpha3_EtcdadmConfigList_To_v1beta1_EtcdadmConfigList(in *EtcdadmConfigList, out *v1beta1.EtcdadmConfigList, s conversion.Scope) error
Convert_v1alpha3_EtcdadmConfigList_To_v1beta1_EtcdadmConfigList is an autogenerated conversion function.
func Convert_v1alpha3_EtcdadmConfigSpec_To_v1beta1_EtcdadmConfigSpec ¶
func Convert_v1alpha3_EtcdadmConfigSpec_To_v1beta1_EtcdadmConfigSpec(in *EtcdadmConfigSpec, out *v1beta1.EtcdadmConfigSpec, s conversion.Scope) error
Convert_v1alpha3_EtcdadmConfigSpec_To_v1beta1_EtcdadmConfigSpec is an autogenerated conversion function.
func Convert_v1alpha3_EtcdadmConfigStatus_To_v1beta1_EtcdadmConfigStatus ¶
func Convert_v1alpha3_EtcdadmConfigStatus_To_v1beta1_EtcdadmConfigStatus(in *EtcdadmConfigStatus, out *v1beta1.EtcdadmConfigStatus, s conversion.Scope) error
Convert_v1alpha3_EtcdadmConfigStatus_To_v1beta1_EtcdadmConfigStatus is an autogenerated conversion function.
func Convert_v1alpha3_EtcdadmConfig_To_v1beta1_EtcdadmConfig ¶
func Convert_v1alpha3_EtcdadmConfig_To_v1beta1_EtcdadmConfig(in *EtcdadmConfig, out *v1beta1.EtcdadmConfig, s conversion.Scope) error
Convert_v1alpha3_EtcdadmConfig_To_v1beta1_EtcdadmConfig is an autogenerated conversion function.
func Convert_v1alpha3_ProxyConfiguration_To_v1beta1_ProxyConfiguration ¶
func Convert_v1alpha3_ProxyConfiguration_To_v1beta1_ProxyConfiguration(in *ProxyConfiguration, out *v1beta1.ProxyConfiguration, s conversion.Scope) error
Convert_v1alpha3_ProxyConfiguration_To_v1beta1_ProxyConfiguration is an autogenerated conversion function.
func Convert_v1alpha3_RegistryMirrorConfiguration_To_v1beta1_RegistryMirrorConfiguration ¶
func Convert_v1alpha3_RegistryMirrorConfiguration_To_v1beta1_RegistryMirrorConfiguration(in *RegistryMirrorConfiguration, out *v1beta1.RegistryMirrorConfiguration, s conversion.Scope) error
Convert_v1alpha3_RegistryMirrorConfiguration_To_v1beta1_RegistryMirrorConfiguration is an autogenerated conversion function.
func Convert_v1beta1_BottlerocketConfig_To_v1alpha3_BottlerocketConfig ¶
func Convert_v1beta1_BottlerocketConfig_To_v1alpha3_BottlerocketConfig(in *v1beta1.BottlerocketConfig, out *BottlerocketConfig, s conversion.Scope) error
Convert_v1beta1_BottlerocketConfig_To_v1alpha3_BottlerocketConfig is an autogenerated conversion function.
func Convert_v1beta1_CloudInitConfig_To_v1alpha3_CloudInitConfig ¶
func Convert_v1beta1_CloudInitConfig_To_v1alpha3_CloudInitConfig(in *v1beta1.CloudInitConfig, out *CloudInitConfig, s conversion.Scope) error
Convert_v1beta1_CloudInitConfig_To_v1alpha3_CloudInitConfig is an autogenerated conversion function.
func Convert_v1beta1_EtcdadmConfigList_To_v1alpha3_EtcdadmConfigList ¶
func Convert_v1beta1_EtcdadmConfigList_To_v1alpha3_EtcdadmConfigList(in *v1beta1.EtcdadmConfigList, out *EtcdadmConfigList, s conversion.Scope) error
Convert_v1beta1_EtcdadmConfigList_To_v1alpha3_EtcdadmConfigList is an autogenerated conversion function.
func Convert_v1beta1_EtcdadmConfigSpec_To_v1alpha3_EtcdadmConfigSpec ¶
func Convert_v1beta1_EtcdadmConfigSpec_To_v1alpha3_EtcdadmConfigSpec(in *v1beta1.EtcdadmConfigSpec, out *EtcdadmConfigSpec, s conversion.Scope) error
Convert_v1beta1_EtcdadmConfigSpec_To_v1alpha3_EtcdadmConfigSpec is an autogenerated conversion function.
func Convert_v1beta1_EtcdadmConfigStatus_To_v1alpha3_EtcdadmConfigStatus ¶
func Convert_v1beta1_EtcdadmConfigStatus_To_v1alpha3_EtcdadmConfigStatus(in *v1beta1.EtcdadmConfigStatus, out *EtcdadmConfigStatus, s conversion.Scope) error
Convert_v1beta1_EtcdadmConfigStatus_To_v1alpha3_EtcdadmConfigStatus is an autogenerated conversion function.
func Convert_v1beta1_EtcdadmConfig_To_v1alpha3_EtcdadmConfig ¶
func Convert_v1beta1_EtcdadmConfig_To_v1alpha3_EtcdadmConfig(in *v1beta1.EtcdadmConfig, out *EtcdadmConfig, s conversion.Scope) error
Convert_v1beta1_EtcdadmConfig_To_v1alpha3_EtcdadmConfig is an autogenerated conversion function.
func Convert_v1beta1_ProxyConfiguration_To_v1alpha3_ProxyConfiguration ¶
func Convert_v1beta1_ProxyConfiguration_To_v1alpha3_ProxyConfiguration(in *v1beta1.ProxyConfiguration, out *ProxyConfiguration, s conversion.Scope) error
Convert_v1beta1_ProxyConfiguration_To_v1alpha3_ProxyConfiguration is an autogenerated conversion function.
func Convert_v1beta1_RegistryMirrorConfiguration_To_v1alpha3_RegistryMirrorConfiguration ¶
func Convert_v1beta1_RegistryMirrorConfiguration_To_v1alpha3_RegistryMirrorConfiguration(in *v1beta1.RegistryMirrorConfiguration, out *RegistryMirrorConfiguration, s conversion.Scope) error
Convert_v1beta1_RegistryMirrorConfiguration_To_v1alpha3_RegistryMirrorConfiguration is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
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:subresource:status EtcdadmConfig is the Schema for the etcdadmconfigs API
func (*EtcdadmConfig) ConvertFrom ¶
func (dst *EtcdadmConfig) ConvertFrom(srcRaw conversion.Hub) error
ConvertFrom converts from the Hub version (v1beta1) to this EtcdadmConfig.
func (*EtcdadmConfig) ConvertTo ¶
func (src *EtcdadmConfig) ConvertTo(dstRaw conversion.Hub) error
ConvertTo converts this EtcdadmConfig to the Hub version (v1beta1).
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) ConvertFrom ¶
func (dst *EtcdadmConfigList) ConvertFrom(srcRaw conversion.Hub) error
ConvertFrom converts from the Hub version (v1beta1) to this EtcdadmConfigList.
func (*EtcdadmConfigList) ConvertTo ¶
func (src *EtcdadmConfigList) ConvertTo(dstRaw conversion.Hub) error
ConvertTo converts this EtcdadmConfigList to the Hub version (v1beta1).
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"` }
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
func (in *RegistryMirrorConfiguration) DeepCopy() *RegistryMirrorConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegistryMirrorConfiguration.
func (*RegistryMirrorConfiguration) DeepCopyInto ¶ added in v0.1.1
func (in *RegistryMirrorConfiguration) DeepCopyInto(out *RegistryMirrorConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.