v1beta1

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Package v1beta1 contains API Schema definitions for the bootstrap v1beta1 API group +kubebuilder:object:generate=true +groupName=bootstrap.cluster.x-k8s.io +k8s:defaulter-gen=TypeMeta +k8s:conversion-gen=github.com/k3s-io/cluster-api-k3s/bootstrap/api/v1beta2

Index

Constants

View Source
const (
	// DataSecretAvailableCondition documents the status of the bootstrap secret generation process.
	//
	// NOTE: When the DataSecret generation starts the process completes immediately and within the
	// same reconciliation, so the user will always see a transition from Wait to Generated without having
	// evidence that BootstrapSecret generation is started/in progress.
	DataSecretAvailableCondition clusterv1.ConditionType = "DataSecretAvailable"

	// WaitingForClusterInfrastructureReason (Severity=Info) document a bootstrap secret generation process
	// waiting for the cluster infrastructure to be ready.
	//
	// NOTE: Having the cluster infrastructure ready is a pre-condition for starting to create machines;
	// the KThreesConfig controller ensure this pre-condition is satisfied.
	WaitingForClusterInfrastructureReason = "WaitingForClusterInfrastructure"

	// WaitingForControlPlaneAvailableReason (Severity=Info) document a bootstrap secret generation process
	// waiting for the control plane machine to be available.
	//
	// NOTE: Having the control plane machine available is a pre-condition for joining additional control planes
	// or workers nodes.
	// Deprecated: This has been deprecated in v1beta1 and will be removed in a future version.
	// Switch to WaitingForControlPlaneAvailableReason constant from the `sigs.k8s.io/cluster-api/api/v1beta1`
	// package.
	WaitingForControlPlaneAvailableReason = clusterv1.WaitingForControlPlaneAvailableReason

	// DataSecretGenerationFailedReason (Severity=Warning) documents a KThreesConfig controller detecting
	// an error while generating a data secret; those kind of errors are usually due to misconfigurations
	// and user intervention is required to get them fixed.
	DataSecretGenerationFailedReason = "DataSecretGenerationFailed"
)
View Source
const (
	// CertificatesAvailableCondition documents that cluster certificates are available.
	//
	// NOTE: Cluster certificates are generated only for the KThreesConfig object linked to the initial control plane
	// machine, if the cluster is not using a control plane ref object, if the certificates are not provided
	// by the users.
	// IMPORTANT: This condition won't be re-created after clusterctl move.
	CertificatesAvailableCondition clusterv1.ConditionType = "CertificatesAvailable"

	// CertificatesGenerationFailedReason (Severity=Warning) documents a KThreesConfig controller detecting
	// an error while generating certificates; those kind of errors are usually temporary and the controller
	// automatically recover from them.
	CertificatesGenerationFailedReason = "CertificatesGenerationFailed"

	// CertificatesCorruptedReason (Severity=Error) documents a KThreesConfig controller detecting
	// an error while retrieving certificates for a joining node.
	CertificatesCorruptedReason = "CertificatesCorrupted"
)

Variables

View Source
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

func Convert_v1beta1_FileSource_To_v1beta2_FileSource

func Convert_v1beta1_FileSource_To_v1beta2_FileSource(in *FileSource, out *v1beta2.FileSource, s conversion.Scope) error

Convert_v1beta1_FileSource_To_v1beta2_FileSource is an autogenerated conversion function.

func Convert_v1beta1_File_To_v1beta2_File

func Convert_v1beta1_File_To_v1beta2_File(in *File, out *v1beta2.File, s conversion.Scope) error

Convert_v1beta1_File_To_v1beta2_File is an autogenerated conversion function.

func Convert_v1beta1_KThreesAgentConfig_To_v1beta2_KThreesAgentConfig

func Convert_v1beta1_KThreesAgentConfig_To_v1beta2_KThreesAgentConfig(in *KThreesAgentConfig, out *v1beta2.KThreesAgentConfig, s conversion.Scope) error

Convert_v1beta1_KThreesAgentConfig_To_v1beta2_KThreesAgentConfig is an autogenerated conversion function.

