Documentation ¶
Overview ¶
Package v1beta1 contains API Schema definitions for the v1beta1 API group +kubebuilder:object:generate=true +groupName=bootstrap.cluster.x-k8s.io
Index ¶
- Variables
- type JoinTokenSecretRef
- type K0sConfigSpec
- type K0sControllerConfig
- type K0sControllerConfigList
- type K0sControllerConfigStatus
- type K0sWorkerConfig
- type K0sWorkerConfigList
- type K0sWorkerConfigSpec
- type K0sWorkerConfigStatus
- type K0sWorkerConfigTemplate
- type K0sWorkerConfigTemplateList
- type K0sWorkerConfigTemplateResource
- type K0sWorkerConfigTemplateSpec
- type TunnelingSpec
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: "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 JoinTokenSecretRef ¶
type JoinTokenSecretRef struct { // Name is the name of the secret // +kubebuilder:validation:Required Name string `json:"name"` // Key is the key in the secret that contains the join token // +kubebuilder:validation:Required Key string `json:"key"` }
func (*JoinTokenSecretRef) DeepCopy ¶
func (in *JoinTokenSecretRef) DeepCopy() *JoinTokenSecretRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JoinTokenSecretRef.
func (*JoinTokenSecretRef) DeepCopyInto ¶
func (in *JoinTokenSecretRef) DeepCopyInto(out *JoinTokenSecretRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type K0sConfigSpec ¶ added in v0.6.0
type K0sConfigSpec struct { // K0s defines the k0s configuration. Note, that some fields will be overwritten by k0smotron. // If empty, will be used default configuration. @see https://docs.k0sproject.io/stable/configuration/ //+kubebuilder:validation:Optional //+kubebuilder:pruning:PreserveUnknownFields K0s *unstructured.Unstructured `json:"k0s,omitempty"` // Version is the version of k0s to use. In case this is not set, the latest version is used. // Make sure the version is compatible with the k0s version running on the control plane. // For reference see the Kubernetes version skew policy: https://kubernetes.io/docs/setup/release/version-skew-policy/ // +kubebuilder:validation:Optional Version string `json:"version,omitempty"` // Files specifies extra files to be passed to user_data upon creation. // +kubebuilder:validation:Optional Files []cloudinit.File `json:"files,omitempty"` // Args specifies extra arguments to be passed to k0s worker. // See: https://docs.k0sproject.io/stable/advanced/worker-configuration/ Args []string `json:"args,omitempty"` // PreStartCommands specifies commands to be run before starting k0s worker. // +kubebuilder:validation:Optional PreStartCommands []string `json:"preStartCommands,omitempty"` // PostStartCommands specifies commands to be run after starting k0s worker. // +kubebuilder:validation:Optional PostStartCommands []string `json:"postStartCommands,omitempty"` // PreInstallK0s specifies whether k0s binary is pre-installed on the node. // +kubebuilder:validation:Optional PreInstalledK0s bool `json:"preInstalledK0s,omitempty"` // DownloadURL specifies the URL from which to download the k0s binary. // If the version field is specified, it is ignored, and whatever version is downloaded from the URL is used. // +kubebuilder:validation:Optional DownloadURL string `json:"downloadURL,omitempty"` // Tunneling defines the tunneling configuration for the cluster. //+kubebuilder:validation:Optional Tunneling TunnelingSpec `json:"tunneling,omitempty"` }
func (*K0sConfigSpec) DeepCopy ¶ added in v0.6.0
func (in *K0sConfigSpec) DeepCopy() *K0sConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0sConfigSpec.
func (*K0sConfigSpec) DeepCopyInto ¶ added in v0.6.0
func (in *K0sConfigSpec) DeepCopyInto(out *K0sConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type K0sControllerConfig ¶ added in v0.6.0
type K0sControllerConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec K0sConfigSpec `json:"spec,omitempty"` Status K0sControllerConfigStatus `json:"status,omitempty"` }
func (*K0sControllerConfig) DeepCopy ¶ added in v0.6.0
func (in *K0sControllerConfig) DeepCopy() *K0sControllerConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0sControllerConfig.
func (*K0sControllerConfig) DeepCopyInto ¶ added in v0.6.0
func (in *K0sControllerConfig) DeepCopyInto(out *K0sControllerConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*K0sControllerConfig) DeepCopyObject ¶ added in v0.6.0
func (in *K0sControllerConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type K0sControllerConfigList ¶ added in v0.6.0
type K0sControllerConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []K0sControllerConfig `json:"items"` }
func (*K0sControllerConfigList) DeepCopy ¶ added in v0.6.0
func (in *K0sControllerConfigList) DeepCopy() *K0sControllerConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0sControllerConfigList.
func (*K0sControllerConfigList) DeepCopyInto ¶ added in v0.6.0
func (in *K0sControllerConfigList) DeepCopyInto(out *K0sControllerConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*K0sControllerConfigList) DeepCopyObject ¶ added in v0.6.0
func (in *K0sControllerConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type K0sControllerConfigStatus ¶ added in v0.6.0
type K0sControllerConfigStatus struct { // Ready indicates the Bootstrapdata field is ready to be consumed Ready bool `json:"ready,omitempty"` // DataSecretName is the name of the secret that stores the bootstrap data script. // +optional DataSecretName *string `json:"dataSecretName,omitempty"` }
func (*K0sControllerConfigStatus) DeepCopy ¶ added in v0.6.0
func (in *K0sControllerConfigStatus) DeepCopy() *K0sControllerConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0sControllerConfigStatus.
func (*K0sControllerConfigStatus) DeepCopyInto ¶ added in v0.6.0
func (in *K0sControllerConfigStatus) DeepCopyInto(out *K0sControllerConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type K0sWorkerConfig ¶
type K0sWorkerConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec K0sWorkerConfigSpec `json:"spec,omitempty"` Status K0sWorkerConfigStatus `json:"status,omitempty"` }
func (*K0sWorkerConfig) DeepCopy ¶
func (in *K0sWorkerConfig) DeepCopy() *K0sWorkerConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0sWorkerConfig.
func (*K0sWorkerConfig) DeepCopyInto ¶
func (in *K0sWorkerConfig) DeepCopyInto(out *K0sWorkerConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*K0sWorkerConfig) DeepCopyObject ¶
func (in *K0sWorkerConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type K0sWorkerConfigList ¶
type K0sWorkerConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []K0sWorkerConfig `json:"items"` }
func (*K0sWorkerConfigList) DeepCopy ¶
func (in *K0sWorkerConfigList) DeepCopy() *K0sWorkerConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0sWorkerConfigList.
func (*K0sWorkerConfigList) DeepCopyInto ¶
func (in *K0sWorkerConfigList) DeepCopyInto(out *K0sWorkerConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*K0sWorkerConfigList) DeepCopyObject ¶
func (in *K0sWorkerConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type K0sWorkerConfigSpec ¶
type K0sWorkerConfigSpec struct { // JoinTokenSecretRef is a reference to a secret that contains the join token. // This should be only set in the case you want to use a pre-generated join token. // +kubebuilder:validation:Optional JoinTokenSecretRef *JoinTokenSecretRef `json:"joinTokenSecretRef,omitempty"` // Version is the version of k0s to use. In case this is not set, the latest version is used. // Make sure the version is compatible with the k0s version running on the control plane. // For reference see the Kubernetes version skew policy: https://kubernetes.io/docs/setup/release/version-skew-policy/ // +kubebuilder:validation:Optional Version string `json:"version,omitempty"` // Files specifies extra files to be passed to user_data upon creation. // +kubebuilder:validation:Optional Files []cloudinit.File `json:"files,omitempty"` // Args specifies extra arguments to be passed to k0s worker. // See: https://docs.k0sproject.io/stable/advanced/worker-configuration/ Args []string `json:"args,omitempty"` // PreStartCommands specifies commands to be run before starting k0s worker. // +kubebuilder:validation:Optional PreStartCommands []string `json:"preStartCommands,omitempty"` // PostStartCommands specifies commands to be run after starting k0s worker. // +kubebuilder:validation:Optional PostStartCommands []string `json:"postStartCommands,omitempty"` // PreInstallK0s specifies whether k0s binary is pre-installed on the node. // +kubebuilder:validation:Optional PreInstalledK0s bool `json:"preInstalledK0s,omitempty"` // DownloadURL specifies the URL to download k0s binary from. // If specified the version field is ignored and what ever version is downloaded from the URL is used. // +kubebuilder:validation:Optional DownloadURL string `json:"downloadURL,omitempty"` }
func (*K0sWorkerConfigSpec) DeepCopy ¶
func (in *K0sWorkerConfigSpec) DeepCopy() *K0sWorkerConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0sWorkerConfigSpec.
func (*K0sWorkerConfigSpec) DeepCopyInto ¶
func (in *K0sWorkerConfigSpec) DeepCopyInto(out *K0sWorkerConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type K0sWorkerConfigStatus ¶
type K0sWorkerConfigStatus struct { // Ready indicates the Bootstrapdata field is ready to be consumed Ready bool `json:"ready,omitempty"` // DataSecretName is the name of the secret that stores the bootstrap data script. // +optional DataSecretName *string `json:"dataSecretName,omitempty"` }
func (*K0sWorkerConfigStatus) DeepCopy ¶
func (in *K0sWorkerConfigStatus) DeepCopy() *K0sWorkerConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0sWorkerConfigStatus.
func (*K0sWorkerConfigStatus) DeepCopyInto ¶
func (in *K0sWorkerConfigStatus) DeepCopyInto(out *K0sWorkerConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type K0sWorkerConfigTemplate ¶ added in v0.5.0
type K0sWorkerConfigTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec K0sWorkerConfigTemplateSpec `json:"spec,omitempty"` }
func (*K0sWorkerConfigTemplate) DeepCopy ¶ added in v0.5.0
func (in *K0sWorkerConfigTemplate) DeepCopy() *K0sWorkerConfigTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0sWorkerConfigTemplate.
func (*K0sWorkerConfigTemplate) DeepCopyInto ¶ added in v0.5.0
func (in *K0sWorkerConfigTemplate) DeepCopyInto(out *K0sWorkerConfigTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*K0sWorkerConfigTemplate) DeepCopyObject ¶ added in v0.5.0
func (in *K0sWorkerConfigTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type K0sWorkerConfigTemplateList ¶ added in v0.5.0
type K0sWorkerConfigTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []K0sWorkerConfigTemplate `json:"items"` }
func (*K0sWorkerConfigTemplateList) DeepCopy ¶ added in v0.5.0
func (in *K0sWorkerConfigTemplateList) DeepCopy() *K0sWorkerConfigTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0sWorkerConfigTemplateList.
func (*K0sWorkerConfigTemplateList) DeepCopyInto ¶ added in v0.5.0
func (in *K0sWorkerConfigTemplateList) DeepCopyInto(out *K0sWorkerConfigTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*K0sWorkerConfigTemplateList) DeepCopyObject ¶ added in v0.5.0
func (in *K0sWorkerConfigTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type K0sWorkerConfigTemplateResource ¶ added in v0.5.0
type K0sWorkerConfigTemplateResource struct { // +kubebuilder:validation:Optional ObjectMeta metav1.ObjectMeta `json:"metadata,omitempty"` Spec K0sWorkerConfigSpec `json:"spec,omitempty"` }
func (*K0sWorkerConfigTemplateResource) DeepCopy ¶ added in v0.5.0
func (in *K0sWorkerConfigTemplateResource) DeepCopy() *K0sWorkerConfigTemplateResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0sWorkerConfigTemplateResource.
func (*K0sWorkerConfigTemplateResource) DeepCopyInto ¶ added in v0.5.0
func (in *K0sWorkerConfigTemplateResource) DeepCopyInto(out *K0sWorkerConfigTemplateResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type K0sWorkerConfigTemplateSpec ¶ added in v0.5.0
type K0sWorkerConfigTemplateSpec struct {
Template K0sWorkerConfigTemplateResource `json:"template,omitempty"`
}
func (*K0sWorkerConfigTemplateSpec) DeepCopy ¶ added in v0.5.0
func (in *K0sWorkerConfigTemplateSpec) DeepCopy() *K0sWorkerConfigTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K0sWorkerConfigTemplateSpec.
func (*K0sWorkerConfigTemplateSpec) DeepCopyInto ¶ added in v0.5.0
func (in *K0sWorkerConfigTemplateSpec) DeepCopyInto(out *K0sWorkerConfigTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TunnelingSpec ¶ added in v0.7.0
type TunnelingSpec struct { // Enabled specifies whether tunneling is enabled. //+kubebuilder:validation:Optional //+kubebuilder:default=false Enabled bool `json:"enabled,omitempty"` // Server address of the tunneling server. // If empty, k0smotron will try to detect worker node address for. //+kubebuilder:validation:Optional ServerAddress string `json:"serverAddress,omitempty"` // NodePort to publish for server port of the tunneling server. // If empty, k0smotron will use the default one. //+kubebuilder:validation:Optional //+kubebuilder:default=31700 ServerNodePort int32 `json:"serverNodePort,omitempty"` // NodePort to publish for tunneling port. // If empty, k0smotron will use the default one. //+kubebuilder:validation:Optional //+kubebuilder:default=31443 TunnelingNodePort int32 `json:"tunnelingNodePort,omitempty"` // Mode describes tunneling mode. // If empty, k0smotron will use the default one. //+kubebuilder:validation:Enum=tunnel;proxy //+kubebuilder:default=tunnel Mode string `json:"mode,omitempty"` }
func (*TunnelingSpec) DeepCopy ¶ added in v0.7.0
func (in *TunnelingSpec) DeepCopy() *TunnelingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TunnelingSpec.
func (*TunnelingSpec) DeepCopyInto ¶ added in v0.7.0
func (in *TunnelingSpec) DeepCopyInto(out *TunnelingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.