Documentation ¶
Overview ¶
Package v1beta2 contains API Schema definitions for the Amazon EKS Bootstrap v1beta2 API group. +gencrdrefdocs:force //nolint: revive +groupName=bootstrap.cluster.x-k8s.io +k8s:conversion-gen=sigs.k8s.io/cluster-api-provider-aws/v2/bootstrap/eks/api/v1beta1
Package v1beta2 contains API Schema definitions for the Amazon EKS Bootstrap v1beta2 API group +kubebuilder:object:generate=true +groupName=bootstrap.cluster.x-k8s.io
Index ¶
- Constants
- Variables
- type DiskSetup
- type EKSConfig
- func (in *EKSConfig) DeepCopy() *EKSConfig
- func (in *EKSConfig) DeepCopyInto(out *EKSConfig)
- func (in *EKSConfig) DeepCopyObject() runtime.Object
- func (r *EKSConfig) Default()
- func (r *EKSConfig) GetConditions() clusterv1.Conditions
- func (*EKSConfig) Hub()
- func (r *EKSConfig) SetConditions(conditions clusterv1.Conditions)
- func (r *EKSConfig) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *EKSConfig) ValidateCreate() (admission.Warnings, error)
- func (r *EKSConfig) ValidateDelete() (admission.Warnings, error)
- func (r *EKSConfig) ValidateUpdate(_ runtime.Object) (admission.Warnings, error)
- type EKSConfigList
- type EKSConfigSpec
- type EKSConfigStatus
- type EKSConfigTemplate
- func (in *EKSConfigTemplate) DeepCopy() *EKSConfigTemplate
- func (in *EKSConfigTemplate) DeepCopyInto(out *EKSConfigTemplate)
- func (in *EKSConfigTemplate) DeepCopyObject() runtime.Object
- func (r *EKSConfigTemplate) Default()
- func (*EKSConfigTemplate) Hub()
- func (r *EKSConfigTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *EKSConfigTemplate) ValidateCreate() (admission.Warnings, error)
- func (r *EKSConfigTemplate) ValidateDelete() (admission.Warnings, error)
- func (r *EKSConfigTemplate) ValidateUpdate(_ runtime.Object) (admission.Warnings, error)
- type EKSConfigTemplateList
- type EKSConfigTemplateResource
- type EKSConfigTemplateSpec
- type Encoding
- type File
- type FileSource
- type Filesystem
- type MountPoints
- type NTP
- type Partition
- type PasswdSource
- type PauseContainer
- type SecretFileSource
- type SecretPasswdSource
- type User
Constants ¶
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" // DataSecretGenerationFailedReason (Severity=Warning) documents a EKSConfig 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" // 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 EKSConfig controller ensure this pre-condition is satisfied. WaitingForClusterInfrastructureReason = "WaitingForClusterInfrastructure" // WaitingForControlPlaneInitializationReason (Severity=Info) documents a bootstrap secret generation process // waiting for the control plane to be initialized. // // NOTE: This is a pre-condition for starting to create machines; // the EKSConfig controller ensure this pre-condition is satisfied. WaitingForControlPlaneInitializationReason = "WaitingForControlPlaneInitialization" )
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "bootstrap.cluster.x-k8s.io", Version: "v1beta2"} // 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 DiskSetup ¶
type DiskSetup struct { // Partitions specifies the list of the partitions to setup. // +optional Partitions []Partition `json:"partitions,omitempty"` // Filesystems specifies the list of file systems to setup. // +optional Filesystems []Filesystem `json:"filesystems,omitempty"` }
DiskSetup defines input for generated disk_setup and fs_setup in cloud-init.
func (*DiskSetup) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiskSetup.
func (*DiskSetup) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EKSConfig ¶
type EKSConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec EKSConfigSpec `json:"spec,omitempty"` Status EKSConfigStatus `json:"status,omitempty"` }
EKSConfig is the schema for the Amazon EKS Machine Bootstrap Configuration API.
func (*EKSConfig) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EKSConfig.
func (*EKSConfig) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EKSConfig) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*EKSConfig) Default ¶
func (r *EKSConfig) Default()
Default will set default values for the EKSConfig.
func (*EKSConfig) GetConditions ¶
func (r *EKSConfig) GetConditions() clusterv1.Conditions
GetConditions returns the observations of the operational state of the EKSConfig resource.
func (*EKSConfig) SetConditions ¶
func (r *EKSConfig) SetConditions(conditions clusterv1.Conditions)
SetConditions sets the underlying service state of the EKSConfig to the predescribed clusterv1.Conditions.
func (*EKSConfig) SetupWebhookWithManager ¶
SetupWebhookWithManager will setup the webhooks for the EKSConfig.
func (*EKSConfig) ValidateCreate ¶
ValidateCreate will do any extra validation when creating a EKSConfig.
func (*EKSConfig) ValidateDelete ¶
ValidateDelete allows you to add any extra validation when deleting.
type EKSConfigList ¶
type EKSConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []EKSConfig `json:"items"` }
EKSConfigList contains a list of EKSConfig.
func (*EKSConfigList) DeepCopy ¶
func (in *EKSConfigList) DeepCopy() *EKSConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EKSConfigList.
func (*EKSConfigList) DeepCopyInto ¶
func (in *EKSConfigList) DeepCopyInto(out *EKSConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EKSConfigList) DeepCopyObject ¶
func (in *EKSConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*EKSConfigList) Hub ¶
func (*EKSConfigList) Hub()
Hub marks EKSConfigList as a conversion hub.
type EKSConfigSpec ¶
type EKSConfigSpec struct { // KubeletExtraArgs passes the specified kubelet args into the Amazon EKS machine bootstrap script // +optional KubeletExtraArgs map[string]string `json:"kubeletExtraArgs,omitempty"` // ContainerRuntime specify the container runtime to use when bootstrapping EKS. // +optional ContainerRuntime *string `json:"containerRuntime,omitempty"` // DNSClusterIP overrides the IP address to use for DNS queries within the cluster. // +optional DNSClusterIP *string `json:"dnsClusterIP,omitempty"` // DockerConfigJson is used for the contents of the /etc/docker/daemon.json file. Useful if you want a custom config differing from the default one in the AMI. // This is expected to be a json string. // +optional DockerConfigJSON *string `json:"dockerConfigJson,omitempty"` // APIRetryAttempts is the number of retry attempts for AWS API call. // +optional APIRetryAttempts *int `json:"apiRetryAttempts,omitempty"` // PauseContainer allows customization of the pause container to use. // +optional PauseContainer *PauseContainer `json:"pauseContainer,omitempty"` // UseMaxPods sets --max-pods for the kubelet when true. // +optional UseMaxPods *bool `json:"useMaxPods,omitempty"` // ServiceIPV6Cidr is the ipv6 cidr range of the cluster. If this is specified then // the ip family will be set to ipv6. // +optional ServiceIPV6Cidr *string `json:"serviceIPV6Cidr,omitempty"` // PreBootstrapCommands specifies extra commands to run before bootstrapping nodes to the cluster // +optional PreBootstrapCommands []string `json:"preBootstrapCommands,omitempty"` // PostBootstrapCommands specifies extra commands to run after bootstrapping nodes to the cluster // +optional PostBootstrapCommands []string `json:"postBootstrapCommands,omitempty"` // BootstrapCommandOverride allows you to override the bootstrap command to use for EKS nodes. // +optional BootstrapCommandOverride *string `json:"boostrapCommandOverride,omitempty"` // Files specifies extra files to be passed to user_data upon creation. // +optional Files []File `json:"files,omitempty"` // DiskSetup specifies options for the creation of partition tables and file systems on devices. // +optional DiskSetup *DiskSetup `json:"diskSetup,omitempty"` // Mounts specifies a list of mount points to be setup. // +optional Mounts []MountPoints `json:"mounts,omitempty"` // Users specifies extra users to add // +optional Users []User `json:"users,omitempty"` // NTP specifies NTP configuration // +optional NTP *NTP `json:"ntp,omitempty"` }
EKSConfigSpec defines the desired state of Amazon EKS Bootstrap Configuration.
func (*EKSConfigSpec) DeepCopy ¶
func (in *EKSConfigSpec) DeepCopy() *EKSConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EKSConfigSpec.
func (*EKSConfigSpec) DeepCopyInto ¶
func (in *EKSConfigSpec) DeepCopyInto(out *EKSConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EKSConfigStatus ¶
type EKSConfigStatus struct { // Ready indicates the BootstrapData secret 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"` // ObservedGeneration is the latest generation observed by the controller. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Conditions defines current service state of the EKSConfig. // +optional Conditions clusterv1.Conditions `json:"conditions,omitempty"` }
EKSConfigStatus defines the observed state of the Amazon EKS Bootstrap Configuration.
func (*EKSConfigStatus) DeepCopy ¶
func (in *EKSConfigStatus) DeepCopy() *EKSConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EKSConfigStatus.
func (*EKSConfigStatus) DeepCopyInto ¶
func (in *EKSConfigStatus) DeepCopyInto(out *EKSConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EKSConfigTemplate ¶
type EKSConfigTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec EKSConfigTemplateSpec `json:"spec,omitempty"` }
EKSConfigTemplate is the Amazon EKS Bootstrap Configuration Template API.
func (*EKSConfigTemplate) DeepCopy ¶
func (in *EKSConfigTemplate) DeepCopy() *EKSConfigTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EKSConfigTemplate.
func (*EKSConfigTemplate) DeepCopyInto ¶
func (in *EKSConfigTemplate) DeepCopyInto(out *EKSConfigTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EKSConfigTemplate) DeepCopyObject ¶
func (in *EKSConfigTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*EKSConfigTemplate) Default ¶
func (r *EKSConfigTemplate) Default()
Default will set default values for the EKSConfigTemplate.
func (*EKSConfigTemplate) Hub ¶
func (*EKSConfigTemplate) Hub()
Hub marks EKSConfigTemplate as a conversion hub.
func (*EKSConfigTemplate) SetupWebhookWithManager ¶
func (r *EKSConfigTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
SetupWebhookWithManager will setup the webhooks for the EKSConfigTemplate.
func (*EKSConfigTemplate) ValidateCreate ¶
func (r *EKSConfigTemplate) ValidateCreate() (admission.Warnings, error)
ValidateCreate will do any extra validation when creating a EKSConfigTemplate.
func (*EKSConfigTemplate) ValidateDelete ¶
func (r *EKSConfigTemplate) ValidateDelete() (admission.Warnings, error)
ValidateDelete allows you to add any extra validation when deleting.
func (*EKSConfigTemplate) ValidateUpdate ¶
ValidateUpdate will do any extra validation when updating a EKSConfigTemplate.
type EKSConfigTemplateList ¶
type EKSConfigTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []EKSConfigTemplate `json:"items"` }
EKSConfigTemplateList contains a list of Amazon EKS Bootstrap Configuration Templates.
func (*EKSConfigTemplateList) DeepCopy ¶
func (in *EKSConfigTemplateList) DeepCopy() *EKSConfigTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EKSConfigTemplateList.
func (*EKSConfigTemplateList) DeepCopyInto ¶
func (in *EKSConfigTemplateList) DeepCopyInto(out *EKSConfigTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EKSConfigTemplateList) DeepCopyObject ¶
func (in *EKSConfigTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*EKSConfigTemplateList) Hub ¶
func (*EKSConfigTemplateList) Hub()
Hub marks EKSConfigTemplateList as a conversion hub.
type EKSConfigTemplateResource ¶
type EKSConfigTemplateResource struct {
Spec EKSConfigSpec `json:"spec,omitempty"`
}
EKSConfigTemplateResource defines the Template structure.
func (*EKSConfigTemplateResource) DeepCopy ¶
func (in *EKSConfigTemplateResource) DeepCopy() *EKSConfigTemplateResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EKSConfigTemplateResource.
func (*EKSConfigTemplateResource) DeepCopyInto ¶
func (in *EKSConfigTemplateResource) DeepCopyInto(out *EKSConfigTemplateResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EKSConfigTemplateSpec ¶
type EKSConfigTemplateSpec struct {
Template EKSConfigTemplateResource `json:"template"`
}
EKSConfigTemplateSpec defines the desired state of templated EKSConfig Amazon EKS Bootstrap Configuration resources.
func (*EKSConfigTemplateSpec) DeepCopy ¶
func (in *EKSConfigTemplateSpec) DeepCopy() *EKSConfigTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EKSConfigTemplateSpec.
func (*EKSConfigTemplateSpec) DeepCopyInto ¶
func (in *EKSConfigTemplateSpec) DeepCopyInto(out *EKSConfigTemplateSpec)
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"` // Append specifies whether to append Content to existing file if Path exists. // +optional Append bool `json:"append,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 ¶
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 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 Filesystem ¶
type Filesystem struct { // Device specifies the device name Device string `json:"device"` // Filesystem specifies the file system type. Filesystem string `json:"filesystem"` // Label specifies the file system label to be used. If set to None, no label is used. Label string `json:"label"` // Partition specifies the partition to use. The valid options are: "auto|any", "auto", "any", "none", and <NUM>, where NUM is the actual partition number. // +optional Partition *string `json:"partition,omitempty"` // Overwrite defines whether or not to overwrite any existing filesystem. // If true, any pre-existing file system will be destroyed. Use with Caution. // +optional Overwrite *bool `json:"overwrite,omitempty"` // ExtraOpts defined extra options to add to the command for creating the file system. // +optional ExtraOpts []string `json:"extraOpts,omitempty"` }
Filesystem defines the file systems to be created.
func (*Filesystem) DeepCopy ¶
func (in *Filesystem) DeepCopy() *Filesystem
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Filesystem.
func (*Filesystem) DeepCopyInto ¶
func (in *Filesystem) DeepCopyInto(out *Filesystem)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MountPoints ¶
type MountPoints []string
MountPoints defines input for generated mounts in cloud-init.
func (MountPoints) DeepCopy ¶
func (in MountPoints) DeepCopy() MountPoints
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MountPoints.
func (MountPoints) DeepCopyInto ¶
func (in MountPoints) DeepCopyInto(out *MountPoints)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 Partition ¶
type Partition struct { // Device is the name of the device. Device string `json:"device"` // Layout specifies the device layout. // If it is true, a single partition will be created for the entire device. // When layout is false, it means don't partition or ignore existing partitioning. Layout bool `json:"layout"` // Overwrite describes whether to skip checks and create the partition if a partition or filesystem is found on the device. // Use with caution. Default is 'false'. // +optional Overwrite *bool `json:"overwrite,omitempty"` // TableType specifies the tupe of partition table. The following are supported: // 'mbr': default and setups a MS-DOS partition table // 'gpt': setups a GPT partition table // +optional TableType *string `json:"tableType,omitempty"` }
Partition defines how to create and layout a partition.
func (*Partition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Partition.
func (*Partition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PasswdSource ¶
type PasswdSource struct { // Secret represents a secret that should populate this password. Secret SecretPasswdSource `json:"secret"` }
PasswdSource is a union of all possible external source types for passwd 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 (*PasswdSource) DeepCopy ¶
func (in *PasswdSource) DeepCopy() *PasswdSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PasswdSource.
func (*PasswdSource) DeepCopyInto ¶
func (in *PasswdSource) DeepCopyInto(out *PasswdSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PauseContainer ¶
type PauseContainer struct { // AccountNumber is the AWS account number to pull the pause container from. AccountNumber string `json:"accountNumber"` // Version is the tag of the pause container to use. Version string `json:"version"` }
PauseContainer contains details of pause container.
func (*PauseContainer) DeepCopy ¶
func (in *PauseContainer) DeepCopy() *PauseContainer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PauseContainer.
func (*PauseContainer) DeepCopyInto ¶
func (in *PauseContainer) DeepCopyInto(out *PauseContainer)
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 KubeadmBootstrapConfig'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"` }
SecretFileSource 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.
type SecretPasswdSource ¶
type SecretPasswdSource struct { // Name of the secret in the KubeadmBootstrapConfig'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"` }
SecretPasswdSource adapts a Secret into a PasswdSource.
The contents of the target Secret's Data field will be presented as passwd using the keys in the Data field as the file names.
func (*SecretPasswdSource) DeepCopy ¶
func (in *SecretPasswdSource) DeepCopy() *SecretPasswdSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretPasswdSource.
func (*SecretPasswdSource) DeepCopyInto ¶
func (in *SecretPasswdSource) DeepCopyInto(out *SecretPasswdSource)
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 username 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"` // PasswdFrom is a referenced source of passwd to populate the passwd. // +optional PasswdFrom *PasswdSource `json:"passwdFrom,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.