func Convert_v1beta1_KThreesConfigList_To_v1beta2_KThreesConfigList

func Convert_v1beta1_KThreesConfigList_To_v1beta2_KThreesConfigList(in *KThreesConfigList, out *v1beta2.KThreesConfigList, s conversion.Scope) error

Convert_v1beta1_KThreesConfigList_To_v1beta2_KThreesConfigList is an autogenerated conversion function.

func Convert_v1beta1_KThreesConfigSpec_To_v1beta2_KThreesConfigSpec

func Convert_v1beta1_KThreesConfigSpec_To_v1beta2_KThreesConfigSpec(in *KThreesConfigSpec, out *v1beta2.KThreesConfigSpec, s conversion.Scope) error

Convert_v1beta1_KThreesConfigSpec_To_v1beta2_KThreesConfigSpec is an autogenerated conversion function.

func Convert_v1beta1_KThreesConfigStatus_To_v1beta2_KThreesConfigStatus

func Convert_v1beta1_KThreesConfigStatus_To_v1beta2_KThreesConfigStatus(in *KThreesConfigStatus, out *v1beta2.KThreesConfigStatus, s conversion.Scope) error

Convert_v1beta1_KThreesConfigStatus_To_v1beta2_KThreesConfigStatus is an autogenerated conversion function.

func Convert_v1beta1_KThreesConfigTemplateList_To_v1beta2_KThreesConfigTemplateList

func Convert_v1beta1_KThreesConfigTemplateList_To_v1beta2_KThreesConfigTemplateList(in *KThreesConfigTemplateList, out *v1beta2.KThreesConfigTemplateList, s conversion.Scope) error

Convert_v1beta1_KThreesConfigTemplateList_To_v1beta2_KThreesConfigTemplateList is an autogenerated conversion function.

func Convert_v1beta1_KThreesConfigTemplateResource_To_v1beta2_KThreesConfigTemplateResource

func Convert_v1beta1_KThreesConfigTemplateResource_To_v1beta2_KThreesConfigTemplateResource(in *KThreesConfigTemplateResource, out *v1beta2.KThreesConfigTemplateResource, s conversion.Scope) error

Convert_v1beta1_KThreesConfigTemplateResource_To_v1beta2_KThreesConfigTemplateResource is an autogenerated conversion function.

func Convert_v1beta1_KThreesConfigTemplateSpec_To_v1beta2_KThreesConfigTemplateSpec

func Convert_v1beta1_KThreesConfigTemplateSpec_To_v1beta2_KThreesConfigTemplateSpec(in *KThreesConfigTemplateSpec, out *v1beta2.KThreesConfigTemplateSpec, s conversion.Scope) error

Convert_v1beta1_KThreesConfigTemplateSpec_To_v1beta2_KThreesConfigTemplateSpec is an autogenerated conversion function.

func Convert_v1beta1_KThreesConfigTemplate_To_v1beta2_KThreesConfigTemplate

func Convert_v1beta1_KThreesConfigTemplate_To_v1beta2_KThreesConfigTemplate(in *KThreesConfigTemplate, out *v1beta2.KThreesConfigTemplate, s conversion.Scope) error

Convert_v1beta1_KThreesConfigTemplate_To_v1beta2_KThreesConfigTemplate is an autogenerated conversion function.

func Convert_v1beta1_KThreesConfig_To_v1beta2_KThreesConfig

func Convert_v1beta1_KThreesConfig_To_v1beta2_KThreesConfig(in *KThreesConfig, out *v1beta2.KThreesConfig, s conversion.Scope) error

Convert_v1beta1_KThreesConfig_To_v1beta2_KThreesConfig is an autogenerated conversion function.

func Convert_v1beta1_KThreesServerConfig_To_v1beta2_KThreesServerConfig

func Convert_v1beta1_KThreesServerConfig_To_v1beta2_KThreesServerConfig(in *KThreesServerConfig, out *bootstrapv1beta2.KThreesServerConfig, s conversion.Scope) error

Convert_v1beta1_KThreesServerConfig_To_v1beta2_KThreesServerConfig converts KThreesServerConfig v1beta1 to v1beta2.

