v1beta1

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the Amazon EKS Bootstrap v1beta1 API group +kubebuilder:object:generate=true +groupName=bootstrap.cluster.x-k8s.io

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"

	// 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

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

This section is empty.

Types

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

func (in *EKSConfig) DeepCopy() *EKSConfig

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

func (*EKSConfig) DeepCopyInto

func (in *EKSConfig) DeepCopyInto(out *EKSConfig)

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

func (*EKSConfig) DeepCopyObject

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

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) Hub

func (*EKSConfig) Hub()

Hub marks EKSConfig as a conversion hub.

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

func (r *EKSConfig) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager will setup the webhooks for the EKSConfig.

func (*EKSConfig) ValidateCreate

func (r *EKSConfig) ValidateCreate() error

ValidateCreate will do any extra validation when creating a EKSConfig.

func (*EKSConfig) ValidateDelete

func (r *EKSConfig) ValidateDelete() error

ValidateDelete allows you to add any extra validation when deleting.

func (*EKSConfig) ValidateUpdate

func (r *EKSConfig) ValidateUpdate(old runtime.Object) error

ValidateUpdate will do any extra validation when updating a EKSConfig.

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"`
}

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() error

ValidateCreate will do any extra validation when creating a EKSConfigTemplate.

func (*EKSConfigTemplate) ValidateDelete

func (r *EKSConfigTemplate) ValidateDelete() error

ValidateDelete allows you to add any extra validation when deleting.

func (*EKSConfigTemplate) ValidateUpdate

func (r *EKSConfigTemplate) ValidateUpdate(old runtime.Object) error

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

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

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

func (*EKSConfigTemplateResource) DeepCopyInto

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

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 PauseContainer added in v1.2.0

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 added in v1.2.0

func (in *PauseContainer) DeepCopy() *PauseContainer

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

func (*PauseContainer) DeepCopyInto added in v1.2.0

func (in *PauseContainer) DeepCopyInto(out *PauseContainer)

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