Documentation ¶
Overview ¶
Package v1alpha2 contains API Schema definitions for the bootstrap v1alpha2 API group +kubebuilder:object:generate=true +groupName=bootstrap.cluster.x-k8s.io
Index ¶
- Variables
- type CritConfig
- func (in *CritConfig) DeepCopy() *CritConfig
- func (in *CritConfig) DeepCopyInto(out *CritConfig)
- func (in *CritConfig) DeepCopyObject() runtime.Object
- func (r *CritConfig) Default()
- func (*CritConfig) Hub()
- func (r *CritConfig) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *CritConfig) ValidateCreate() error
- func (r *CritConfig) ValidateDelete() error
- func (r *CritConfig) ValidateUpdate(old runtime.Object) error
- type CritConfigList
- type CritConfigSpec
- type CritConfigStatus
- type CritConfigTemplate
- func (in *CritConfigTemplate) DeepCopy() *CritConfigTemplate
- func (in *CritConfigTemplate) DeepCopyInto(out *CritConfigTemplate)
- func (in *CritConfigTemplate) DeepCopyObject() runtime.Object
- func (*CritConfigTemplate) Hub()
- func (r *CritConfigTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
- type CritConfigTemplateList
- type CritConfigTemplateResource
- type CritConfigTemplateSpec
- type Encoding
- type File
- type Format
- type NTP
- type User
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: "v1alpha2"} // 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 CritConfig ¶
type CritConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CritConfigSpec `json:"spec,omitempty"` Status CritConfigStatus `json:"status,omitempty"` }
CritConfig is the Schema for the critconfigs API
func (*CritConfig) DeepCopy ¶
func (in *CritConfig) DeepCopy() *CritConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CritConfig.
func (*CritConfig) DeepCopyInto ¶
func (in *CritConfig) DeepCopyInto(out *CritConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CritConfig) DeepCopyObject ¶
func (in *CritConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CritConfig) Default ¶
func (r *CritConfig) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*CritConfig) SetupWebhookWithManager ¶
func (r *CritConfig) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*CritConfig) ValidateCreate ¶
func (r *CritConfig) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*CritConfig) ValidateDelete ¶
func (r *CritConfig) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*CritConfig) ValidateUpdate ¶
func (r *CritConfig) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type CritConfigList ¶
type CritConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CritConfig `json:"items"` }
CritConfigList contains a list of CritConfig
func (*CritConfigList) DeepCopy ¶
func (in *CritConfigList) DeepCopy() *CritConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CritConfigList.
func (*CritConfigList) DeepCopyInto ¶
func (in *CritConfigList) DeepCopyInto(out *CritConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CritConfigList) DeepCopyObject ¶
func (in *CritConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CritConfigSpec ¶
type CritConfigSpec struct { // Config refers to either a crit ControlPlaneConfiguration or // WorkerConfiguration. Config string `json:"config"` //Config *unstructured.Unstructured `json:"config,omitempty"` // Files specifies extra files to be passed to user_data upon creation. // +optional Files []File `json:"files,omitempty"` // PreCritCommands specifies extra commands to run before crit runs // +optional PreCritCommands []string `json:"preCritCommands,omitempty"` // PostCritCommands specifies extra commands to run after crit runs // +optional PostCritCommands []string `json:"postCritCommands,omitempty"` // Users specifies extra users to add // +optional Users []User `json:"users,omitempty"` // NTP specifies NTP configuration // +optional NTP *NTP `json:"ntp,omitempty"` // Format specifies the output format of the bootstrap data // +optional Format Format `json:"format,omitempty"` // +optional Verbosity bool `json:"verbosity,omitempty"` }
CritConfigSpec defines the desired state of CritConfig
func (*CritConfigSpec) DeepCopy ¶
func (in *CritConfigSpec) DeepCopy() *CritConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CritConfigSpec.
func (*CritConfigSpec) DeepCopyInto ¶
func (in *CritConfigSpec) DeepCopyInto(out *CritConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CritConfigStatus ¶
type CritConfigStatus 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"` // 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"` }
CritConfigStatus defines the observed state of CritConfig
func (*CritConfigStatus) DeepCopy ¶
func (in *CritConfigStatus) DeepCopy() *CritConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CritConfigStatus.
func (*CritConfigStatus) DeepCopyInto ¶
func (in *CritConfigStatus) DeepCopyInto(out *CritConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CritConfigTemplate ¶
type CritConfigTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CritConfigTemplateSpec `json:"spec,omitempty"` }
CritConfigTemplate is the Schema for the critconfigtemplates API
func (*CritConfigTemplate) DeepCopy ¶
func (in *CritConfigTemplate) DeepCopy() *CritConfigTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CritConfigTemplate.
func (*CritConfigTemplate) DeepCopyInto ¶
func (in *CritConfigTemplate) DeepCopyInto(out *CritConfigTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CritConfigTemplate) DeepCopyObject ¶
func (in *CritConfigTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CritConfigTemplate) Hub ¶
func (*CritConfigTemplate) Hub()
func (*CritConfigTemplate) SetupWebhookWithManager ¶
func (r *CritConfigTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
type CritConfigTemplateList ¶
type CritConfigTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CritConfigTemplate `json:"items"` }
CritConfigTemplateList contains a list of CritConfigTemplate
func (*CritConfigTemplateList) DeepCopy ¶
func (in *CritConfigTemplateList) DeepCopy() *CritConfigTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CritConfigTemplateList.
func (*CritConfigTemplateList) DeepCopyInto ¶
func (in *CritConfigTemplateList) DeepCopyInto(out *CritConfigTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CritConfigTemplateList) DeepCopyObject ¶
func (in *CritConfigTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CritConfigTemplateResource ¶
type CritConfigTemplateResource struct {
Spec CritConfigSpec `json:"spec,omitempty"`
}
CritConfigTemplateResource defines the Template structure
func (*CritConfigTemplateResource) DeepCopy ¶
func (in *CritConfigTemplateResource) DeepCopy() *CritConfigTemplateResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CritConfigTemplateResource.
func (*CritConfigTemplateResource) DeepCopyInto ¶
func (in *CritConfigTemplateResource) DeepCopyInto(out *CritConfigTemplateResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CritConfigTemplateSpec ¶
type CritConfigTemplateSpec struct {
Template CritConfigTemplateResource `json:"template"`
}
CritConfigTemplateSpec defines the desired state of CritConfigTemplate
func (*CritConfigTemplateSpec) DeepCopy ¶
func (in *CritConfigTemplateSpec) DeepCopy() *CritConfigTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CritConfigTemplateSpec.
func (*CritConfigTemplateSpec) DeepCopyInto ¶
func (in *CritConfigTemplateSpec) DeepCopyInto(out *CritConfigTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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. Content string `json:"content"` }
File defines the input for generating write_files in cloud-init.
func (*File) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new File.
func (*File) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Format ¶
type Format string
Format specifies the output format of the bootstrap data +kubebuilder:validation:Enum=cloud-config
const ( // CloudConfig make the bootstrap data to be of cloud-config format CloudConfig Format = "cloud-config" )
type NTP ¶
type NTP struct { // Servers specifies which NTP servers to use // +optional Servers []string `json:"servers,omitempty"` // Enabled specifies whether NTP should be enabled // +optional Enabled *bool `json:"enabled,omitempty"` }
NTP defines input for generated ntp in cloud-init
func (*NTP) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NTP.
func (*NTP) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type User ¶
type User struct { // Name specifies the user name Name string `json:"name"` // Gecos specifies the gecos to use for the user // +optional Gecos *string `json:"gecos,omitempty"` // Groups specifies the additional groups for the user // +optional Groups *string `json:"groups,omitempty"` // HomeDir specifies the home directory to use for the user // +optional HomeDir *string `json:"homeDir,omitempty"` // Inactive specifies whether to mark the user as inactive // +optional Inactive *bool `json:"inactive,omitempty"` // Shell specifies the user's shell // +optional Shell *string `json:"shell,omitempty"` // Passwd specifies a hashed password for the user // +optional Passwd *string `json:"passwd,omitempty"` // PrimaryGroup specifies the primary group for the user // +optional PrimaryGroup *string `json:"primaryGroup,omitempty"` // LockPassword specifies if password login should be disabled // +optional LockPassword *bool `json:"lockPassword,omitempty"` // Sudo specifies a sudo role for the user // +optional Sudo *string `json:"sudo,omitempty"` // SSHAuthorizedKeys specifies a list of ssh authorized keys for the user // +optional SSHAuthorizedKeys []string `json:"sshAuthorizedKeys,omitempty"` }
User defines the input for a generated user in cloud-init.
func (*User) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new User.
func (*User) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.