func Convert_v1beta1_SecretFileSource_To_v1beta2_SecretFileSource

func Convert_v1beta1_SecretFileSource_To_v1beta2_SecretFileSource(in *SecretFileSource, out *v1beta2.SecretFileSource, s conversion.Scope) error

Convert_v1beta1_SecretFileSource_To_v1beta2_SecretFileSource is an autogenerated conversion function.

func Convert_v1beta2_FileSource_To_v1beta1_FileSource

func Convert_v1beta2_FileSource_To_v1beta1_FileSource(in *v1beta2.FileSource, out *FileSource, s conversion.Scope) error

Convert_v1beta2_FileSource_To_v1beta1_FileSource is an autogenerated conversion function.

func Convert_v1beta2_File_To_v1beta1_File

func Convert_v1beta2_File_To_v1beta1_File(in *v1beta2.File, out *File, s conversion.Scope) error

Convert_v1beta2_File_To_v1beta1_File is an autogenerated conversion function.

func Convert_v1beta2_KThreesAgentConfig_To_v1beta1_KThreesAgentConfig

func Convert_v1beta2_KThreesAgentConfig_To_v1beta1_KThreesAgentConfig(in *bootstrapv1beta2.KThreesAgentConfig, out *KThreesAgentConfig, s conversion.Scope) error

Convert_v1beta2_KThreesAgentConfig_To_v1beta1_KThreesAgentConfig is an autogenerated conversion function.

func Convert_v1beta2_KThreesConfigList_To_v1beta1_KThreesConfigList

func Convert_v1beta2_KThreesConfigList_To_v1beta1_KThreesConfigList(in *v1beta2.KThreesConfigList, out *KThreesConfigList, s conversion.Scope) error

Convert_v1beta2_KThreesConfigList_To_v1beta1_KThreesConfigList is an autogenerated conversion function.

func Convert_v1beta2_KThreesConfigSpec_To_v1beta1_KThreesConfigSpec

func Convert_v1beta2_KThreesConfigSpec_To_v1beta1_KThreesConfigSpec(in *v1beta2.KThreesConfigSpec, out *KThreesConfigSpec, s conversion.Scope) error

Convert_v1beta2_KThreesConfigSpec_To_v1beta1_KThreesConfigSpec is an autogenerated conversion function.

func Convert_v1beta2_KThreesConfigStatus_To_v1beta1_KThreesConfigStatus

func Convert_v1beta2_KThreesConfigStatus_To_v1beta1_KThreesConfigStatus(in *v1beta2.KThreesConfigStatus, out *KThreesConfigStatus, s conversion.Scope) error

Convert_v1beta2_KThreesConfigStatus_To_v1beta1_KThreesConfigStatus is an autogenerated conversion function.

func Convert_v1beta2_KThreesConfigTemplateList_To_v1beta1_KThreesConfigTemplateList

func Convert_v1beta2_KThreesConfigTemplateList_To_v1beta1_KThreesConfigTemplateList(in *v1beta2.KThreesConfigTemplateList, out *KThreesConfigTemplateList, s conversion.Scope) error

Convert_v1beta2_KThreesConfigTemplateList_To_v1beta1_KThreesConfigTemplateList is an autogenerated conversion function.

func Convert_v1beta2_KThreesConfigTemplateResource_To_v1beta1_KThreesConfigTemplateResource

func Convert_v1beta2_KThreesConfigTemplateResource_To_v1beta1_KThreesConfigTemplateResource(in *v1beta2.KThreesConfigTemplateResource, out *KThreesConfigTemplateResource, s conversion.Scope) error

Convert_v1beta2_KThreesConfigTemplateResource_To_v1beta1_KThreesConfigTemplateResource is an autogenerated conversion function.

func Convert_v1beta2_KThreesConfigTemplateSpec_To_v1beta1_KThreesConfigTemplateSpec

func Convert_v1beta2_KThreesConfigTemplateSpec_To_v1beta1_KThreesConfigTemplateSpec(in *v1beta2.KThreesConfigTemplateSpec, out *KThreesConfigTemplateSpec, s conversion.Scope) error

Convert_v1beta2_KThreesConfigTemplateSpec_To_v1beta1_KThreesConfigTemplateSpec is an autogenerated conversion function.

func Convert_v1beta2_KThreesConfigTemplate_To_v1beta1_KThreesConfigTemplate

func Convert_v1beta2_KThreesConfigTemplate_To_v1beta1_KThreesConfigTemplate(in *v1beta2.KThreesConfigTemplate, out *KThreesConfigTemplate, s conversion.Scope) error

Convert_v1beta2_KThreesConfigTemplate_To_v1beta1_KThreesConfigTemplate is an autogenerated conversion function.

func Convert_v1beta2_KThreesConfig_To_v1beta1_KThreesConfig

func Convert_v1beta2_KThreesConfig_To_v1beta1_KThreesConfig(in *v1beta2.KThreesConfig, out *KThreesConfig, s conversion.Scope) error

Convert_v1beta2_KThreesConfig_To_v1beta1_KThreesConfig is an autogenerated conversion function.

func Convert_v1beta2_KThreesServerConfig_To_v1beta1_KThreesServerConfig

func Convert_v1beta2_KThreesServerConfig_To_v1beta1_KThreesServerConfig(in *bootstrapv1beta2.KThreesServerConfig, out *KThreesServerConfig, s conversion.Scope) error

Convert_v1beta2_KThreesServerConfig_To_v1beta1_KThreesServerConfig converts KThreesServerConfig v1beta2 to v1beta1.

func Convert_v1beta2_SecretFileSource_To_v1beta1_SecretFileSource

func Convert_v1beta2_SecretFileSource_To_v1beta1_SecretFileSource(in *v1beta2.SecretFileSource, out *SecretFileSource, s conversion.Scope) error

Convert_v1beta2_SecretFileSource_To_v1beta1_SecretFileSource is an autogenerated conversion function.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

Types

type Encoding

type Encoding string

Encoding specifies the cloud-init file encoding. +kubebuilder:validation:Enum=base64;gzip;gzip+base64

const (
	// Base64 implies the contents of the file are encoded as base64.
	Base64 Encoding = "base64"
	// Gzip implies the contents of the file are encoded with gzip.
	Gzip Encoding = "gzip"
	// GzipBase64 implies the contents of the file are first base64 encoded and then gzip encoded.
	GzipBase64 Encoding = "gzip+base64"
)

type File

type File struct {
	// Path specifies the full path on disk where to store the file.
	Path string `json:"path"`

	// Owner specifies the ownership of the file, e.g. "root:root".
	// +optional
	Owner string `json:"owner,omitempty"`

	// Permissions specifies the permissions to assign to the file, e.g. "0640".
	// +optional
	Permissions string `json:"permissions,omitempty"`

	// Encoding specifies the encoding of the file contents.
	// +optional
	Encoding Encoding `json:"encoding,omitempty"`

	// Content is the actual content of the file.
	// +optional
	Content string `json:"content,omitempty"`

	// ContentFrom is a referenced source of content to populate the file.
	// +optional
	ContentFrom *FileSource `json:"contentFrom,omitempty"`
}

File defines the input for generating write_files in cloud-init.

func (*File) DeepCopy

func (in *File) DeepCopy() *File

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

func (*File) DeepCopyInto

func (in *File) DeepCopyInto(out *File)

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

type FileSource

type FileSource struct {
	// Secret represents a secret that should populate this file.
	Secret SecretFileSource `json:"secret"`
}

FileSource is a union of all possible external source types for file data. Only one field may be populated in any given instance. Developers adding new sources of data for target systems should add them here.

func (*FileSource) DeepCopy

func (in *FileSource) DeepCopy() *FileSource

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

func (*FileSource) DeepCopyInto

func (in *FileSource) DeepCopyInto(out *FileSource)

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

type KThreesAgentConfig

type KThreesAgentConfig struct {
	// NodeLabels  Registering and starting kubelet with set of labels
	// +optional
	NodeLabels []string `json:"nodeLabels,omitempty"`

	// NodeTaints Registering kubelet with set of taints
	// +optional
	NodeTaints []string `json:"nodeTaints,omitempty"`

	// TODO: take in a object or secret and write to file. this is not useful
	// PrivateRegistry  registry configuration file (default: "/etc/rancher/k3s/registries.yaml")
	// +optional
	PrivateRegistry string `json:"privateRegistry,omitempty"`

	// KubeletArgs Customized flag for kubelet process
	// +optional
	KubeletArgs []string `json:"kubeletArgs,omitempty"`

	// KubeProxyArgs Customized flag for kube-proxy process
	// +optional
	KubeProxyArgs []string `json:"kubeProxyArgs,omitempty"`

	// NodeName Name of the Node
	// +optional
	NodeName string `json:"nodeName,omitempty"`

	// AirGapped is a boolean value to define if the bootstrapping should be air-gapped,
	// basically supposing that online container registries and k3s install scripts are not reachable.
	// User should prepare docker image, k3s binary, and put the install script in `/opt/install.sh`
	// on all nodes in the air-gap environment.
	// +optional
	AirGapped bool `json:"airGapped,omitempty"`
}

func (*KThreesAgentConfig) DeepCopy

func (in *KThreesAgentConfig) DeepCopy() *KThreesAgentConfig

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

func (*KThreesAgentConfig) DeepCopyInto

func (in *KThreesAgentConfig) DeepCopyInto(out *KThreesAgentConfig)

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

type KThreesConfig

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

	Spec   KThreesConfigSpec   `json:"spec,omitempty"`
	Status KThreesConfigStatus `json:"status,omitempty"`
}

KThreesConfig is the Schema for the kthreesconfigs API.

func (*KThreesConfig) ConvertFrom

func (c *KThreesConfig) ConvertFrom(srcRaw ctrlconversion.Hub) error

ConvertFrom converts the v1beta1 KThreesConfig receiver from a v1beta2 KThreesConfig.

func (*KThreesConfig) ConvertTo

func (c *KThreesConfig) ConvertTo(dstRaw ctrlconversion.Hub) error

ConvertTo converts the v1beta1 KThreesConfig receiver to a v1beta2 KThreesConfig.

func (*KThreesConfig) DeepCopy

func (in *KThreesConfig) DeepCopy() *KThreesConfig

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

func (*KThreesConfig) DeepCopyInto

func (in *KThreesConfig) DeepCopyInto(out *KThreesConfig)

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

func (*KThreesConfig) DeepCopyObject

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

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

func (*KThreesConfig) GetConditions

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

func (*KThreesConfig) SetConditions

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

type KThreesConfigList

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

KThreesConfigList contains a list of KThreesConfig.

func (*KThreesConfigList) ConvertFrom

func (c *KThreesConfigList) ConvertFrom(srcRaw ctrlconversion.Hub) error

ConvertFrom converts the v1beta1 KThreesConfigList receiver from a v1beta2 KThreesConfigList.

func (*KThreesConfigList) ConvertTo

func (c *KThreesConfigList) ConvertTo(dstRaw ctrlconversion.Hub) error

ConvertTo converts the v1beta1 KThreesConfigList receiver to a v1beta2 KThreesConfigList.

func (*KThreesConfigList) DeepCopy

func (in *KThreesConfigList) DeepCopy() *KThreesConfigList

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

func (*KThreesConfigList) DeepCopyInto

func (in *KThreesConfigList) DeepCopyInto(out *KThreesConfigList)

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

func (*KThreesConfigList) DeepCopyObject

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

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

type KThreesConfigSpec

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

	// PreK3sCommands specifies extra commands to run before k3s setup runs
	// +optional
	PreK3sCommands []string `json:"preK3sCommands,omitempty"`

	// PostK3sCommands specifies extra commands to run after k3s setup runs
	// +optional
	PostK3sCommands []string `json:"postK3sCommands,omitempty"`

	// AgentConfig specifies configuration for the agent nodes
	// +optional
	AgentConfig KThreesAgentConfig `json:"agentConfig,omitempty"`

	// ServerConfig specifies configuration for the agent nodes
	// +optional
	ServerConfig KThreesServerConfig `json:"serverConfig,omitempty"`

	// Version specifies the k3s version
	// +optional
	Version string `json:"version,omitempty"`
}

KThreesConfigSpec defines the desired state of KThreesConfig.

func (*KThreesConfigSpec) DeepCopy

func (in *KThreesConfigSpec) DeepCopy() *KThreesConfigSpec

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

func (*KThreesConfigSpec) DeepCopyInto

func (in *KThreesConfigSpec) DeepCopyInto(out *KThreesConfigSpec)

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

func (*KThreesConfigSpec) IsEtcdEmbedded

func (c *KThreesConfigSpec) IsEtcdEmbedded() bool

TODO Will need extend this func when implementing other k3s database options.

type KThreesConfigStatus

type KThreesConfigStatus struct {
	// Ready indicates the BootstrapData field is ready to be consumed
	Ready bool `json:"ready,omitempty"`

	BootstrapData []byte `json:"bootstrapData,omitempty"`

	// DataSecretName is the name of the secret that stores the bootstrap data script.
	// +optional
	DataSecretName *string `json:"dataSecretName,omitempty"`

	// FailureReason will be set on non-retryable errors
	// +optional
	FailureReason string `json:"failureReason,omitempty"`

	// FailureMessage will be set on non-retryable errors
	// +optional
	FailureMessage string `json:"failureMessage,omitempty"`

	// ObservedGeneration is the latest generation observed by the controller.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// Conditions defines current service state of the KThreesConfig.
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`
}

KThreesConfigStatus defines the observed state of KThreesConfig.

func (*KThreesConfigStatus) DeepCopy

func (in *KThreesConfigStatus) DeepCopy() *KThreesConfigStatus

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

func (*KThreesConfigStatus) DeepCopyInto

func (in *KThreesConfigStatus) DeepCopyInto(out *KThreesConfigStatus)

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

type KThreesConfigTemplate

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

	Spec KThreesConfigTemplateSpec `json:"spec,omitempty"`
}

KThreesConfigTemplate is the Schema for the kthreesconfigtemplates API.

func (*KThreesConfigTemplate) ConvertFrom

func (r *KThreesConfigTemplate) ConvertFrom(srcRaw ctrlconversion.Hub) error

ConvertFrom converts the v1beta1 KThreesConfigTemplate receiver from a v1beta2 KThreesConfigTemplate.

func (*KThreesConfigTemplate) ConvertTo

func (r *KThreesConfigTemplate) ConvertTo(dstRaw ctrlconversion.Hub) error

ConvertTo converts the v1beta1 KThreesConfigTemplate receiver to a v1beta2 KThreesConfigTemplate.

func (*KThreesConfigTemplate) DeepCopy

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

func (*KThreesConfigTemplate) DeepCopyInto

func (in *KThreesConfigTemplate) DeepCopyInto(out *KThreesConfigTemplate)

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

func (*KThreesConfigTemplate) DeepCopyObject

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

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

type KThreesConfigTemplateList

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

KThreesConfigTemplateList contains a list of KThreesConfigTemplate.

func (*KThreesConfigTemplateList) ConvertFrom

func (r *KThreesConfigTemplateList) ConvertFrom(srcRaw ctrlconversion.Hub) error

ConvertFrom converts the v1beta1 KThreesConfigTemplateList receiver from a v1beta2 KThreesConfigTemplateList.

func (*KThreesConfigTemplateList) ConvertTo

func (r *KThreesConfigTemplateList) ConvertTo(dstRaw ctrlconversion.Hub) error

ConvertTo converts the v1beta1 KThreesConfigTemplateList receiver to a v1beta2 KThreesConfigTemplateList.

func (*KThreesConfigTemplateList) DeepCopy

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

func (*KThreesConfigTemplateList) DeepCopyInto

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

func (*KThreesConfigTemplateList) DeepCopyObject

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

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

type KThreesConfigTemplateResource

type KThreesConfigTemplateResource struct {
	Spec KThreesConfigSpec `json:"spec,omitempty"`
}

KThreesConfigTemplateResource defines the Template structure.

func (*KThreesConfigTemplateResource) DeepCopy

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

func (*KThreesConfigTemplateResource) DeepCopyInto

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

type KThreesConfigTemplateSpec

type KThreesConfigTemplateSpec struct {
	Template KThreesConfigTemplateResource `json:"template"`
}

KThreesConfigTemplateSpec defines the desired state of KThreesConfigTemplate.

func (*KThreesConfigTemplateSpec) DeepCopy

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

func (*KThreesConfigTemplateSpec) DeepCopyInto

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

type KThreesServerConfig

type KThreesServerConfig struct {
	// KubeAPIServerArgs is a customized flag for kube-apiserver process
	// +optional
	KubeAPIServerArgs []string `json:"kubeAPIServerArg,omitempty"`

	// KubeControllerManagerArgs is a customized flag for kube-controller-manager process
	// +optional
	KubeControllerManagerArgs []string `json:"kubeControllerManagerArgs,omitempty"`

	// KubeSchedulerArgs is a customized flag for kube-scheduler process
	// +optional
	KubeSchedulerArgs []string `json:"kubeSchedulerArgs,omitempty"`

	// TLSSan Add additional hostname or IP as a Subject Alternative Name in the TLS cert
	// +optional
	TLSSan []string `json:"tlsSan,omitempty"`

	// BindAddress k3s bind address (default: 0.0.0.0)
	// +optional
	BindAddress string `json:"bindAddress,omitempty"`

	// HTTPSListenPort HTTPS listen port (default: 6443)
	// +optional
	HTTPSListenPort string `json:"httpsListenPort,omitempty"`

	// AdvertiseAddress IP address that apiserver uses to advertise to members of the cluster (default: node-external-ip/node-ip)
	// +optional
	AdvertiseAddress string `json:"advertiseAddress,omitempty"`

	// AdvertisePort Port that apiserver uses to advertise to members of the cluster (default: listen-port) (default: 0)
	// +optional
	AdvertisePort string `json:"advertisePort,omitempty"`

	// ClusterCidr  Network CIDR to use for pod IPs (default: "10.42.0.0/16")
	// +optional
	ClusterCidr string `json:"clusterCidr,omitempty"`

	// ServiceCidr Network CIDR to use for services IPs (default: "10.43.0.0/16")
	// +optional
	ServiceCidr string `json:"serviceCidr,omitempty"`

	// ClusterDNS  Cluster IP for coredns service. Should be in your service-cidr range (default: 10.43.0.10)
	// +optional
	ClusterDNS string `json:"clusterDNS,omitempty"`

	// ClusterDomain Cluster Domain (default: "cluster.local")
	// +optional
	ClusterDomain string `json:"clusterDomain,omitempty"`

	// DisableComponents  specifies extra commands to run before k3s setup runs
	// +optional
	DisableComponents []string `json:"disableComponents,omitempty"`

	// DisableExternalCloudProvider suppresses the 'cloud-provider=external' kubelet argument. (default: false)
	// +optional
	DisableExternalCloudProvider bool `json:"disableExternalCloudProvider,omitempty"`
}

func (*KThreesServerConfig) DeepCopy

func (in *KThreesServerConfig) DeepCopy() *KThreesServerConfig

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

func (*KThreesServerConfig) DeepCopyInto

func (in *KThreesServerConfig) DeepCopyInto(out *KThreesServerConfig)

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

type SecretFileSource

type SecretFileSource struct {
	// Name of the secret in the KThreesBootstrapConfig's namespace to use.
	Name string `json:"name"`

	// Key is the key in the secret's data map for this value.
	Key string `json:"key"`
}

Adapts a Secret into a FileSource.

The contents of the target Secret's Data field will be presented as files using the keys in the Data field as the file names.

func (*SecretFileSource) DeepCopy

func (in *SecretFileSource) DeepCopy() *SecretFileSource

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

func (*SecretFileSource) DeepCopyInto

func (in *SecretFileSource) DeepCopyInto(out *SecretFileSource)

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