v1beta2

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 33 Imported by: 61

Documentation

Overview

Package v1beta2 contains the v1beta2 API implementation.

Package v1beta2 contains API Schema definitions for the infrastructure v1beta2 API group +kubebuilder:object:generate=true +groupName=infrastructure.cluster.x-k8s.io

Index

Constants

View Source
const (
	// ClusterFinalizer allows ReconcileAWSCluster to clean up AWS resources associated with AWSCluster before
	// removing it from the apiserver.
	ClusterFinalizer = "awscluster.infrastructure.cluster.x-k8s.io"

	// AWSClusterControllerIdentityName is the name of the AWSClusterControllerIdentity singleton.
	AWSClusterControllerIdentityName = "default"
)
View Source
const (
	// MachineFinalizer allows ReconcileAWSMachine to clean up AWS resources associated with AWSMachine before
	// removing it from the apiserver.
	MachineFinalizer = "awsmachine.infrastructure.cluster.x-k8s.io"

	// DefaultIgnitionVersion represents default Ignition version generated for machine userdata.
	DefaultIgnitionVersion = "2.3"
)
View Source
const (
	// IgnitionStorageTypeOptionClusterObjectStore means the chosen Ignition storage type is ClusterObjectStore.
	IgnitionStorageTypeOptionClusterObjectStore = IgnitionStorageTypeOption("ClusterObjectStore")

	// IgnitionStorageTypeOptionUnencryptedUserData means the chosen Ignition storage type is UnencryptedUserData.
	IgnitionStorageTypeOptionUnencryptedUserData = IgnitionStorageTypeOption("UnencryptedUserData")
)
View Source
const (
	// PrincipalCredentialRetrievedCondition reports on whether Principal credentials could be retrieved successfully.
	// A possible scenario, where retrieval is unsuccessful, is when SourcePrincipal is not authorized for assume role.
	PrincipalCredentialRetrievedCondition clusterv1.ConditionType = "PrincipalCredentialRetrieved"
	// PrincipalCredentialRetrievalFailedReason used when errors occur during identity credential retrieval.
	PrincipalCredentialRetrievalFailedReason = "PrincipalCredentialRetrievalFailed"
	// CredentialProviderBuildFailedReason used when errors occur during building providers before trying credential retrieval.
	//nolint:gosec
	CredentialProviderBuildFailedReason = "CredentialProviderBuildFailed"
	// PrincipalUsageAllowedCondition reports on whether Principal and all the nested source identities are allowed to be used in the AWSCluster namespace.
	PrincipalUsageAllowedCondition clusterv1.ConditionType = "PrincipalUsageAllowed"
	// PrincipalUsageUnauthorizedReason used when AWSCluster namespace is not in the identity's allowed namespaces list.
	PrincipalUsageUnauthorizedReason = "PrincipalUsageUnauthorized"
	// SourcePrincipalUsageUnauthorizedReason used when AWSCluster is not in the intersection of source identity allowed namespaces
	// and allowed namespaces of the identities that source identity depends to.
	SourcePrincipalUsageUnauthorizedReason = "SourcePrincipalUsageUnauthorized"
)
View Source
const (
	// VpcReadyCondition reports on the successful reconciliation of a VPC.
	VpcReadyCondition clusterv1.ConditionType = "VpcReady"
	// VpcCreationStartedReason used when attempting to create a VPC for a managed cluster.
	// Will not be applied to unmanaged clusters.
	VpcCreationStartedReason = "VpcCreationStarted"
	// VpcReconciliationFailedReason used when errors occur during VPC reconciliation.
	VpcReconciliationFailedReason = "VpcReconciliationFailed"
)
View Source
const (
	// SubnetsReadyCondition reports on the successful reconciliation of subnets.
	SubnetsReadyCondition clusterv1.ConditionType = "SubnetsReady"
	// SubnetsReconciliationFailedReason used to report failures while reconciling subnets.
	SubnetsReconciliationFailedReason = "SubnetsReconciliationFailed"
)
View Source
const (
	// InternetGatewayReadyCondition reports on the successful reconciliation of internet gateways.
	// Only applicable to managed clusters.
	InternetGatewayReadyCondition clusterv1.ConditionType = "InternetGatewayReady"
	// InternetGatewayFailedReason used when errors occur during internet gateway reconciliation.
	InternetGatewayFailedReason = "InternetGatewayFailed"
)
View Source
const (
	// EgressOnlyInternetGatewayReadyCondition reports on the successful reconciliation of egress only internet gateways.
	// Only applicable to managed clusters.
	EgressOnlyInternetGatewayReadyCondition clusterv1.ConditionType = "EgressOnlyInternetGatewayReady"
	// EgressOnlyInternetGatewayFailedReason used when errors occur during egress only internet gateway reconciliation.
	EgressOnlyInternetGatewayFailedReason = "EgressOnlyInternetGatewayFailed"
)
View Source
const (
	// CarrierGatewayReadyCondition reports on the successful reconciliation of carrier gateways.
	// Only applicable to managed clusters.
	CarrierGatewayReadyCondition clusterv1.ConditionType = "CarrierGatewayReady"
	// CarrierGatewayFailedReason used when errors occur during carrier gateway reconciliation.
	CarrierGatewayFailedReason = "CarrierGatewayFailed"
)
View Source
const (
	// NatGatewaysReadyCondition reports successful reconciliation of NAT gateways.
	// Only applicable to managed clusters.
	NatGatewaysReadyCondition clusterv1.ConditionType = "NatGatewaysReady"
	// NatGatewaysCreationStartedReason set once when creating new NAT gateways.
	NatGatewaysCreationStartedReason = "NatGatewaysCreationStarted"
	// NatGatewaysReconciliationFailedReason used when any errors occur during reconciliation of NAT gateways.
	NatGatewaysReconciliationFailedReason = "NatGatewaysReconciliationFailed"
)
View Source
const (
	// RouteTablesReadyCondition reports successful reconciliation of route tables.
	// Only applicable to managed clusters.
	RouteTablesReadyCondition clusterv1.ConditionType = "RouteTablesReady"
	// RouteTableReconciliationFailedReason used when any errors occur during reconciliation of route tables.
	RouteTableReconciliationFailedReason = "RouteTableReconciliationFailed"
)
View Source
const (
	// VpcEndpointsReadyCondition reports successful reconciliation of vpc endpoints.
	// Only applicable to managed clusters.
	VpcEndpointsReadyCondition clusterv1.ConditionType = "VpcEndpointsReadyCondition"
	// VpcEndpointsReconciliationFailedReason used when any errors occur during reconciliation of vpc endpoints.
	VpcEndpointsReconciliationFailedReason = "VpcEndpointsReconciliationFailed"
)
View Source
const (
	// SecondaryCidrsReadyCondition reports successful reconciliation of secondary CIDR blocks.
	// Only applicable to managed clusters.
	SecondaryCidrsReadyCondition clusterv1.ConditionType = "SecondaryCidrsReady"
	// SecondaryCidrReconciliationFailedReason used when any errors occur during reconciliation of secondary CIDR blocks.
	SecondaryCidrReconciliationFailedReason = "SecondaryCidrReconciliationFailed"
)
View Source
const (
	// ClusterSecurityGroupsReadyCondition reports successful reconciliation of security groups.
	ClusterSecurityGroupsReadyCondition clusterv1.ConditionType = "ClusterSecurityGroupsReady"
	// ClusterSecurityGroupReconciliationFailedReason used when any errors occur during reconciliation of security groups.
	ClusterSecurityGroupReconciliationFailedReason = "SecurityGroupReconciliationFailed"
)
View Source
const (
	// BastionHostReadyCondition reports whether a bastion host is ready. Depending on the configuration, a cluster
	// may not require a bastion host and this condition will be skipped.
	BastionHostReadyCondition clusterv1.ConditionType = "BastionHostReady"
	// BastionCreationStartedReason used when creating a new bastion host.
	BastionCreationStartedReason = "BastionCreationStarted"
	// BastionHostFailedReason used when an error occurs during the creation of a bastion host.
	BastionHostFailedReason = "BastionHostFailed"
)
View Source
const (
	// LoadBalancerReadyCondition reports on whether a control plane load balancer was successfully reconciled.
	LoadBalancerReadyCondition clusterv1.ConditionType = "LoadBalancerReady"
	// WaitForDNSNameReason used while waiting for a DNS name for the API server to be populated.
	WaitForDNSNameReason = "WaitForDNSName"
	// WaitForExternalControlPlaneEndpointReason is available when the AWS Cluster is waiting for an externally managed
	// Load Balancer, such as an external Control Plane provider.
	WaitForExternalControlPlaneEndpointReason = "WaitForExternalControlPlaneEndpoint"
	// WaitForDNSNameResolveReason used while waiting for DNS name to resolve.
	WaitForDNSNameResolveReason = "WaitForDNSNameResolve"
	// LoadBalancerFailedReason used when an error occurs during load balancer reconciliation.
	LoadBalancerFailedReason = "LoadBalancerFailed"
)
View Source
const (
	// InstanceReadyCondition reports on current status of the EC2 instance. Ready indicates the instance is in a Running state.
	InstanceReadyCondition clusterv1.ConditionType = "InstanceReady"

	// InstanceNotFoundReason used when the instance couldn't be retrieved.
	InstanceNotFoundReason = "InstanceNotFound"
	// InstanceTerminatedReason instance is in a terminated state.
	InstanceTerminatedReason = "InstanceTerminated"
	// InstanceStoppedReason instance is in a stopped state.
	InstanceStoppedReason = "InstanceStopped"
	// InstanceNotReadyReason used when the instance is in a pending state.
	InstanceNotReadyReason = "InstanceNotReady"
	// InstanceProvisionStartedReason set when the provisioning of an instance started.
	InstanceProvisionStartedReason = "InstanceProvisionStarted"
	// InstanceProvisionFailedReason used for failures during instance provisioning.
	InstanceProvisionFailedReason = "InstanceProvisionFailed"
	// WaitingForClusterInfrastructureReason used when machine is waiting for cluster infrastructure to be ready before proceeding.
	WaitingForClusterInfrastructureReason = "WaitingForClusterInfrastructure"
	// WaitingForBootstrapDataReason used when machine is waiting for bootstrap data to be ready before proceeding.
	WaitingForBootstrapDataReason = "WaitingForBootstrapData"
)
View Source
const (
	// SecurityGroupsReadyCondition indicates the security groups are up to date on the AWSMachine.
	SecurityGroupsReadyCondition clusterv1.ConditionType = "SecurityGroupsReady"

	// SecurityGroupsFailedReason used when the security groups could not be synced.
	SecurityGroupsFailedReason = "SecurityGroupsSyncFailed"
)
View Source
const (
	// ELBAttachedCondition will report true when a control plane is successfully registered with an ELB.
	// When set to false, severity can be an Error if the subnet is not found or unavailable in the instance's AZ.
	// Note this is only applicable to control plane machines.
	// Only applicable to control plane machines.
	ELBAttachedCondition clusterv1.ConditionType = "ELBAttached"

	// ELBAttachFailedReason used when a control plane node fails to attach to the ELB.
	ELBAttachFailedReason = "ELBAttachFailed"
	// ELBDetachFailedReason used when a control plane node fails to detach from an ELB.
	ELBDetachFailedReason = "ELBDetachFailed"
)
View Source
const (
	// S3BucketReadyCondition indicates an S3 bucket has been created successfully.
	S3BucketReadyCondition clusterv1.ConditionType = "S3BucketCreated"

	// S3BucketFailedReason is used when any errors occur during reconciliation of an S3 bucket.
	S3BucketFailedReason = "S3BucketCreationFailed"
)
View Source
const (
	// DefaultAPIServerPort defines the API server port when defining a Load Balancer.
	DefaultAPIServerPort = 6443
	// DefaultAPIServerPortString defines the API server port as a string for convenience.
	DefaultAPIServerPortString = "6443"
	// DefaultAPIServerHealthCheckPath the API server health check path.
	DefaultAPIServerHealthCheckPath = "/readyz"
	// DefaultAPIServerHealthCheckIntervalSec the API server health check interval in seconds.
	DefaultAPIServerHealthCheckIntervalSec = 10
	// DefaultAPIServerHealthCheckTimeoutSec the API server health check timeout in seconds.
	DefaultAPIServerHealthCheckTimeoutSec = 5
	// DefaultAPIServerHealthThresholdCount the API server health check threshold count.
	DefaultAPIServerHealthThresholdCount = 5
	// DefaultAPIServerUnhealthThresholdCount the API server unhealthy check threshold count.
	DefaultAPIServerUnhealthThresholdCount = 3

	// ZoneTypeAvailabilityZone defines the regular AWS zones in the Region.
	ZoneTypeAvailabilityZone ZoneType = "availability-zone"
	// ZoneTypeLocalZone defines the AWS zone type in Local Zone infrastructure.
	ZoneTypeLocalZone ZoneType = "local-zone"
	// ZoneTypeWavelengthZone defines the AWS zone type in Wavelength infrastructure.
	ZoneTypeWavelengthZone ZoneType = "wavelength-zone"
)
View Source
const (
	// PublicIpv4PoolFallbackOrderAmazonPool refers to use Amazon-pool Public IPv4 Pool as a fallback strategy.
	PublicIpv4PoolFallbackOrderAmazonPool = PublicIpv4PoolFallbackOrder("amazon-pool")

	// PublicIpv4PoolFallbackOrderNone refers to not use any fallback strategy.
	PublicIpv4PoolFallbackOrderNone = PublicIpv4PoolFallbackOrder("none")
)
View Source
const (
	// ResourceLifecycleOwned is the value we use when tagging resources to indicate
	// that the resource is considered owned and managed by the cluster,
	// and in particular that the lifecycle is tied to the lifecycle of the cluster.
	ResourceLifecycleOwned = ResourceLifecycle("owned")

	// ResourceLifecycleShared is the value we use when tagging resources to indicate
	// that the resource is shared between multiple clusters, and should not be destroyed
	// if the cluster is destroyed.
	ResourceLifecycleShared = ResourceLifecycle("shared")

	// NameKubernetesAWSCloudProviderPrefix is the tag name used by the cloud provider to logically
	// separate independent cluster resources. We use it to identify which resources we expect
	// to be permissive about state changes.
	// logically independent clusters running in the same AZ.
	// The tag key = NameKubernetesAWSCloudProviderPrefix + clusterID
	// The tag value is an ownership value.
	NameKubernetesAWSCloudProviderPrefix = "kubernetes.io/cluster/"

	// NameAWSProviderPrefix is the tag prefix we use to differentiate
	// cluster-api-provider-aws owned components from other tooling that
	// uses NameKubernetesClusterPrefix.
	NameAWSProviderPrefix = "sigs.k8s.io/cluster-api-provider-aws/"

	// NameAWSProviderOwned is the tag name we use to differentiate
	// cluster-api-provider-aws owned components from other tooling that
	// uses NameKubernetesClusterPrefix.
	NameAWSProviderOwned = NameAWSProviderPrefix + "cluster/"

	// NameAWSClusterAPIRole is the tag name we use to mark roles for resources
	// dedicated to this cluster api provider implementation.
	NameAWSClusterAPIRole = NameAWSProviderPrefix + "role"

	// NameAWSSubnetAssociation is the tag name we use to mark association for resources
	// dedicated to this cluster api provider implementation.
	NameAWSSubnetAssociation = NameAWSProviderPrefix + "association"

	// SecondarySubnetTagValue is the secondary subnet tag constant value.
	SecondarySubnetTagValue = "secondary"

	// APIServerRoleTagValue describes the value for the apiserver role.
	APIServerRoleTagValue = "apiserver"

	// BastionRoleTagValue describes the value for the bastion role.
	BastionRoleTagValue = "bastion"

	// CommonRoleTagValue describes the value for the common role.
	CommonRoleTagValue = "common"

	// PublicRoleTagValue describes the value for the public role.
	PublicRoleTagValue = "public"

	// PrivateRoleTagValue describes the value for the private role.
	PrivateRoleTagValue = "private"

	// MachineNameTagKey is the key for machine name.
	MachineNameTagKey = "MachineName"

	// LaunchTemplateBootstrapDataSecret is the tag we use to store the `<namespace>/<name>`
	// of the bootstrap secret that was used to create the user data for the latest launch
	// template version.
	LaunchTemplateBootstrapDataSecret = NameAWSProviderPrefix + "bootstrap-data-secret"
)
View Source
const (
	// ExternalResourceGCAnnotation is the name of an annotation that indicates if
	// external resources should be garbage collected for the cluster.
	ExternalResourceGCAnnotation = "aws.cluster.x-k8s.io/external-resource-gc"

	// ExternalResourceGCTasksAnnotation is the name of an annotation that indicates what
	// external resources tasks should be executed by garbage collector for the cluster.
	ExternalResourceGCTasksAnnotation = "aws.cluster.x-k8s.io/external-resource-tasks-gc"
)
View Source
const (
	// InstanceMetadataEndpointStateDisabled represents the disabled state
	InstanceMetadataEndpointStateDisabled = InstanceMetadataState("disabled")

	// InstanceMetadataEndpointStateEnabled represents the enabled state
	InstanceMetadataEndpointStateEnabled = InstanceMetadataState("enabled")
)
View Source
const (
	// HTTPTokensStateOptional represents the optional state
	HTTPTokensStateOptional = HTTPTokensState("optional")

	// HTTPTokensStateRequired represents the required state (IMDSv2)
	HTTPTokensStateRequired = HTTPTokensState("required")
)
View Source
const (
	// PreventDeletionLabel can be used in situations where preventing delation is allowed. The docs
	// and the CRD will call this out where its allowed.
	PreventDeletionLabel = "aws.cluster.x-k8s.io/prevent-deletion"
)

Variables

View Source
var (
	// ControllerIdentityKind defines identity reference kind as AWSClusterControllerIdentity.
	ControllerIdentityKind = AWSIdentityKind("AWSClusterControllerIdentity")

	// ClusterRoleIdentityKind defines identity reference kind as AWSClusterRoleIdentity.
	ClusterRoleIdentityKind = AWSIdentityKind("AWSClusterRoleIdentity")

	// ClusterStaticIdentityKind defines identity reference kind as AWSClusterStaticIdentity.
	ClusterStaticIdentityKind = AWSIdentityKind("AWSClusterStaticIdentity")
)
View Source
var (
	// LoadBalancerTypeClassic is the classic ELB type.
	LoadBalancerTypeClassic = LoadBalancerType("classic")
	// LoadBalancerTypeELB is the ELB type.
	LoadBalancerTypeELB = LoadBalancerType("elb")
	// LoadBalancerTypeALB is the ALB type.
	LoadBalancerTypeALB = LoadBalancerType("alb")
	// LoadBalancerTypeNLB is the NLB type.
	LoadBalancerTypeNLB = LoadBalancerType("nlb")
	// LoadBalancerTypeDisabled disables the load balancer.
	LoadBalancerTypeDisabled = LoadBalancerType("disabled")
)
View Source
var (
	// SecretBackendSSMParameterStore defines AWS Systems Manager Parameter Store as the secret backend.
	SecretBackendSSMParameterStore = SecretBackend("ssm-parameter-store")

	// SecretBackendSecretsManager defines AWS Secrets Manager as the secret backend.
	SecretBackendSecretsManager = SecretBackend("secrets-manager")
)
View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "infrastructure.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
)
View Source
var (
	// ELBSchemeInternetFacing defines an internet-facing, publicly
	// accessible AWS ELB scheme.
	ELBSchemeInternetFacing = ELBScheme("internet-facing")

	// ELBSchemeInternal defines an internal-only facing
	// load balancer internal to an ELB.
	ELBSchemeInternal = ELBScheme("internal")
)
View Source
var (
	// ELBProtocolTCP defines the ELB API string representing the TCP protocol.
	ELBProtocolTCP = ELBProtocol("TCP")
	// ELBProtocolSSL defines the ELB API string representing the TLS protocol.
	ELBProtocolSSL = ELBProtocol("SSL")
	// ELBProtocolHTTP defines the ELB API string representing the HTTP protocol at L7.
	ELBProtocolHTTP = ELBProtocol("HTTP")
	// ELBProtocolHTTPS defines the ELB API string representing the HTTP protocol at L7.
	ELBProtocolHTTPS = ELBProtocol("HTTPS")
	// ELBProtocolTLS defines the NLB API string representing the TLS protocol.
	ELBProtocolTLS = ELBProtocol("TLS")
	// ELBProtocolUDP defines the NLB API string representing the UDP protocol.
	ELBProtocolUDP = ELBProtocol("UDP")
)
View Source
var (
	// LoadBalancerAttributeEnableLoadBalancingCrossZone defines the attribute key for enabling load balancing cross zone.
	LoadBalancerAttributeEnableLoadBalancingCrossZone = "load_balancing.cross_zone.enabled"
	// LoadBalancerAttributeIdleTimeTimeoutSeconds defines the attribute key for idle timeout.
	LoadBalancerAttributeIdleTimeTimeoutSeconds = "idle_timeout.timeout_seconds"
	// LoadBalancerAttributeIdleTimeDefaultTimeoutSecondsInSeconds defines the default idle timeout in seconds.
	LoadBalancerAttributeIdleTimeDefaultTimeoutSecondsInSeconds = "60"
)
View Source
var (
	// SecurityGroupBastion defines an SSH bastion role.
	SecurityGroupBastion = SecurityGroupRole("bastion")

	// SecurityGroupNode defines a Kubernetes workload node role.
	SecurityGroupNode = SecurityGroupRole("node")

	// SecurityGroupEKSNodeAdditional defines an extra node group from eks nodes.
	SecurityGroupEKSNodeAdditional = SecurityGroupRole("node-eks-additional")

	// SecurityGroupControlPlane defines a Kubernetes control plane node role.
	SecurityGroupControlPlane = SecurityGroupRole("controlplane")

	// SecurityGroupAPIServerLB defines a Kubernetes API Server Load Balancer role.
	SecurityGroupAPIServerLB = SecurityGroupRole("apiserver-lb")

	// SecurityGroupLB defines a container for the cloud provider to inject its load balancer ingress rules.
	SecurityGroupLB = SecurityGroupRole("lb")
)
View Source
var (
	// SecurityGroupProtocolAll is a wildcard for all IP protocols.
	SecurityGroupProtocolAll = SecurityGroupProtocol("-1")

	// SecurityGroupProtocolIPinIP represents the IP in IP protocol in ingress rules.
	SecurityGroupProtocolIPinIP = SecurityGroupProtocol("4")

	// SecurityGroupProtocolTCP represents the TCP protocol in ingress rules.
	SecurityGroupProtocolTCP = SecurityGroupProtocol("tcp")

	// SecurityGroupProtocolUDP represents the UDP protocol in ingress rules.
	SecurityGroupProtocolUDP = SecurityGroupProtocol("udp")

	// SecurityGroupProtocolICMP represents the ICMP protocol in ingress rules.
	SecurityGroupProtocolICMP = SecurityGroupProtocol("icmp")

	// SecurityGroupProtocolICMPv6 represents the ICMPv6 protocol in ingress rules.
	SecurityGroupProtocolICMPv6 = SecurityGroupProtocol("58")

	// SecurityGroupProtocolESP represents the ESP protocol in ingress rules.
	SecurityGroupProtocolESP = SecurityGroupProtocol("50")
)
View Source
var (
	// GCTaskLoadBalancer defines a task to cleaning up resources for AWS load balancers.
	GCTaskLoadBalancer = GCTask("load-balancer")

	// GCTaskTargetGroup defines a task to cleaning up resources for AWS target groups.
	GCTaskTargetGroup = GCTask("target-group")

	// GCTaskSecurityGroup defines a task to cleaning up resources for AWS security groups.
	GCTaskSecurityGroup = GCTask("security-group")
)
View Source
var (
	// AZSelectionSchemeOrdered will select AZs based on alphabetical order.
	AZSelectionSchemeOrdered = AZSelectionScheme("Ordered")

	// AZSelectionSchemeRandom will select AZs randomly.
	AZSelectionSchemeRandom = AZSelectionScheme("Random")
)
View Source
var (
	// InstanceStatePending is the string representing an instance in a pending state.
	InstanceStatePending = InstanceState("pending")

	// InstanceStateRunning is the string representing an instance in a running state.
	InstanceStateRunning = InstanceState("running")

	// InstanceStateShuttingDown is the string representing an instance shutting down.
	InstanceStateShuttingDown = InstanceState("shutting-down")

	// InstanceStateTerminated is the string representing an instance that has been terminated.
	InstanceStateTerminated = InstanceState("terminated")

	// InstanceStateStopping is the string representing an instance
	// that is in the process of being stopped and can be restarted.
	InstanceStateStopping = InstanceState("stopping")

	// InstanceStateStopped is the string representing an instance
	// that has been stopped and can be restarted.
	InstanceStateStopped = InstanceState("stopped")

	// InstanceRunningStates defines the set of states in which an EC2 instance is
	// running or going to be running soon.
	InstanceRunningStates = sets.NewString(
		string(InstanceStatePending),
		string(InstanceStateRunning),
	)

	// InstanceOperationalStates defines the set of states in which an EC2 instance is
	// or can return to running, and supports all EC2 operations.
	InstanceOperationalStates = InstanceRunningStates.Union(
		sets.NewString(
			string(InstanceStateStopping),
			string(InstanceStateStopped),
		),
	)

	// InstanceKnownStates represents all known EC2 instance states.
	InstanceKnownStates = InstanceOperationalStates.Union(
		sets.NewString(
			string(InstanceStateShuttingDown),
			string(InstanceStateTerminated),
		),
	)
)
View Source
var (
	// VolumeTypeIO1 is the string representing a provisioned iops ssd io1 volume.
	VolumeTypeIO1 = VolumeType("io1")

	// VolumeTypeIO2 is the string representing a provisioned iops ssd io2 volume.
	VolumeTypeIO2 = VolumeType("io2")

	// VolumeTypeGP2 is the string representing a general purpose ssd gp2 volume.
	VolumeTypeGP2 = VolumeType("gp2")

	// VolumeTypeGP3 is the string representing a general purpose ssd gp3 volume.
	VolumeTypeGP3 = VolumeType("gp3")

	// VolumeTypesGP are volume types provisioned for general purpose io.
	VolumeTypesGP = sets.NewString(
		string(VolumeTypeIO1),
		string(VolumeTypeIO2),
	)

	// VolumeTypesProvisioned are volume types provisioned for high performance io.
	VolumeTypesProvisioned = sets.NewString(
		string(VolumeTypeIO1),
		string(VolumeTypeIO2),
	)
)
View Source
var (
	// SubnetSchemaPreferPrivate allocates more subnets in the VPC to private subnets.
	SubnetSchemaPreferPrivate = SubnetSchemaType("PreferPrivate")
	// SubnetSchemaPreferPublic allocates more subnets in the VPC to public subnets.
	SubnetSchemaPreferPublic = SubnetSchemaType("PreferPublic")
)
View Source
var (
	// TargetGroupAttributeEnablePreserveClientIP defines the attribute key for enabling preserve client IP.
	TargetGroupAttributeEnablePreserveClientIP = "preserve_client_ip.enabled"
)

Functions

func ClusterAWSCloudProviderTagKey

func ClusterAWSCloudProviderTagKey(name string) string

ClusterAWSCloudProviderTagKey generates the key for resources associated a cluster's AWS cloud provider.

func ClusterTagKey

func ClusterTagKey(name string) string

ClusterTagKey generates the key for resources associated with a cluster.

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func SetDefaults_AWSClusterSpec

func SetDefaults_AWSClusterSpec(s *AWSClusterSpec)

SetDefaults_AWSClusterSpec is used by defaulter-gen.

func SetDefaults_AWSMachineSpec added in v2.1.0

func SetDefaults_AWSMachineSpec(obj *AWSMachineSpec)

SetDefaults_AWSMachineSpec is used by defaulter-gen.

func SetDefaults_Bastion

func SetDefaults_Bastion(obj *Bastion)

SetDefaults_Bastion is used by defaulter-gen.

func SetDefaults_Labels

func SetDefaults_Labels(obj *metav1.ObjectMeta)

SetDefaults_Labels is used to default cluster scope resources for clusterctl move.

func SetDefaults_NetworkSpec

func SetDefaults_NetworkSpec(obj *NetworkSpec)

SetDefaults_NetworkSpec is used by defaulter-gen.

func SetObjectDefaults_AWSCluster

func SetObjectDefaults_AWSCluster(in *AWSCluster)

func SetObjectDefaults_AWSClusterTemplate

func SetObjectDefaults_AWSClusterTemplate(in *AWSClusterTemplate)

func SetObjectDefaults_AWSMachine added in v2.1.0

func SetObjectDefaults_AWSMachine(in *AWSMachine)

func SetObjectDefaults_AWSMachineTemplate added in v2.1.0

func SetObjectDefaults_AWSMachineTemplate(in *AWSMachineTemplate)

Types

type AMIReference

type AMIReference struct {
	// ID of resource
	// +optional
	ID *string `json:"id,omitempty"`

	// EKSOptimizedLookupType If specified, will look up an EKS Optimized image in SSM Parameter store
	// +kubebuilder:validation:Enum:=AmazonLinux;AmazonLinuxGPU
	// +optional
	EKSOptimizedLookupType *EKSAMILookupType `json:"eksLookupType,omitempty"`
}

AMIReference is a reference to a specific AWS resource by ID, ARN, or filters. Only one of ID, ARN or Filters may be specified. Specifying more than one will result in a validation error.

func (*AMIReference) DeepCopy

func (in *AMIReference) DeepCopy() *AMIReference

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

func (*AMIReference) DeepCopyInto

func (in *AMIReference) DeepCopyInto(out *AMIReference)

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

type AWSCluster

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

	Spec   AWSClusterSpec   `json:"spec,omitempty"`
	Status AWSClusterStatus `json:"status,omitempty"`
}

AWSCluster is the schema for Amazon EC2 based Kubernetes Cluster API.

func (*AWSCluster) DeepCopy

func (in *AWSCluster) DeepCopy() *AWSCluster

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

func (*AWSCluster) DeepCopyInto

func (in *AWSCluster) DeepCopyInto(out *AWSCluster)

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

func (*AWSCluster) DeepCopyObject

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

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

func (*AWSCluster) Default

func (r *AWSCluster) Default()

Default satisfies the defaulting webhook interface.

func (*AWSCluster) GetConditions

func (r *AWSCluster) GetConditions() clusterv1.Conditions

GetConditions returns the observations of the operational state of the AWSCluster resource.

func (*AWSCluster) Hub

func (*AWSCluster) Hub()

Hub marks AWSCluster as a conversion hub.

func (*AWSCluster) SetConditions

func (r *AWSCluster) SetConditions(conditions clusterv1.Conditions)

SetConditions sets the underlying service state of the AWSCluster to the predescribed clusterv1.Conditions.

func (*AWSCluster) SetupWebhookWithManager

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

func (*AWSCluster) ValidateCreate

func (r *AWSCluster) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*AWSCluster) ValidateDelete

func (r *AWSCluster) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type.

func (*AWSCluster) ValidateUpdate

func (r *AWSCluster) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.

type AWSClusterControllerIdentity

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

	// Spec for this AWSClusterControllerIdentity.
	Spec AWSClusterControllerIdentitySpec `json:"spec,omitempty"`
}

AWSClusterControllerIdentity is the Schema for the awsclustercontrolleridentities API It is used to grant access to use Cluster API Provider AWS Controller credentials.

func (*AWSClusterControllerIdentity) DeepCopy

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

func (*AWSClusterControllerIdentity) DeepCopyInto

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

func (*AWSClusterControllerIdentity) DeepCopyObject

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

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

func (*AWSClusterControllerIdentity) Default

func (r *AWSClusterControllerIdentity) Default()

Default will set default values for the AWSClusterControllerIdentity.

func (*AWSClusterControllerIdentity) Hub

Hub marks AWSClusterControllerIdentity as a conversion hub.

func (*AWSClusterControllerIdentity) SetupWebhookWithManager

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

func (*AWSClusterControllerIdentity) ValidateCreate

func (r *AWSClusterControllerIdentity) ValidateCreate() (admission.Warnings, error)

ValidateCreate will do any extra validation when creating an AWSClusterControllerIdentity.

func (*AWSClusterControllerIdentity) ValidateDelete

func (r *AWSClusterControllerIdentity) ValidateDelete() (admission.Warnings, error)

ValidateDelete allows you to add any extra validation when deleting an AWSClusterControllerIdentity.

func (*AWSClusterControllerIdentity) ValidateUpdate

ValidateUpdate will do any extra validation when updating an AWSClusterControllerIdentity.

type AWSClusterControllerIdentityList

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

AWSClusterControllerIdentityList contains a list of AWSClusterControllerIdentity.

func (*AWSClusterControllerIdentityList) DeepCopy

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

func (*AWSClusterControllerIdentityList) DeepCopyInto

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

func (*AWSClusterControllerIdentityList) DeepCopyObject

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

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

func (*AWSClusterControllerIdentityList) Hub

Hub marks AWSClusterControllerIdentityList as a conversion hub.

type AWSClusterControllerIdentitySpec

type AWSClusterControllerIdentitySpec struct {
	AWSClusterIdentitySpec `json:",inline"`
}

AWSClusterControllerIdentitySpec defines the specifications for AWSClusterControllerIdentity.

func (*AWSClusterControllerIdentitySpec) DeepCopy

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

func (*AWSClusterControllerIdentitySpec) DeepCopyInto

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

type AWSClusterIdentitySpec

type AWSClusterIdentitySpec struct {
	// AllowedNamespaces is used to identify which namespaces are allowed to use the identity from.
	// Namespaces can be selected either using an array of namespaces or with label selector.
	// An empty allowedNamespaces object indicates that AWSClusters can use this identity from any namespace.
	// If this object is nil, no namespaces will be allowed (default behaviour, if this field is not provided)
	// A namespace should be either in the NamespaceList or match with Selector to use the identity.
	//
	// +optional
	// +nullable
	AllowedNamespaces *AllowedNamespaces `json:"allowedNamespaces"`
}

AWSClusterIdentitySpec defines the Spec struct for AWSClusterIdentity types.

func (*AWSClusterIdentitySpec) DeepCopy

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

func (*AWSClusterIdentitySpec) DeepCopyInto

func (in *AWSClusterIdentitySpec) DeepCopyInto(out *AWSClusterIdentitySpec)

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

type AWSClusterList

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

AWSClusterList contains a list of AWSCluster. +k8s:defaulter-gen=true

func (*AWSClusterList) DeepCopy

func (in *AWSClusterList) DeepCopy() *AWSClusterList

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

func (*AWSClusterList) DeepCopyInto

func (in *AWSClusterList) DeepCopyInto(out *AWSClusterList)

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

func (*AWSClusterList) DeepCopyObject

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

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

func (*AWSClusterList) Hub

func (*AWSClusterList) Hub()

Hub marks AWSClusterList as a conversion hub.

type AWSClusterRoleIdentity

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

	// Spec for this AWSClusterRoleIdentity.
	Spec AWSClusterRoleIdentitySpec `json:"spec,omitempty"`
}

AWSClusterRoleIdentity is the Schema for the awsclusterroleidentities API It is used to assume a role using the provided sourceRef.

func (*AWSClusterRoleIdentity) DeepCopy

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

func (*AWSClusterRoleIdentity) DeepCopyInto

func (in *AWSClusterRoleIdentity) DeepCopyInto(out *AWSClusterRoleIdentity)

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

func (*AWSClusterRoleIdentity) DeepCopyObject

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

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

func (*AWSClusterRoleIdentity) Default

func (r *AWSClusterRoleIdentity) Default()

Default will set default values for the AWSClusterRoleIdentity.

func (*AWSClusterRoleIdentity) Hub

func (*AWSClusterRoleIdentity) Hub()

Hub marks AWSClusterRoleIdentity as a conversion hub.

func (*AWSClusterRoleIdentity) SetupWebhookWithManager

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

func (*AWSClusterRoleIdentity) ValidateCreate

func (r *AWSClusterRoleIdentity) ValidateCreate() (admission.Warnings, error)

ValidateCreate will do any extra validation when creating an AWSClusterRoleIdentity.

func (*AWSClusterRoleIdentity) ValidateDelete

func (r *AWSClusterRoleIdentity) ValidateDelete() (admission.Warnings, error)

ValidateDelete allows you to add any extra validation when deleting an AWSClusterRoleIdentity.

func (*AWSClusterRoleIdentity) ValidateUpdate

func (r *AWSClusterRoleIdentity) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

ValidateUpdate will do any extra validation when updating an AWSClusterRoleIdentity.

type AWSClusterRoleIdentityList

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

AWSClusterRoleIdentityList contains a list of AWSClusterRoleIdentity.

func (*AWSClusterRoleIdentityList) DeepCopy

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

func (*AWSClusterRoleIdentityList) DeepCopyInto

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

func (*AWSClusterRoleIdentityList) DeepCopyObject

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

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

func (*AWSClusterRoleIdentityList) Hub

Hub marks AWSClusterRoleIdentityList as a conversion hub.

type AWSClusterRoleIdentitySpec

type AWSClusterRoleIdentitySpec struct {
	AWSClusterIdentitySpec `json:",inline"`
	AWSRoleSpec            `json:",inline"`
	// A unique identifier that might be required when you assume a role in another account.
	// If the administrator of the account to which the role belongs provided you with an
	// external ID, then provide that value in the ExternalId parameter. This value can be
	// any string, such as a passphrase or account number. A cross-account role is usually
	// set up to trust everyone in an account. Therefore, the administrator of the trusting
	// account might send an external ID to the administrator of the trusted account. That
	// way, only someone with the ID can assume the role, rather than everyone in the
	// account. For more information about the external ID, see How to Use an External ID
	// When Granting Access to Your AWS Resources to a Third Party in the IAM User Guide.
	// +optional
	ExternalID string `json:"externalID,omitempty"`

	// SourceIdentityRef is a reference to another identity which will be chained to do
	// role assumption. All identity types are accepted.
	SourceIdentityRef *AWSIdentityReference `json:"sourceIdentityRef,omitempty"`
}

AWSClusterRoleIdentitySpec defines the specifications for AWSClusterRoleIdentity.

func (*AWSClusterRoleIdentitySpec) DeepCopy

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

func (*AWSClusterRoleIdentitySpec) DeepCopyInto

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

type AWSClusterSpec

type AWSClusterSpec struct {
	// NetworkSpec encapsulates all things related to AWS network.
	NetworkSpec NetworkSpec `json:"network,omitempty"`

	// The AWS Region the cluster lives in.
	Region string `json:"region,omitempty"`

	// Partition is the AWS security partition being used. Defaults to "aws"
	// +optional
	Partition string `json:"partition,omitempty"`

	// SSHKeyName is the name of the ssh key to attach to the bastion host. Valid values are empty string (do not use SSH keys), a valid SSH key name, or omitted (use the default SSH key name)
	// +optional
	SSHKeyName *string `json:"sshKeyName,omitempty"`

	// ControlPlaneEndpoint represents the endpoint used to communicate with the control plane.
	// +optional
	ControlPlaneEndpoint clusterv1.APIEndpoint `json:"controlPlaneEndpoint"`

	// AdditionalTags is an optional set of tags to add to AWS resources managed by the AWS provider, in addition to the
	// ones added by default.
	// +optional
	AdditionalTags Tags `json:"additionalTags,omitempty"`

	// ControlPlaneLoadBalancer is optional configuration for customizing control plane behavior.
	// +optional
	ControlPlaneLoadBalancer *AWSLoadBalancerSpec `json:"controlPlaneLoadBalancer,omitempty"`

	// SecondaryControlPlaneLoadBalancer is an additional load balancer that can be used for the control plane.
	//
	// An example use case is to have a separate internal load balancer for internal traffic,
	// and a separate external load balancer for external traffic.
	//
	// +optional
	SecondaryControlPlaneLoadBalancer *AWSLoadBalancerSpec `json:"secondaryControlPlaneLoadBalancer,omitempty"`

	// ImageLookupFormat is the AMI naming format to look up machine images when
	// a machine does not specify an AMI. When set, this will be used for all
	// cluster machines unless a machine specifies a different ImageLookupOrg.
	// Supports substitutions for {{.BaseOS}} and {{.K8sVersion}} with the base
	// OS and kubernetes version, respectively. The BaseOS will be the value in
	// ImageLookupBaseOS or ubuntu (the default), and the kubernetes version as
	// defined by the packages produced by kubernetes/release without v as a
	// prefix: 1.13.0, 1.12.5-mybuild.1, or 1.17.3. For example, the default
	// image format of capa-ami-{{.BaseOS}}-?{{.K8sVersion}}-* will end up
	// searching for AMIs that match the pattern capa-ami-ubuntu-?1.18.0-* for a
	// Machine that is targeting kubernetes v1.18.0 and the ubuntu base OS. See
	// also: https://golang.org/pkg/text/template/
	// +optional
	ImageLookupFormat string `json:"imageLookupFormat,omitempty"`

	// ImageLookupOrg is the AWS Organization ID to look up machine images when a
	// machine does not specify an AMI. When set, this will be used for all
	// cluster machines unless a machine specifies a different ImageLookupOrg.
	// +optional
	ImageLookupOrg string `json:"imageLookupOrg,omitempty"`

	// ImageLookupBaseOS is the name of the base operating system used to look
	// up machine images when a machine does not specify an AMI. When set, this
	// will be used for all cluster machines unless a machine specifies a
	// different ImageLookupBaseOS.
	ImageLookupBaseOS string `json:"imageLookupBaseOS,omitempty"`

	// Bastion contains options to configure the bastion host.
	// +optional
	Bastion Bastion `json:"bastion"`

	// IdentityRef is a reference to an identity to be used when reconciling the managed control plane.
	// If no identity is specified, the default identity for this controller will be used.
	IdentityRef *AWSIdentityReference `json:"identityRef,omitempty"`

	// S3Bucket contains options to configure a supporting S3 bucket for this
	// cluster - currently used for nodes requiring Ignition
	// (https://coreos.github.io/ignition/) for bootstrapping (requires
	// BootstrapFormatIgnition feature flag to be enabled).
	// +optional
	S3Bucket *S3Bucket `json:"s3Bucket,omitempty"`
}

AWSClusterSpec defines the desired state of an EC2-based Kubernetes cluster.

func (*AWSClusterSpec) DeepCopy

func (in *AWSClusterSpec) DeepCopy() *AWSClusterSpec

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

func (*AWSClusterSpec) DeepCopyInto

func (in *AWSClusterSpec) DeepCopyInto(out *AWSClusterSpec)

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

type AWSClusterStaticIdentity

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

	// Spec for this AWSClusterStaticIdentity
	Spec AWSClusterStaticIdentitySpec `json:"spec,omitempty"`
}

AWSClusterStaticIdentity is the Schema for the awsclusterstaticidentities API It represents a reference to an AWS access key ID and secret access key, stored in a secret.

func (*AWSClusterStaticIdentity) DeepCopy

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

func (*AWSClusterStaticIdentity) DeepCopyInto

func (in *AWSClusterStaticIdentity) DeepCopyInto(out *AWSClusterStaticIdentity)

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

func (*AWSClusterStaticIdentity) DeepCopyObject

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

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

func (*AWSClusterStaticIdentity) Default

func (r *AWSClusterStaticIdentity) Default()

Default should return the default AWSClusterStaticIdentity.

func (*AWSClusterStaticIdentity) Hub

func (*AWSClusterStaticIdentity) Hub()

Hub marks AWSClusterStaticIdentity as a conversion hub.

func (*AWSClusterStaticIdentity) SetupWebhookWithManager

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

func (*AWSClusterStaticIdentity) ValidateCreate

func (r *AWSClusterStaticIdentity) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*AWSClusterStaticIdentity) ValidateDelete

func (r *AWSClusterStaticIdentity) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type.

func (*AWSClusterStaticIdentity) ValidateUpdate

func (r *AWSClusterStaticIdentity) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.

type AWSClusterStaticIdentityList

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

AWSClusterStaticIdentityList contains a list of AWSClusterStaticIdentity.

func (*AWSClusterStaticIdentityList) DeepCopy

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

func (*AWSClusterStaticIdentityList) DeepCopyInto

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

func (*AWSClusterStaticIdentityList) DeepCopyObject

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

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

func (*AWSClusterStaticIdentityList) Hub

Hub marks AWSClusterStaticIdentityList as a conversion hub.

type AWSClusterStaticIdentitySpec

type AWSClusterStaticIdentitySpec struct {
	AWSClusterIdentitySpec `json:",inline"`
	// Reference to a secret containing the credentials. The secret should
	// contain the following data keys:
	//  AccessKeyID: AKIAIOSFODNN7EXAMPLE
	//  SecretAccessKey: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
	//  SessionToken: Optional
	SecretRef string `json:"secretRef"`
}

AWSClusterStaticIdentitySpec defines the specifications for AWSClusterStaticIdentity.

func (*AWSClusterStaticIdentitySpec) DeepCopy

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

func (*AWSClusterStaticIdentitySpec) DeepCopyInto

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

type AWSClusterStatus

type AWSClusterStatus struct {
	// +kubebuilder:default=false
	Ready          bool                     `json:"ready"`
	Network        NetworkStatus            `json:"networkStatus,omitempty"`
	FailureDomains clusterv1.FailureDomains `json:"failureDomains,omitempty"`
	Bastion        *Instance                `json:"bastion,omitempty"`
	Conditions     clusterv1.Conditions     `json:"conditions,omitempty"`
}

AWSClusterStatus defines the observed state of AWSCluster.

func (*AWSClusterStatus) DeepCopy

func (in *AWSClusterStatus) DeepCopy() *AWSClusterStatus

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

func (*AWSClusterStatus) DeepCopyInto

func (in *AWSClusterStatus) DeepCopyInto(out *AWSClusterStatus)

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

type AWSClusterTemplate

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

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

AWSClusterTemplate is the schema for Amazon EC2 based Kubernetes Cluster Templates.

func (*AWSClusterTemplate) DeepCopy

func (in *AWSClusterTemplate) DeepCopy() *AWSClusterTemplate

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

func (*AWSClusterTemplate) DeepCopyInto

func (in *AWSClusterTemplate) DeepCopyInto(out *AWSClusterTemplate)

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

func (*AWSClusterTemplate) DeepCopyObject

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

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

func (*AWSClusterTemplate) Default

func (r *AWSClusterTemplate) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type.

func (*AWSClusterTemplate) Hub

func (*AWSClusterTemplate) Hub()

Hub marks AWSClusterTemplate as a conversion hub.

func (*AWSClusterTemplate) SetupWebhookWithManager

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

func (*AWSClusterTemplate) ValidateCreate

func (r *AWSClusterTemplate) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*AWSClusterTemplate) ValidateDelete

func (r *AWSClusterTemplate) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type.

func (*AWSClusterTemplate) ValidateUpdate

func (r *AWSClusterTemplate) ValidateUpdate(oldRaw runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.

type AWSClusterTemplateList

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

AWSClusterTemplateList contains a list of AWSClusterTemplate.

func (*AWSClusterTemplateList) DeepCopy

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

func (*AWSClusterTemplateList) DeepCopyInto

func (in *AWSClusterTemplateList) DeepCopyInto(out *AWSClusterTemplateList)

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

func (*AWSClusterTemplateList) DeepCopyObject

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

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

func (*AWSClusterTemplateList) Hub

func (*AWSClusterTemplateList) Hub()

Hub marks AWSClusterTemplateList as a conversion hub.

type AWSClusterTemplateResource

type AWSClusterTemplateResource struct {
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	ObjectMeta clusterv1.ObjectMeta `json:"metadata,omitempty"`
	Spec       AWSClusterSpec       `json:"spec"`
}

AWSClusterTemplateResource defines the desired state of AWSClusterTemplateResource.

func (*AWSClusterTemplateResource) DeepCopy

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

func (*AWSClusterTemplateResource) DeepCopyInto

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

type AWSClusterTemplateSpec

type AWSClusterTemplateSpec struct {
	Template AWSClusterTemplateResource `json:"template"`
}

AWSClusterTemplateSpec defines the desired state of AWSClusterTemplate.

func (*AWSClusterTemplateSpec) DeepCopy

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

func (*AWSClusterTemplateSpec) DeepCopyInto

func (in *AWSClusterTemplateSpec) DeepCopyInto(out *AWSClusterTemplateSpec)

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

type AWSIdentityKind

type AWSIdentityKind string

AWSIdentityKind defines allowed AWS identity types.

type AWSIdentityReference

type AWSIdentityReference struct {
	// Name of the identity.
	// +kubebuilder:validation:MinLength=1
	Name string `json:"name"`

	// Kind of the identity.
	// +kubebuilder:validation:Enum=AWSClusterControllerIdentity;AWSClusterRoleIdentity;AWSClusterStaticIdentity
	Kind AWSIdentityKind `json:"kind"`
}

AWSIdentityReference specifies a identity.

func (*AWSIdentityReference) DeepCopy

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

func (*AWSIdentityReference) DeepCopyInto

func (in *AWSIdentityReference) DeepCopyInto(out *AWSIdentityReference)

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

type AWSLoadBalancerSpec

type AWSLoadBalancerSpec struct {
	// Name sets the name of the classic ELB load balancer. As per AWS, the name must be unique
	// within your set of load balancers for the region, must have a maximum of 32 characters, must
	// contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen. Once
	// set, the value cannot be changed.
	// +kubebuilder:validation:MaxLength:=32
	// +kubebuilder:validation:Pattern=`^[A-Za-z0-9]([A-Za-z0-9]{0,31}|[-A-Za-z0-9]{0,30}[A-Za-z0-9])$`
	// +optional
	Name *string `json:"name,omitempty"`

	// Scheme sets the scheme of the load balancer (defaults to internet-facing)
	// +kubebuilder:default=internet-facing
	// +kubebuilder:validation:Enum=internet-facing;internal
	// +optional
	Scheme *ELBScheme `json:"scheme,omitempty"`

	// CrossZoneLoadBalancing enables the classic ELB cross availability zone balancing.
	//
	// With cross-zone load balancing, each load balancer node for your Classic Load Balancer
	// distributes requests evenly across the registered instances in all enabled Availability Zones.
	// If cross-zone load balancing is disabled, each load balancer node distributes requests evenly across
	// the registered instances in its Availability Zone only.
	//
	// Defaults to false.
	// +optional
	CrossZoneLoadBalancing bool `json:"crossZoneLoadBalancing"`

	// Subnets sets the subnets that should be applied to the control plane load balancer (defaults to discovered subnets for managed VPCs or an empty set for unmanaged VPCs)
	// +optional
	Subnets []string `json:"subnets,omitempty"`

	// HealthCheckProtocol sets the protocol type for ELB health check target
	// default value is ELBProtocolSSL
	// +kubebuilder:validation:Enum=TCP;SSL;HTTP;HTTPS;TLS;UDP
	// +optional
	HealthCheckProtocol *ELBProtocol `json:"healthCheckProtocol,omitempty"`

	// HealthCheck sets custom health check configuration to the API target group.
	// +optional
	HealthCheck *TargetGroupHealthCheckAPISpec `json:"healthCheck,omitempty"`

	// AdditionalSecurityGroups sets the security groups used by the load balancer. Expected to be security group IDs
	// This is optional - if not provided new security groups will be created for the load balancer
	// +optional
	AdditionalSecurityGroups []string `json:"additionalSecurityGroups,omitempty"`

	// AdditionalListeners sets the additional listeners for the control plane load balancer.
	// This is only applicable to Network Load Balancer (NLB) types for the time being.
	// +listType=map
	// +listMapKey=port
	// +optional
	AdditionalListeners []AdditionalListenerSpec `json:"additionalListeners,omitempty"`

	// IngressRules sets the ingress rules for the control plane load balancer.
	// +optional
	IngressRules []IngressRule `json:"ingressRules,omitempty"`

	// LoadBalancerType sets the type for a load balancer. The default type is classic.
	// +kubebuilder:default=classic
	// +kubebuilder:validation:Enum:=classic;elb;alb;nlb;disabled
	LoadBalancerType LoadBalancerType `json:"loadBalancerType,omitempty"`

	// DisableHostsRewrite disabled the hair pinning issue solution that adds the NLB's address as 127.0.0.1 to the hosts
	// file of each instance. This is by default, false.
	DisableHostsRewrite bool `json:"disableHostsRewrite,omitempty"`

	// PreserveClientIP lets the user control if preservation of client ips must be retained or not.
	// If this is enabled 6443 will be opened to 0.0.0.0/0.
	PreserveClientIP bool `json:"preserveClientIP,omitempty"`
}

AWSLoadBalancerSpec defines the desired state of an AWS load balancer.

func (*AWSLoadBalancerSpec) DeepCopy

func (in *AWSLoadBalancerSpec) DeepCopy() *AWSLoadBalancerSpec

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

func (*AWSLoadBalancerSpec) DeepCopyInto

func (in *AWSLoadBalancerSpec) DeepCopyInto(out *AWSLoadBalancerSpec)

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

type AWSMachine

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

	Spec   AWSMachineSpec   `json:"spec,omitempty"`
	Status AWSMachineStatus `json:"status,omitempty"`
}

AWSMachine is the schema for Amazon EC2 machines.

func (*AWSMachine) DeepCopy

func (in *AWSMachine) DeepCopy() *AWSMachine

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

func (*AWSMachine) DeepCopyInto

func (in *AWSMachine) DeepCopyInto(out *AWSMachine)

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

func (*AWSMachine) DeepCopyObject

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

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

func (*AWSMachine) Default

func (r *AWSMachine) Default()

Default implements webhook.Defaulter such that an empty CloudInit will be defined with a default SecureSecretsBackend as SecretBackendSecretsManager iff InsecureSkipSecretsManager is unset.

func (*AWSMachine) GetConditions

func (r *AWSMachine) GetConditions() clusterv1.Conditions

GetConditions returns the observations of the operational state of the AWSMachine resource.

func (*AWSMachine) Hub

func (*AWSMachine) Hub()

Hub marks AWSMachine as a conversion hub.

func (*AWSMachine) SetConditions

func (r *AWSMachine) SetConditions(conditions clusterv1.Conditions)

SetConditions sets the underlying service state of the AWSMachine to the predescribed clusterv1.Conditions.

func (*AWSMachine) SetupWebhookWithManager

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

func (*AWSMachine) ValidateCreate

func (r *AWSMachine) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*AWSMachine) ValidateDelete

func (r *AWSMachine) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type.

func (*AWSMachine) ValidateUpdate

func (r *AWSMachine) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.

type AWSMachineList

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

AWSMachineList contains a list of Amazon EC2 machines.

func (*AWSMachineList) DeepCopy

func (in *AWSMachineList) DeepCopy() *AWSMachineList

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

func (*AWSMachineList) DeepCopyInto

func (in *AWSMachineList) DeepCopyInto(out *AWSMachineList)

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

func (*AWSMachineList) DeepCopyObject

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

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

func (*AWSMachineList) Hub

func (*AWSMachineList) Hub()

Hub marks AWSMachineList as a conversion hub.

type AWSMachineProviderConditionType

type AWSMachineProviderConditionType string

AWSMachineProviderConditionType is a valid value for AWSMachineProviderCondition.Type.

const (
	// MachineCreated indicates whether the machine has been created or not. If not,
	// it should include a reason and message for the failure.
	MachineCreated AWSMachineProviderConditionType = "MachineCreated"
)

Valid conditions for an AWS machine instance.

type AWSMachineSpec

type AWSMachineSpec struct {
	// ProviderID is the unique identifier as specified by the cloud provider.
	ProviderID *string `json:"providerID,omitempty"`

	// InstanceID is the EC2 instance ID for this machine.
	InstanceID *string `json:"instanceID,omitempty"`

	// InstanceMetadataOptions is the metadata options for the EC2 instance.
	// +optional
	InstanceMetadataOptions *InstanceMetadataOptions `json:"instanceMetadataOptions,omitempty"`

	// AMI is the reference to the AMI from which to create the machine instance.
	AMI AMIReference `json:"ami,omitempty"`

	// ImageLookupFormat is the AMI naming format to look up the image for this
	// machine It will be ignored if an explicit AMI is set. Supports
	// substitutions for {{.BaseOS}} and {{.K8sVersion}} with the base OS and
	// kubernetes version, respectively. The BaseOS will be the value in
	// ImageLookupBaseOS or ubuntu (the default), and the kubernetes version as
	// defined by the packages produced by kubernetes/release without v as a
	// prefix: 1.13.0, 1.12.5-mybuild.1, or 1.17.3. For example, the default
	// image format of capa-ami-{{.BaseOS}}-?{{.K8sVersion}}-* will end up
	// searching for AMIs that match the pattern capa-ami-ubuntu-?1.18.0-* for a
	// Machine that is targeting kubernetes v1.18.0 and the ubuntu base OS. See
	// also: https://golang.org/pkg/text/template/
	// +optional
	ImageLookupFormat string `json:"imageLookupFormat,omitempty"`

	// ImageLookupOrg is the AWS Organization ID to use for image lookup if AMI is not set.
	ImageLookupOrg string `json:"imageLookupOrg,omitempty"`

	// ImageLookupBaseOS is the name of the base operating system to use for
	// image lookup the AMI is not set.
	ImageLookupBaseOS string `json:"imageLookupBaseOS,omitempty"`

	// InstanceType is the type of instance to create. Example: m4.xlarge
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength:=2
	InstanceType string `json:"instanceType"`

	// AdditionalTags is an optional set of tags to add to an instance, in addition to the ones added by default by the
	// AWS provider. If both the AWSCluster and the AWSMachine specify the same tag name with different values, the
	// AWSMachine's value takes precedence.
	// +optional
	AdditionalTags Tags `json:"additionalTags,omitempty"`

	// IAMInstanceProfile is a name of an IAM instance profile to assign to the instance
	// +optional
	IAMInstanceProfile string `json:"iamInstanceProfile,omitempty"`

	// PublicIP specifies whether the instance should get a public IP.
	// Precedence for this setting is as follows:
	// 1. This field if set
	// 2. Cluster/flavor setting
	// 3. Subnet default
	// +optional
	PublicIP *bool `json:"publicIP,omitempty"`

	// ElasticIPPool is the configuration to allocate Public IPv4 address (Elastic IP/EIP) from user-defined pool.
	//
	// +optional
	ElasticIPPool *ElasticIPPool `json:"elasticIpPool,omitempty"`

	// AdditionalSecurityGroups is an array of references to security groups that should be applied to the
	// instance. These security groups would be set in addition to any security groups defined
	// at the cluster level or in the actuator. It is possible to specify either IDs of Filters. Using Filters
	// will cause additional requests to AWS API and if tags change the attached security groups might change too.
	// +optional
	AdditionalSecurityGroups []AWSResourceReference `json:"additionalSecurityGroups,omitempty"`

	// Subnet is a reference to the subnet to use for this instance. If not specified,
	// the cluster subnet will be used.
	// +optional
	Subnet *AWSResourceReference `json:"subnet,omitempty"`

	// SecurityGroupOverrides is an optional set of security groups to use for the node.
	// This is optional - if not provided security groups from the cluster will be used.
	// +optional
	SecurityGroupOverrides map[SecurityGroupRole]string `json:"securityGroupOverrides,omitempty"`

	// SSHKeyName is the name of the ssh key to attach to the instance. Valid values are empty string (do not use SSH keys), a valid SSH key name, or omitted (use the default SSH key name)
	// +optional
	SSHKeyName *string `json:"sshKeyName,omitempty"`

	// RootVolume encapsulates the configuration options for the root volume
	// +optional
	RootVolume *Volume `json:"rootVolume,omitempty"`

	// Configuration options for the non root storage volumes.
	// +optional
	NonRootVolumes []Volume `json:"nonRootVolumes,omitempty"`

	// NetworkInterfaces is a list of ENIs to associate with the instance.
	// A maximum of 2 may be specified.
	// +optional
	// +kubebuilder:validation:MaxItems=2
	NetworkInterfaces []string `json:"networkInterfaces,omitempty"`

	// UncompressedUserData specify whether the user data is gzip-compressed before it is sent to ec2 instance.
	// cloud-init has built-in support for gzip-compressed user data
	// user data stored in aws secret manager is always gzip-compressed.
	//
	// +optional
	UncompressedUserData *bool `json:"uncompressedUserData,omitempty"`

	// CloudInit defines options related to the bootstrapping systems where
	// CloudInit is used.
	// +optional
	CloudInit CloudInit `json:"cloudInit,omitempty"`

	// Ignition defined options related to the bootstrapping systems where Ignition is used.
	// +optional
	Ignition *Ignition `json:"ignition,omitempty"`

	// SpotMarketOptions allows users to configure instances to be run using AWS Spot instances.
	// +optional
	SpotMarketOptions *SpotMarketOptions `json:"spotMarketOptions,omitempty"`

	// PlacementGroupName specifies the name of the placement group in which to launch the instance.
	// +optional
	PlacementGroupName string `json:"placementGroupName,omitempty"`

	// PlacementGroupPartition is the partition number within the placement group in which to launch the instance.
	// This value is only valid if the placement group, referred in `PlacementGroupName`, was created with
	// strategy set to partition.
	// +kubebuilder:validation:Minimum:=1
	// +kubebuilder:validation:Maximum:=7
	// +optional
	PlacementGroupPartition int64 `json:"placementGroupPartition,omitempty"`

	// Tenancy indicates if instance should run on shared or single-tenant hardware.
	// +optional
	// +kubebuilder:validation:Enum:=default;dedicated;host
	Tenancy string `json:"tenancy,omitempty"`

	// PrivateDNSName is the options for the instance hostname.
	// +optional
	PrivateDNSName *PrivateDNSName `json:"privateDnsName,omitempty"`

	// CapacityReservationID specifies the target Capacity Reservation into which the instance should be launched.
	// +optional
	CapacityReservationID *string `json:"capacityReservationId,omitempty"`
}

AWSMachineSpec defines the desired state of an Amazon EC2 instance.

func (*AWSMachineSpec) DeepCopy

func (in *AWSMachineSpec) DeepCopy() *AWSMachineSpec

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

func (*AWSMachineSpec) DeepCopyInto

func (in *AWSMachineSpec) DeepCopyInto(out *AWSMachineSpec)

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

type AWSMachineStatus

type AWSMachineStatus struct {
	// Ready is true when the provider resource is ready.
	// +optional
	Ready bool `json:"ready"`

	// Interruptible reports that this machine is using spot instances and can therefore be interrupted by CAPI when it receives a notice that the spot instance is to be terminated by AWS.
	// This will be set to true when SpotMarketOptions is not nil (i.e. this machine is using a spot instance).
	// +optional
	Interruptible bool `json:"interruptible,omitempty"`

	// Addresses contains the AWS instance associated addresses.
	Addresses []clusterv1.MachineAddress `json:"addresses,omitempty"`

	// InstanceState is the state of the AWS instance for this machine.
	// +optional
	InstanceState *InstanceState `json:"instanceState,omitempty"`

	// FailureReason will be set in the event that there is a terminal problem
	// reconciling the Machine and will contain a succinct value suitable
	// for machine interpretation.
	//
	// This field should not be set for transitive errors that a controller
	// faces that are expected to be fixed automatically over
	// time (like service outages), but instead indicate that something is
	// fundamentally wrong with the Machine's spec or the configuration of
	// the controller, and that manual intervention is required. Examples
	// of terminal errors would be invalid combinations of settings in the
	// spec, values that are unsupported by the controller, or the
	// responsible controller itself being critically misconfigured.
	//
	// Any transient errors that occur during the reconciliation of Machines
	// can be added as events to the Machine object and/or logged in the
	// controller's output.
	// +optional
	FailureReason *errors.MachineStatusError `json:"failureReason,omitempty"`

	// FailureMessage will be set in the event that there is a terminal problem
	// reconciling the Machine and will contain a more verbose string suitable
	// for logging and human consumption.
	//
	// This field should not be set for transitive errors that a controller
	// faces that are expected to be fixed automatically over
	// time (like service outages), but instead indicate that something is
	// fundamentally wrong with the Machine's spec or the configuration of
	// the controller, and that manual intervention is required. Examples
	// of terminal errors would be invalid combinations of settings in the
	// spec, values that are unsupported by the controller, or the
	// responsible controller itself being critically misconfigured.
	//
	// Any transient errors that occur during the reconciliation of Machines
	// can be added as events to the Machine object and/or logged in the
	// controller's output.
	// +optional
	FailureMessage *string `json:"failureMessage,omitempty"`

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

AWSMachineStatus defines the observed state of AWSMachine.

func (*AWSMachineStatus) DeepCopy

func (in *AWSMachineStatus) DeepCopy() *AWSMachineStatus

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

func (*AWSMachineStatus) DeepCopyInto

func (in *AWSMachineStatus) DeepCopyInto(out *AWSMachineStatus)

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

type AWSMachineTemplate

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

	Spec   AWSMachineTemplateSpec   `json:"spec,omitempty"`
	Status AWSMachineTemplateStatus `json:"status,omitempty"`
}

AWSMachineTemplate is the schema for the Amazon EC2 Machine Templates API.

func (*AWSMachineTemplate) DeepCopy

func (in *AWSMachineTemplate) DeepCopy() *AWSMachineTemplate

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

func (*AWSMachineTemplate) DeepCopyInto

func (in *AWSMachineTemplate) DeepCopyInto(out *AWSMachineTemplate)

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

func (*AWSMachineTemplate) DeepCopyObject

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

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

func (*AWSMachineTemplate) Hub

func (*AWSMachineTemplate) Hub()

Hub marks AWSMachineTemplate as a conversion hub.

type AWSMachineTemplateList

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

AWSMachineTemplateList contains a list of AWSMachineTemplate.

func (*AWSMachineTemplateList) DeepCopy

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

func (*AWSMachineTemplateList) DeepCopyInto

func (in *AWSMachineTemplateList) DeepCopyInto(out *AWSMachineTemplateList)

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

func (*AWSMachineTemplateList) DeepCopyObject

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

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

func (*AWSMachineTemplateList) Hub

func (*AWSMachineTemplateList) Hub()

Hub marks AWSMachineTemplateList as a conversion hub.

type AWSMachineTemplateResource

type AWSMachineTemplateResource struct {
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	ObjectMeta clusterv1.ObjectMeta `json:"metadata,omitempty"`

	// Spec is the specification of the desired behavior of the machine.
	Spec AWSMachineSpec `json:"spec"`
}

AWSMachineTemplateResource describes the data needed to create am AWSMachine from a template.

func (*AWSMachineTemplateResource) DeepCopy

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

func (*AWSMachineTemplateResource) DeepCopyInto

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

type AWSMachineTemplateSpec

type AWSMachineTemplateSpec struct {
	Template AWSMachineTemplateResource `json:"template"`
}

AWSMachineTemplateSpec defines the desired state of AWSMachineTemplate.

func (*AWSMachineTemplateSpec) DeepCopy

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

func (*AWSMachineTemplateSpec) DeepCopyInto

func (in *AWSMachineTemplateSpec) DeepCopyInto(out *AWSMachineTemplateSpec)

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

type AWSMachineTemplateStatus

type AWSMachineTemplateStatus struct {
	// Capacity defines the resource capacity for this machine.
	// This value is used for autoscaling from zero operations as defined in:
	// https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20210310-opt-in-autoscaling-from-zero.md
	// +optional
	Capacity corev1.ResourceList `json:"capacity,omitempty"`
}

AWSMachineTemplateStatus defines a status for an AWSMachineTemplate.

func (*AWSMachineTemplateStatus) DeepCopy

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

func (*AWSMachineTemplateStatus) DeepCopyInto

func (in *AWSMachineTemplateStatus) DeepCopyInto(out *AWSMachineTemplateStatus)

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

type AWSMachineTemplateWebhook

type AWSMachineTemplateWebhook struct{}

AWSMachineTemplateWebhook implements a custom validation webhook for AWSMachineTemplate. Note: we use a custom validator to access the request context for SSA of AWSMachineTemplate. +kubebuilder:object:generate=false

func (*AWSMachineTemplateWebhook) SetupWebhookWithManager

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

func (*AWSMachineTemplateWebhook) ValidateCreate

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*AWSMachineTemplateWebhook) ValidateDelete

ValidateDelete implements webhook.Validator so a webhook will be registered for the type.

func (*AWSMachineTemplateWebhook) ValidateUpdate

func (r *AWSMachineTemplateWebhook) ValidateUpdate(ctx context.Context, oldRaw runtime.Object, newRaw runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.

type AWSManagedCluster

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

	Spec   AWSManagedClusterSpec   `json:"spec,omitempty"`
	Status AWSManagedClusterStatus `json:"status,omitempty"`
}

AWSManagedCluster is the Schema for the awsmanagedclusters API

func (*AWSManagedCluster) DeepCopy

func (in *AWSManagedCluster) DeepCopy() *AWSManagedCluster

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

func (*AWSManagedCluster) DeepCopyInto

func (in *AWSManagedCluster) DeepCopyInto(out *AWSManagedCluster)

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

func (*AWSManagedCluster) DeepCopyObject

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

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

type AWSManagedClusterList

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

AWSManagedClusterList contains a list of AWSManagedCluster.

func (*AWSManagedClusterList) DeepCopy

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

func (*AWSManagedClusterList) DeepCopyInto

func (in *AWSManagedClusterList) DeepCopyInto(out *AWSManagedClusterList)

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

func (*AWSManagedClusterList) DeepCopyObject

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

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

type AWSManagedClusterSpec

type AWSManagedClusterSpec struct {
	// ControlPlaneEndpoint represents the endpoint used to communicate with the control plane.
	// +optional
	ControlPlaneEndpoint clusterv1.APIEndpoint `json:"controlPlaneEndpoint"`
}

AWSManagedClusterSpec defines the desired state of AWSManagedCluster

func (*AWSManagedClusterSpec) DeepCopy

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

func (*AWSManagedClusterSpec) DeepCopyInto

func (in *AWSManagedClusterSpec) DeepCopyInto(out *AWSManagedClusterSpec)

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

type AWSManagedClusterStatus

type AWSManagedClusterStatus struct {
	// Ready is when the AWSManagedControlPlane has a API server URL.
	// +optional
	Ready bool `json:"ready,omitempty"`

	// FailureDomains specifies a list fo available availability zones that can be used
	// +optional
	FailureDomains clusterv1.FailureDomains `json:"failureDomains,omitempty"`
}

AWSManagedClusterStatus defines the observed state of AWSManagedCluster

func (*AWSManagedClusterStatus) DeepCopy

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

func (*AWSManagedClusterStatus) DeepCopyInto

func (in *AWSManagedClusterStatus) DeepCopyInto(out *AWSManagedClusterStatus)

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

type AWSResourceReference

type AWSResourceReference struct {
	// ID of resource
	// +optional
	ID *string `json:"id,omitempty"`

	// Filters is a set of key/value pairs used to identify a resource
	// They are applied according to the rules defined by the AWS API:
	// https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Filtering.html
	// +optional
	Filters []Filter `json:"filters,omitempty"`
}

AWSResourceReference is a reference to a specific AWS resource by ID or filters. Only one of ID or Filters may be specified. Specifying more than one will result in a validation error.

func (*AWSResourceReference) DeepCopy

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

func (*AWSResourceReference) DeepCopyInto

func (in *AWSResourceReference) DeepCopyInto(out *AWSResourceReference)

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

type AWSRoleSpec

type AWSRoleSpec struct {
	// The Amazon Resource Name (ARN) of the role to assume.
	RoleArn string `json:"roleARN"`
	// An identifier for the assumed role session
	SessionName string `json:"sessionName,omitempty"`
	// The duration, in seconds, of the role session before it is renewed.
	// +kubebuilder:validation:Minimum:=900
	// +kubebuilder:validation:Maximum:=43200
	DurationSeconds int32 `json:"durationSeconds,omitempty"`
	// An IAM policy as a JSON-encoded string that you want to use as an inline session policy.
	InlinePolicy string `json:"inlinePolicy,omitempty"`

	// The Amazon Resource Names (ARNs) of the IAM managed policies that you want
	// to use as managed session policies.
	// The policies must exist in the same account as the role.
	PolicyARNs []string `json:"policyARNs,omitempty"`
}

AWSRoleSpec defines the specifications for all identities based around AWS roles.

func (*AWSRoleSpec) DeepCopy

func (in *AWSRoleSpec) DeepCopy() *AWSRoleSpec

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

func (*AWSRoleSpec) DeepCopyInto

func (in *AWSRoleSpec) DeepCopyInto(out *AWSRoleSpec)

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

type AZSelectionScheme

type AZSelectionScheme string

AZSelectionScheme defines the scheme of selecting AZs.

type AdditionalListenerSpec added in v2.3.0

type AdditionalListenerSpec struct {
	// Port sets the port for the additional listener.
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=65535
	Port int64 `json:"port"`

	// Protocol sets the protocol for the additional listener.
	// Currently only TCP is supported.
	// +kubebuilder:validation:Enum=TCP
	// +kubebuilder:default=TCP
	Protocol ELBProtocol `json:"protocol,omitempty"`

	// HealthCheck sets the optional custom health check configuration to the API target group.
	// +optional
	HealthCheck *TargetGroupHealthCheckAdditionalSpec `json:"healthCheck,omitempty"`
}

AdditionalListenerSpec defines the desired state of an additional listener on an AWS load balancer.

func (*AdditionalListenerSpec) DeepCopy added in v2.3.0

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

func (*AdditionalListenerSpec) DeepCopyInto added in v2.3.0

func (in *AdditionalListenerSpec) DeepCopyInto(out *AdditionalListenerSpec)

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

type AllowedNamespaces

type AllowedNamespaces struct {
	// An nil or empty list indicates that AWSClusters cannot use the identity from any namespace.
	//
	// +optional
	// +nullable
	NamespaceList []string `json:"list"`

	// An empty selector indicates that AWSClusters cannot use this
	// AWSClusterIdentity from any namespace.
	// +optional
	Selector metav1.LabelSelector `json:"selector"`
}

AllowedNamespaces is a selector of namespaces that AWSClusters can use this ClusterPrincipal from. This is a standard Kubernetes LabelSelector, a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed.

func (*AllowedNamespaces) DeepCopy

func (in *AllowedNamespaces) DeepCopy() *AllowedNamespaces

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

func (*AllowedNamespaces) DeepCopyInto

func (in *AllowedNamespaces) DeepCopyInto(out *AllowedNamespaces)

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

type Bastion

type Bastion struct {
	// Enabled allows this provider to create a bastion host instance
	// with a public ip to access the VPC private network.
	// +optional
	Enabled bool `json:"enabled"`

	// DisableIngressRules will ensure there are no Ingress rules in the bastion host's security group.
	// Requires AllowedCIDRBlocks to be empty.
	// +optional
	DisableIngressRules bool `json:"disableIngressRules,omitempty"`

	// AllowedCIDRBlocks is a list of CIDR blocks allowed to access the bastion host.
	// They are set as ingress rules for the Bastion host's Security Group (defaults to 0.0.0.0/0).
	// +optional
	AllowedCIDRBlocks []string `json:"allowedCIDRBlocks,omitempty"`

	// InstanceType will use the specified instance type for the bastion. If not specified,
	// Cluster API Provider AWS will use t3.micro for all regions except us-east-1, where t2.micro
	// will be the default.
	InstanceType string `json:"instanceType,omitempty"`

	// AMI will use the specified AMI to boot the bastion. If not specified,
	// the AMI will default to one picked out in public space.
	// +optional
	AMI string `json:"ami,omitempty"`
}

Bastion defines a bastion host.

func (*Bastion) DeepCopy

func (in *Bastion) DeepCopy() *Bastion

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

func (*Bastion) DeepCopyInto

func (in *Bastion) DeepCopyInto(out *Bastion)

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

func (*Bastion) Validate

func (b *Bastion) Validate() []*field.Error

Validate will validate the bastion fields.

type BuildParams

type BuildParams struct {
	// Lifecycle determines the resource lifecycle.
	Lifecycle ResourceLifecycle

	// ClusterName is the cluster associated with the resource.
	ClusterName string

	// ResourceID is the unique identifier of the resource to be tagged.
	ResourceID string

	// Name is the name of the resource, it's applied as the tag "Name" on AWS.
	// +optional
	Name *string

	// Role is the role associated to the resource.
	// +optional
	Role *string

	// Any additional tags to be added to the resource.
	// +optional
	Additional Tags
}

BuildParams is used to build tags around an aws resource.

func (*BuildParams) DeepCopy

func (in *BuildParams) DeepCopy() *BuildParams

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

func (*BuildParams) DeepCopyInto

func (in *BuildParams) DeepCopyInto(out *BuildParams)

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

func (BuildParams) WithCloudProvider

func (b BuildParams) WithCloudProvider(name string) BuildParams

WithCloudProvider tags the cluster ownership for a resource.

func (BuildParams) WithMachineName

func (b BuildParams) WithMachineName(m *clusterv1.Machine) BuildParams

WithMachineName tags the namespaced machine name The machine name will be tagged with key "MachineName".

type CNIIngressRule

type CNIIngressRule struct {
	Description string                `json:"description"`
	Protocol    SecurityGroupProtocol `json:"protocol"`
	FromPort    int64                 `json:"fromPort"`
	ToPort      int64                 `json:"toPort"`
}

CNIIngressRule defines an AWS ingress rule for CNI requirements.

func (*CNIIngressRule) DeepCopy

func (in *CNIIngressRule) DeepCopy() *CNIIngressRule

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

func (*CNIIngressRule) DeepCopyInto

func (in *CNIIngressRule) DeepCopyInto(out *CNIIngressRule)

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

type CNIIngressRules

type CNIIngressRules []CNIIngressRule

CNIIngressRules is a slice of CNIIngressRule.

func (CNIIngressRules) DeepCopy

func (in CNIIngressRules) DeepCopy() CNIIngressRules

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

func (CNIIngressRules) DeepCopyInto

func (in CNIIngressRules) DeepCopyInto(out *CNIIngressRules)

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

type CNISpec

type CNISpec struct {
	// CNIIngressRules specify rules to apply to control plane and worker node security groups.
	// The source for the rule will be set to control plane and worker security group IDs.
	CNIIngressRules CNIIngressRules `json:"cniIngressRules,omitempty"`
}

CNISpec defines configuration for CNI.

func (*CNISpec) DeepCopy

func (in *CNISpec) DeepCopy() *CNISpec

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

func (*CNISpec) DeepCopyInto

func (in *CNISpec) DeepCopyInto(out *CNISpec)

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

type ClassicELBAttributes

type ClassicELBAttributes struct {
	// IdleTimeout is time that the connection is allowed to be idle (no data
	// has been sent over the connection) before it is closed by the load balancer.
	IdleTimeout time.Duration `json:"idleTimeout,omitempty"`

	// CrossZoneLoadBalancing enables the classic load balancer load balancing.
	// +optional
	CrossZoneLoadBalancing bool `json:"crossZoneLoadBalancing,omitempty"`
}

ClassicELBAttributes defines extra attributes associated with a classic load balancer.

func (*ClassicELBAttributes) DeepCopy

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

func (*ClassicELBAttributes) DeepCopyInto

func (in *ClassicELBAttributes) DeepCopyInto(out *ClassicELBAttributes)

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

type ClassicELBHealthCheck

type ClassicELBHealthCheck struct {
	Target             string        `json:"target"`
	Interval           time.Duration `json:"interval"`
	Timeout            time.Duration `json:"timeout"`
	HealthyThreshold   int64         `json:"healthyThreshold"`
	UnhealthyThreshold int64         `json:"unhealthyThreshold"`
}

ClassicELBHealthCheck defines an AWS classic load balancer health check.

func (*ClassicELBHealthCheck) DeepCopy

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

func (*ClassicELBHealthCheck) DeepCopyInto

func (in *ClassicELBHealthCheck) DeepCopyInto(out *ClassicELBHealthCheck)

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

type ClassicELBListener

type ClassicELBListener struct {
	Protocol         ELBProtocol `json:"protocol"`
	Port             int64       `json:"port"`
	InstanceProtocol ELBProtocol `json:"instanceProtocol"`
	InstancePort     int64       `json:"instancePort"`
}

ClassicELBListener defines an AWS classic load balancer listener.

func (*ClassicELBListener) DeepCopy

func (in *ClassicELBListener) DeepCopy() *ClassicELBListener

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

func (*ClassicELBListener) DeepCopyInto

func (in *ClassicELBListener) DeepCopyInto(out *ClassicELBListener)

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

type CloudInit

type CloudInit struct {
	// InsecureSkipSecretsManager, when set to true will not use AWS Secrets Manager
	// or AWS Systems Manager Parameter Store to ensure privacy of userdata.
	// By default, a cloud-init boothook shell script is prepended to download
	// the userdata from Secrets Manager and additionally delete the secret.
	InsecureSkipSecretsManager bool `json:"insecureSkipSecretsManager,omitempty"`

	// SecretCount is the number of secrets used to form the complete secret
	// +optional
	SecretCount int32 `json:"secretCount,omitempty"`

	// SecretPrefix is the prefix for the secret name. This is stored
	// temporarily, and deleted when the machine registers as a node against
	// the workload cluster.
	// +optional
	SecretPrefix string `json:"secretPrefix,omitempty"`

	// SecureSecretsBackend, when set to parameter-store will utilize the AWS Systems Manager
	// Parameter Storage to distribute secrets. By default or with the value of secrets-manager,
	// will use AWS Secrets Manager instead.
	// +optional
	// +kubebuilder:validation:Enum=secrets-manager;ssm-parameter-store
	SecureSecretsBackend SecretBackend `json:"secureSecretsBackend,omitempty"`
}

CloudInit defines options related to the bootstrapping systems where CloudInit is used.

func (*CloudInit) DeepCopy

func (in *CloudInit) DeepCopy() *CloudInit

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

func (*CloudInit) DeepCopyInto

func (in *CloudInit) DeepCopyInto(out *CloudInit)

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

type EKSAMILookupType

type EKSAMILookupType string

EKSAMILookupType specifies which AWS AMI to use for a AWSMachine and AWSMachinePool.

const (
	// AmazonLinux is the default AMI type.
	AmazonLinux EKSAMILookupType = "AmazonLinux"
	// AmazonLinuxGPU is the AmazonLinux GPU AMI type.
	AmazonLinuxGPU EKSAMILookupType = "AmazonLinuxGPU"
)

type ELBProtocol added in v2.1.0

type ELBProtocol string

ELBProtocol defines listener protocols for a load balancer.

func (ELBProtocol) String added in v2.1.0

func (e ELBProtocol) String() string

type ELBScheme added in v2.1.0

type ELBScheme string

ELBScheme defines the scheme of a load balancer.

func (ELBScheme) Equals added in v2.2.2

func (e ELBScheme) Equals(other *ELBScheme) bool

Equals returns true if two ELBScheme are equal.

func (ELBScheme) String added in v2.1.0

func (e ELBScheme) String() string

type ElasticIPPool added in v2.5.1

type ElasticIPPool struct {
	// PublicIpv4Pool sets a custom Public IPv4 Pool used to create Elastic IP address for resources
	// created in public IPv4 subnets. Every IPv4 address, Elastic IP, will be allocated from the custom
	// Public IPv4 pool that you brought to AWS, instead of Amazon-provided pool. The public IPv4 pool
	// resource ID starts with 'ipv4pool-ec2'.
	//
	// +kubebuilder:validation:MaxLength=30
	// +optional
	PublicIpv4Pool *string `json:"publicIpv4Pool,omitempty"`

	// PublicIpv4PoolFallBackOrder defines the fallback action when the Public IPv4 Pool has been exhausted,
	// no more IPv4 address available in the pool.
	//
	// When set to 'amazon-pool', the controller check if the pool has available IPv4 address, when pool has reached the
	// IPv4 limit, the address will be claimed from Amazon-pool (default).
	//
	// When set to 'none', the controller will fail the Elastic IP allocation when the publicIpv4Pool is exhausted.
	//
	// +kubebuilder:validation:Enum:=amazon-pool;none
	// +optional
	PublicIpv4PoolFallBackOrder *PublicIpv4PoolFallbackOrder `json:"publicIpv4PoolFallbackOrder,omitempty"`
}

ElasticIPPool allows configuring a Elastic IP pool for resources allocating public IPv4 addresses on public subnets.

func (*ElasticIPPool) DeepCopy added in v2.5.1

func (in *ElasticIPPool) DeepCopy() *ElasticIPPool

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

func (*ElasticIPPool) DeepCopyInto added in v2.5.1

func (in *ElasticIPPool) DeepCopyInto(out *ElasticIPPool)

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

type Filter

type Filter struct {
	// Name of the filter. Filter names are case-sensitive.
	Name string `json:"name"`

	// Values includes one or more filter values. Filter values are case-sensitive.
	Values []string `json:"values"`
}

Filter is a filter used to identify an AWS resource.

func (*Filter) DeepCopy

func (in *Filter) DeepCopy() *Filter

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

func (*Filter) DeepCopyInto

func (in *Filter) DeepCopyInto(out *Filter)

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

type GCTask added in v2.3.0

type GCTask string

GCTask defines a task to be executed by the garbage collector.

type HTTPTokensState added in v2.1.0

type HTTPTokensState string

HTTPTokensState describes the state of InstanceMetadataOptions.HTTPTokensState

type IPAMPool added in v2.3.0

type IPAMPool struct {
	// ID is the ID of the IPAM pool this provider should use to create VPC.
	ID string `json:"id,omitempty"`
	// Name is the name of the IPAM pool this provider should use to create VPC.
	Name string `json:"name,omitempty"`
	// The netmask length of the IPv4 CIDR you want to allocate to VPC from
	// an Amazon VPC IP Address Manager (IPAM) pool.
	// Defaults to /16 for IPv4 if not specified.
	NetmaskLength int64 `json:"netmaskLength,omitempty"`
}

IPAMPool defines the IPAM pool to be used for VPC.

func (*IPAMPool) DeepCopy added in v2.3.0

func (in *IPAMPool) DeepCopy() *IPAMPool

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

func (*IPAMPool) DeepCopyInto added in v2.3.0

func (in *IPAMPool) DeepCopyInto(out *IPAMPool)

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

type IPv6

type IPv6 struct {
	// CidrBlock is the CIDR block provided by Amazon when VPC has enabled IPv6.
	// Mutually exclusive with IPAMPool.
	// +optional
	CidrBlock string `json:"cidrBlock,omitempty"`

	// PoolID is the IP pool which must be defined in case of BYO IP is defined.
	// Must be specified if CidrBlock is set.
	// Mutually exclusive with IPAMPool.
	// +optional
	PoolID string `json:"poolId,omitempty"`

	// EgressOnlyInternetGatewayID is the id of the egress only internet gateway associated with an IPv6 enabled VPC.
	// +optional
	EgressOnlyInternetGatewayID *string `json:"egressOnlyInternetGatewayId,omitempty"`

	// IPAMPool defines the IPAMv6 pool to be used for VPC.
	// Mutually exclusive with CidrBlock.
	// +optional
	IPAMPool *IPAMPool `json:"ipamPool,omitempty"`
}

IPv6 contains ipv6 specific settings for the network.

func (*IPv6) DeepCopy

func (in *IPv6) DeepCopy() *IPv6

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

func (*IPv6) DeepCopyInto

func (in *IPv6) DeepCopyInto(out *IPv6)

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

type Ignition

type Ignition struct {
	// Version defines which version of Ignition will be used to generate bootstrap data.
	//
	// +optional
	// +kubebuilder:default="2.3"
	// +kubebuilder:validation:Enum="2.3";"3.0";"3.1";"3.2";"3.3";"3.4"
	Version string `json:"version,omitempty"`

	// StorageType defines how to store the boostrap user data for Ignition.
	// This can be used to instruct Ignition from where to fetch the user data to bootstrap an instance.
	//
	// When omitted, the storage option will default to ClusterObjectStore.
	//
	// When set to "ClusterObjectStore", if the capability is available and a Cluster ObjectStore configuration
	// is correctly provided in the Cluster object (under .spec.s3Bucket),
	// an object store will be used to store bootstrap user data.
	//
	// When set to "UnencryptedUserData", EC2 Instance User Data will be used to store the machine bootstrap user data, unencrypted.
	// This option is considered less secure than others as user data may contain sensitive informations (keys, certificates, etc.)
	// and users with ec2:DescribeInstances permission or users running pods
	// that can access the ec2 metadata service have access to this sensitive information.
	// So this is only to be used at ones own risk, and only when other more secure options are not viable.
	//
	// +optional
	// +kubebuilder:default="ClusterObjectStore"
	// +kubebuilder:validation:Enum:="ClusterObjectStore";"UnencryptedUserData"
	StorageType IgnitionStorageTypeOption `json:"storageType,omitempty"`

	// Proxy defines proxy settings for Ignition.
	// Only valid for Ignition versions 3.1 and above.
	// +optional
	Proxy *IgnitionProxy `json:"proxy,omitempty"`

	// TLS defines TLS settings for Ignition.
	// Only valid for Ignition versions 3.1 and above.
	// +optional
	TLS *IgnitionTLS `json:"tls,omitempty"`
}

Ignition defines options related to the bootstrapping systems where Ignition is used. For more information on Ignition configuration, see https://coreos.github.io/butane/specs/

func (*Ignition) DeepCopy

func (in *Ignition) DeepCopy() *Ignition

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

func (*Ignition) DeepCopyInto

func (in *Ignition) DeepCopyInto(out *Ignition)

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

type IgnitionCASource added in v2.4.1

type IgnitionCASource string

IgnitionCASource defines the source of the certificate authority to use for Ignition. +kubebuilder:validation:MaxLength:=65536

type IgnitionNoProxy added in v2.4.1

type IgnitionNoProxy string

IgnitionNoProxy defines the list of domains to not proxy for Ignition. +kubebuilder:validation:MaxLength:=2048

type IgnitionProxy added in v2.4.1

type IgnitionProxy struct {
	// HTTPProxy is the HTTP proxy to use for Ignition.
	// A single URL that specifies the proxy server to use for HTTP and HTTPS requests,
	// unless overridden by the HTTPSProxy or NoProxy options.
	// +optional
	HTTPProxy *string `json:"httpProxy,omitempty"`

	// HTTPSProxy is the HTTPS proxy to use for Ignition.
	// A single URL that specifies the proxy server to use for HTTPS requests,
	// unless overridden by the NoProxy option.
	// +optional
	HTTPSProxy *string `json:"httpsProxy,omitempty"`

	// NoProxy is the list of domains to not proxy for Ignition.
	// Specifies a list of strings to hosts that should be excluded from proxying.
	//
	// Each value is represented by:
	// - An IP address prefix (1.2.3.4)
	// - An IP address prefix in CIDR notation (1.2.3.4/8)
	// - A domain name
	//   - A domain name matches that name and all subdomains
	//   - A domain name with a leading . matches subdomains only
	// - A special DNS label (*), indicates that no proxying should be done
	//
	// An IP address prefix and domain name can also include a literal port number (1.2.3.4:80).
	// +optional
	// +kubebuilder:validation:MaxItems=64
	NoProxy []IgnitionNoProxy `json:"noProxy,omitempty"`
}

IgnitionProxy defines proxy settings for Ignition.

func (*IgnitionProxy) DeepCopy added in v2.4.1

func (in *IgnitionProxy) DeepCopy() *IgnitionProxy

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

func (*IgnitionProxy) DeepCopyInto added in v2.4.1

func (in *IgnitionProxy) DeepCopyInto(out *IgnitionProxy)

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

type IgnitionStorageTypeOption added in v2.4.0

type IgnitionStorageTypeOption string

IgnitionStorageTypeOption defines the different storage types for Ignition.

type IgnitionTLS added in v2.4.1

type IgnitionTLS struct {
	// CASources defines the list of certificate authorities to use for Ignition.
	// The value is the certificate bundle (in PEM format). The bundle can contain multiple concatenated certificates.
	// Supported schemes are http, https, tftp, s3, arn, gs, and `data` (RFC 2397) URL scheme.
	//
	// +optional
	// +kubebuilder:validation:MaxItems=64
	CASources []IgnitionCASource `json:"certificateAuthorities,omitempty"`
}

IgnitionTLS defines TLS settings for Ignition.

func (*IgnitionTLS) DeepCopy added in v2.4.1

func (in *IgnitionTLS) DeepCopy() *IgnitionTLS

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

func (*IgnitionTLS) DeepCopyInto added in v2.4.1

func (in *IgnitionTLS) DeepCopyInto(out *IgnitionTLS)

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

type IngressRule

type IngressRule struct {
	// Description provides extended information about the ingress rule.
	Description string `json:"description"`
	// Protocol is the protocol for the ingress rule. Accepted values are "-1" (all), "4" (IP in IP),"tcp", "udp", "icmp", and "58" (ICMPv6), "50" (ESP).
	// +kubebuilder:validation:Enum="-1";"4";tcp;udp;icmp;"58";"50"
	Protocol SecurityGroupProtocol `json:"protocol"`
	// FromPort is the start of port range.
	FromPort int64 `json:"fromPort"`
	// ToPort is the end of port range.
	ToPort int64 `json:"toPort"`

	// List of CIDR blocks to allow access from. Cannot be specified with SourceSecurityGroupID.
	// +optional
	CidrBlocks []string `json:"cidrBlocks,omitempty"`

	// List of IPv6 CIDR blocks to allow access from. Cannot be specified with SourceSecurityGroupID.
	// +optional
	IPv6CidrBlocks []string `json:"ipv6CidrBlocks,omitempty"`

	// The security group id to allow access from. Cannot be specified with CidrBlocks.
	// +optional
	SourceSecurityGroupIDs []string `json:"sourceSecurityGroupIds,omitempty"`

	// The security group role to allow access from. Cannot be specified with CidrBlocks.
	// The field will be combined with source security group IDs if specified.
	// +optional
	SourceSecurityGroupRoles []SecurityGroupRole `json:"sourceSecurityGroupRoles,omitempty"`

	// NatGatewaysIPsSource use the NAT gateways IPs as the source for the ingress rule.
	// +optional
	NatGatewaysIPsSource bool `json:"natGatewaysIPsSource,omitempty"`
}

IngressRule defines an AWS ingress rule for security groups.

func (*IngressRule) DeepCopy

func (in *IngressRule) DeepCopy() *IngressRule

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

func (*IngressRule) DeepCopyInto

func (in *IngressRule) DeepCopyInto(out *IngressRule)

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

func (*IngressRule) Equals

func (i *IngressRule) Equals(o *IngressRule) bool

Equals returns true if two IngressRule are equal.

func (IngressRule) String

func (i IngressRule) String() string

String returns a string representation of the ingress rule.

type IngressRules

type IngressRules []IngressRule

IngressRules is a slice of AWS ingress rules for security groups.

func (IngressRules) DeepCopy

func (in IngressRules) DeepCopy() IngressRules

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

func (IngressRules) DeepCopyInto

func (in IngressRules) DeepCopyInto(out *IngressRules)

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

func (IngressRules) Difference

func (i IngressRules) Difference(o IngressRules) (out IngressRules)

Difference returns the difference between this slice and the other slice.

type Instance

type Instance struct {
	ID string `json:"id"`

	// The current state of the instance.
	State InstanceState `json:"instanceState,omitempty"`

	// The instance type.
	Type string `json:"type,omitempty"`

	// The ID of the subnet of the instance.
	SubnetID string `json:"subnetId,omitempty"`

	// The ID of the AMI used to launch the instance.
	ImageID string `json:"imageId,omitempty"`

	// The name of the SSH key pair.
	SSHKeyName *string `json:"sshKeyName,omitempty"`

	// SecurityGroupIDs are one or more security group IDs this instance belongs to.
	SecurityGroupIDs []string `json:"securityGroupIds,omitempty"`

	// UserData is the raw data script passed to the instance which is run upon bootstrap.
	// This field must not be base64 encoded and should only be used when running a new instance.
	UserData *string `json:"userData,omitempty"`

	// The name of the IAM instance profile associated with the instance, if applicable.
	IAMProfile string `json:"iamProfile,omitempty"`

	// Addresses contains the AWS instance associated addresses.
	Addresses []clusterv1.MachineAddress `json:"addresses,omitempty"`

	// The private IPv4 address assigned to the instance.
	PrivateIP *string `json:"privateIp,omitempty"`

	// The public IPv4 address assigned to the instance, if applicable.
	PublicIP *string `json:"publicIp,omitempty"`

	// Specifies whether enhanced networking with ENA is enabled.
	ENASupport *bool `json:"enaSupport,omitempty"`

	// Indicates whether the instance is optimized for Amazon EBS I/O.
	EBSOptimized *bool `json:"ebsOptimized,omitempty"`

	// Configuration options for the root storage volume.
	// +optional
	RootVolume *Volume `json:"rootVolume,omitempty"`

	// Configuration options for the non root storage volumes.
	// +optional
	NonRootVolumes []Volume `json:"nonRootVolumes,omitempty"`

	// Specifies ENIs attached to instance
	NetworkInterfaces []string `json:"networkInterfaces,omitempty"`

	// The tags associated with the instance.
	Tags map[string]string `json:"tags,omitempty"`

	// Availability zone of instance
	AvailabilityZone string `json:"availabilityZone,omitempty"`

	// SpotMarketOptions option for configuring instances to be run using AWS Spot instances.
	SpotMarketOptions *SpotMarketOptions `json:"spotMarketOptions,omitempty"`

	// PlacementGroupName specifies the name of the placement group in which to launch the instance.
	// +optional
	PlacementGroupName string `json:"placementGroupName,omitempty"`

	// PlacementGroupPartition is the partition number within the placement group in which to launch the instance.
	// This value is only valid if the placement group, referred in `PlacementGroupName`, was created with
	// strategy set to partition.
	// +kubebuilder:validation:Minimum:=1
	// +kubebuilder:validation:Maximum:=7
	// +optional
	PlacementGroupPartition int64 `json:"placementGroupPartition,omitempty"`

	// Tenancy indicates if instance should run on shared or single-tenant hardware.
	// +optional
	Tenancy string `json:"tenancy,omitempty"`

	// IDs of the instance's volumes
	// +optional
	VolumeIDs []string `json:"volumeIDs,omitempty"`

	// InstanceMetadataOptions is the metadata options for the EC2 instance.
	// +optional
	InstanceMetadataOptions *InstanceMetadataOptions `json:"instanceMetadataOptions,omitempty"`

	// PrivateDNSName is the options for the instance hostname.
	// +optional
	PrivateDNSName *PrivateDNSName `json:"privateDnsName,omitempty"`

	// PublicIPOnLaunch is the option to associate a public IP on instance launch
	// +optional
	PublicIPOnLaunch *bool `json:"publicIPOnLaunch,omitempty"`

	// CapacityReservationID specifies the target Capacity Reservation into which the instance should be launched.
	// +optional
	CapacityReservationID *string `json:"capacityReservationId,omitempty"`
}

Instance describes an AWS instance.

func (*Instance) DeepCopy

func (in *Instance) DeepCopy() *Instance

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

func (*Instance) DeepCopyInto

func (in *Instance) DeepCopyInto(out *Instance)

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

type InstanceMetadataOptions added in v2.1.0

type InstanceMetadataOptions struct {
	// Enables or disables the HTTP metadata endpoint on your instances.
	//
	// If you specify a value of disabled, you cannot access your instance metadata.
	//
	// Default: enabled
	//
	// +kubebuilder:validation:Enum:=enabled;disabled
	// +kubebuilder:default=enabled
	HTTPEndpoint InstanceMetadataState `json:"httpEndpoint,omitempty"`

	// The desired HTTP PUT response hop limit for instance metadata requests. The
	// larger the number, the further instance metadata requests can travel.
	//
	// Default: 1
	//
	// +kubebuilder:validation:Minimum:=1
	// +kubebuilder:validation:Maximum:=64
	// +kubebuilder:default=1
	HTTPPutResponseHopLimit int64 `json:"httpPutResponseHopLimit,omitempty"`

	// The state of token usage for your instance metadata requests.
	//
	// If the state is optional, you can choose to retrieve instance metadata with
	// or without a session token on your request. If you retrieve the IAM role
	// credentials without a token, the version 1.0 role credentials are returned.
	// If you retrieve the IAM role credentials using a valid session token, the
	// version 2.0 role credentials are returned.
	//
	// If the state is required, you must send a session token with any instance
	// metadata retrieval requests. In this state, retrieving the IAM role credentials
	// always returns the version 2.0 credentials; the version 1.0 credentials are
	// not available.
	//
	// Default: optional
	//
	// +kubebuilder:validation:Enum:=optional;required
	// +kubebuilder:default=optional
	HTTPTokens HTTPTokensState `json:"httpTokens,omitempty"`

	// Set to enabled to allow access to instance tags from the instance metadata.
	// Set to disabled to turn off access to instance tags from the instance metadata.
	// For more information, see Work with instance tags using the instance metadata
	// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#work-with-tags-in-IMDS).
	//
	// Default: disabled
	//
	// +kubebuilder:validation:Enum:=enabled;disabled
	// +kubebuilder:default=disabled
	InstanceMetadataTags InstanceMetadataState `json:"instanceMetadataTags,omitempty"`
}

InstanceMetadataOptions describes metadata options for the EC2 instance.

func (*InstanceMetadataOptions) DeepCopy added in v2.1.0

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

func (*InstanceMetadataOptions) DeepCopyInto added in v2.1.0

func (in *InstanceMetadataOptions) DeepCopyInto(out *InstanceMetadataOptions)

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

func (*InstanceMetadataOptions) SetDefaults added in v2.1.0

func (obj *InstanceMetadataOptions) SetDefaults()

SetDefaults sets the default values for the InstanceMetadataOptions.

type InstanceMetadataState added in v2.1.0

type InstanceMetadataState string

InstanceMetadataState describes the state of InstanceMetadataOptions.HttpEndpoint and InstanceMetadataOptions.InstanceMetadataTags

type InstanceState

type InstanceState string

InstanceState describes the state of an AWS instance.

type Listener added in v2.1.0

type Listener struct {
	Protocol    ELBProtocol     `json:"protocol"`
	Port        int64           `json:"port"`
	TargetGroup TargetGroupSpec `json:"targetGroup"`
}

Listener defines an AWS network load balancer listener.

func (*Listener) DeepCopy added in v2.1.0

func (in *Listener) DeepCopy() *Listener

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

func (*Listener) DeepCopyInto added in v2.1.0

func (in *Listener) DeepCopyInto(out *Listener)

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

type LoadBalancer added in v2.1.0

type LoadBalancer struct {
	// ARN of the load balancer. Unlike the ClassicLB, ARN is used mostly
	// to define and get it.
	ARN string `json:"arn,omitempty"`
	// The name of the load balancer. It must be unique within the set of load balancers
	// defined in the region. It also serves as identifier.
	// +optional
	Name string `json:"name,omitempty"`

	// DNSName is the dns name of the load balancer.
	DNSName string `json:"dnsName,omitempty"`

	// Scheme is the load balancer scheme, either internet-facing or private.
	Scheme ELBScheme `json:"scheme,omitempty"`

	// AvailabilityZones is an array of availability zones in the VPC attached to the load balancer.
	AvailabilityZones []string `json:"availabilityZones,omitempty"`

	// SubnetIDs is an array of subnets in the VPC attached to the load balancer.
	SubnetIDs []string `json:"subnetIds,omitempty"`

	// SecurityGroupIDs is an array of security groups assigned to the load balancer.
	SecurityGroupIDs []string `json:"securityGroupIds,omitempty"`

	// ClassicELBListeners is an array of classic elb listeners associated with the load balancer. There must be at least one.
	ClassicELBListeners []ClassicELBListener `json:"listeners,omitempty"`

	// HealthCheck is the classic elb health check associated with the load balancer.
	HealthCheck *ClassicELBHealthCheck `json:"healthChecks,omitempty"`

	// ClassicElbAttributes defines extra attributes associated with the load balancer.
	ClassicElbAttributes ClassicELBAttributes `json:"attributes,omitempty"`

	// Tags is a map of tags associated with the load balancer.
	Tags map[string]string `json:"tags,omitempty"`

	// ELBListeners is an array of listeners associated with the load balancer. There must be at least one.
	ELBListeners []Listener `json:"elbListeners,omitempty"`

	// ELBAttributes defines extra attributes associated with v2 load balancers.
	ELBAttributes map[string]*string `json:"elbAttributes,omitempty"`

	// LoadBalancerType sets the type for a load balancer. The default type is classic.
	// +kubebuilder:validation:Enum:=classic;elb;alb;nlb
	LoadBalancerType LoadBalancerType `json:"loadBalancerType,omitempty"`
}

LoadBalancer defines an AWS load balancer.

func (*LoadBalancer) DeepCopy added in v2.1.0

func (in *LoadBalancer) DeepCopy() *LoadBalancer

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

func (*LoadBalancer) DeepCopyInto added in v2.1.0

func (in *LoadBalancer) DeepCopyInto(out *LoadBalancer)

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

func (*LoadBalancer) IsManaged added in v2.1.0

func (b *LoadBalancer) IsManaged(clusterName string) bool

IsManaged returns true if Classic ELB is managed.

func (*LoadBalancer) IsUnmanaged added in v2.1.0

func (b *LoadBalancer) IsUnmanaged(clusterName string) bool

IsUnmanaged returns true if the Classic ELB is unmanaged.

type LoadBalancerAttribute added in v2.1.0

type LoadBalancerAttribute string

LoadBalancerAttribute defines a set of attributes for a V2 load balancer.

type LoadBalancerType added in v2.1.0

type LoadBalancerType string

LoadBalancerType defines the type of load balancer to use.

type NetworkSpec

type NetworkSpec struct {
	// VPC configuration.
	// +optional
	VPC VPCSpec `json:"vpc,omitempty"`

	// Subnets configuration.
	// +optional
	Subnets Subnets `json:"subnets,omitempty"`

	// CNI configuration
	// +optional
	CNI *CNISpec `json:"cni,omitempty"`

	// SecurityGroupOverrides is an optional set of security groups to use for cluster instances
	// This is optional - if not provided new security groups will be created for the cluster
	// +optional
	SecurityGroupOverrides map[SecurityGroupRole]string `json:"securityGroupOverrides,omitempty"`

	// AdditionalControlPlaneIngressRules is an optional set of ingress rules to add to the control plane
	// +optional
	AdditionalControlPlaneIngressRules []IngressRule `json:"additionalControlPlaneIngressRules,omitempty"`

	// NodePortIngressRuleCidrBlocks is an optional set of CIDR blocks to allow traffic to nodes' NodePort services.
	// If none are specified here, all IPs are allowed to connect.
	// +optional
	NodePortIngressRuleCidrBlocks []string `json:"nodePortIngressRuleCidrBlocks,omitempty"`
}

NetworkSpec encapsulates all things related to AWS network.

func (*NetworkSpec) DeepCopy

func (in *NetworkSpec) DeepCopy() *NetworkSpec

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

func (*NetworkSpec) DeepCopyInto

func (in *NetworkSpec) DeepCopyInto(out *NetworkSpec)

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

type NetworkStatus

type NetworkStatus struct {
	// SecurityGroups is a map from the role/kind of the security group to its unique name, if any.
	SecurityGroups map[SecurityGroupRole]SecurityGroup `json:"securityGroups,omitempty"`

	// APIServerELB is the Kubernetes api server load balancer.
	APIServerELB LoadBalancer `json:"apiServerElb,omitempty"`

	// SecondaryAPIServerELB is the secondary Kubernetes api server load balancer.
	SecondaryAPIServerELB LoadBalancer `json:"secondaryAPIServerELB,omitempty"`

	// NatGatewaysIPs contains the public IPs of the NAT Gateways
	NatGatewaysIPs []string `json:"natGatewaysIPs,omitempty"`
}

NetworkStatus encapsulates AWS networking resources.

func (*NetworkStatus) DeepCopy

func (in *NetworkStatus) DeepCopy() *NetworkStatus

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

func (*NetworkStatus) DeepCopyInto

func (in *NetworkStatus) DeepCopyInto(out *NetworkStatus)

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

type PrivateDNSName added in v2.4.0

type PrivateDNSName struct {
	// EnableResourceNameDNSAAAARecord indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
	// +optional
	EnableResourceNameDNSAAAARecord *bool `json:"enableResourceNameDnsAAAARecord,omitempty"`
	// EnableResourceNameDNSARecord indicates whether to respond to DNS queries for instance hostnames with DNS A records.
	// +optional
	EnableResourceNameDNSARecord *bool `json:"enableResourceNameDnsARecord,omitempty"`
	// The type of hostname to assign to an instance.
	// +optional
	// +kubebuilder:validation:Enum:=ip-name;resource-name
	HostnameType *string `json:"hostnameType,omitempty"`
}

PrivateDNSName is the options for the instance hostname.

func (*PrivateDNSName) DeepCopy added in v2.4.0

func (in *PrivateDNSName) DeepCopy() *PrivateDNSName

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

func (*PrivateDNSName) DeepCopyInto added in v2.4.0

func (in *PrivateDNSName) DeepCopyInto(out *PrivateDNSName)

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

type PublicIpv4PoolFallbackOrder added in v2.5.1

type PublicIpv4PoolFallbackOrder string

PublicIpv4PoolFallbackOrder defines the list of available fallback action when the PublicIpv4Pool is exhausted. 'none' let the controllers return failures when the PublicIpv4Pool is exhausted - no more IPv4 available. 'amazon-pool' let the controllers to skip the PublicIpv4Pool and use the Amazon pool, the default. +kubebuilder:validation:XValidation:rule="self in ['none','amazon-pool']",message="allowed values are 'none' and 'amazon-pool'"

func (PublicIpv4PoolFallbackOrder) Equal added in v2.5.1

Equal compares PublicIpv4PoolFallbackOrder types and return true if input param is equal.

func (PublicIpv4PoolFallbackOrder) String added in v2.5.1

type ResourceLifecycle

type ResourceLifecycle string

ResourceLifecycle configures the lifecycle of a resource.

type RouteTable

type RouteTable struct {
	ID string `json:"id"`
}

RouteTable defines an AWS routing table.

func (*RouteTable) DeepCopy

func (in *RouteTable) DeepCopy() *RouteTable

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

func (*RouteTable) DeepCopyInto

func (in *RouteTable) DeepCopyInto(out *RouteTable)

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

type S3Bucket

type S3Bucket struct {
	// ControlPlaneIAMInstanceProfile is a name of the IAMInstanceProfile, which will be allowed
	// to read control-plane node bootstrap data from S3 Bucket.
	// +optional
	ControlPlaneIAMInstanceProfile string `json:"controlPlaneIAMInstanceProfile,omitempty"`

	// NodesIAMInstanceProfiles is a list of IAM instance profiles, which will be allowed to read
	// worker nodes bootstrap data from S3 Bucket.
	// +optional
	NodesIAMInstanceProfiles []string `json:"nodesIAMInstanceProfiles,omitempty"`

	// PresignedURLDuration defines the duration for which presigned URLs are valid.
	//
	// This is used to generate presigned URLs for S3 Bucket objects, which are used by
	// control-plane and worker nodes to fetch bootstrap data.
	//
	// When enabled, the IAM instance profiles specified are not used.
	// +optional
	PresignedURLDuration *metav1.Duration `json:"presignedURLDuration,omitempty"`

	// Name defines name of S3 Bucket to be created.
	// +kubebuilder:validation:MinLength:=3
	// +kubebuilder:validation:MaxLength:=63
	// +kubebuilder:validation:Pattern=`^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$`
	Name string `json:"name"`

	// BestEffortDeleteObjects defines whether access/permission errors during object deletion should be ignored.
	// +optional
	BestEffortDeleteObjects *bool `json:"bestEffortDeleteObjects,omitempty"`
}

S3Bucket defines a supporting S3 bucket for the cluster, currently can be optionally used for Ignition.

func (*S3Bucket) DeepCopy

func (in *S3Bucket) DeepCopy() *S3Bucket

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

func (*S3Bucket) DeepCopyInto

func (in *S3Bucket) DeepCopyInto(out *S3Bucket)

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

func (*S3Bucket) Validate

func (b *S3Bucket) Validate() []*field.Error

Validate validates S3Bucket fields.

type SecretBackend

type SecretBackend string

SecretBackend defines variants for backend secret storage.

type SecurityGroup

type SecurityGroup struct {
	// ID is a unique identifier.
	ID string `json:"id"`

	// Name is the security group name.
	Name string `json:"name"`

	// IngressRules is the inbound rules associated with the security group.
	// +optional
	IngressRules IngressRules `json:"ingressRule,omitempty"`

	// Tags is a map of tags associated with the security group.
	Tags Tags `json:"tags,omitempty"`
}

SecurityGroup defines an AWS security group.

func (*SecurityGroup) DeepCopy

func (in *SecurityGroup) DeepCopy() *SecurityGroup

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

func (*SecurityGroup) DeepCopyInto

func (in *SecurityGroup) DeepCopyInto(out *SecurityGroup)

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

func (*SecurityGroup) String

func (s *SecurityGroup) String() string

String returns a string representation of the security group.

type SecurityGroupProtocol

type SecurityGroupProtocol string

SecurityGroupProtocol defines the protocol type for a security group rule.

type SecurityGroupRole

type SecurityGroupRole string

SecurityGroupRole defines the unique role of a security group. +kubebuilder:validation:Enum=bastion;node;controlplane;apiserver-lb;lb;node-eks-additional

type SpotMarketOptions

type SpotMarketOptions struct {
	// MaxPrice defines the maximum price the user is willing to pay for Spot VM instances
	// +optional
	// +kubebuilder:validation:pattern="^[0-9]+(\.[0-9]+)?$"
	MaxPrice *string `json:"maxPrice,omitempty"`
}

SpotMarketOptions defines the options available to a user when configuring Machines to run on Spot instances. Most users should provide an empty struct.

func (*SpotMarketOptions) DeepCopy

func (in *SpotMarketOptions) DeepCopy() *SpotMarketOptions

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

func (*SpotMarketOptions) DeepCopyInto

func (in *SpotMarketOptions) DeepCopyInto(out *SpotMarketOptions)

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

type SubnetSchemaType added in v2.6.0

type SubnetSchemaType string

SubnetSchemaType specifies how given network should be divided on subnets in the VPC depending on the number of AZs.

func (*SubnetSchemaType) Name added in v2.6.0

func (s *SubnetSchemaType) Name() string

Name returns subnet schema type name without prefix.

type SubnetSpec

type SubnetSpec struct {
	// ID defines a unique identifier to reference this resource.
	// If you're bringing your subnet, set the AWS subnet-id here, it must start with `subnet-`.
	//
	// When the VPC is managed by CAPA, and you'd like the provider to create a subnet for you,
	// the id can be set to any placeholder value that does not start with `subnet-`;
	// upon creation, the subnet AWS identifier will be populated in the `ResourceID` field and
	// the `id` field is going to be used as the subnet name. If you specify a tag
	// called `Name`, it takes precedence.
	ID string `json:"id"`

	// ResourceID is the subnet identifier from AWS, READ ONLY.
	// This field is populated when the provider manages the subnet.
	// +optional
	ResourceID string `json:"resourceID,omitempty"`

	// CidrBlock is the CIDR block to be used when the provider creates a managed VPC.
	CidrBlock string `json:"cidrBlock,omitempty"`

	// IPv6CidrBlock is the IPv6 CIDR block to be used when the provider creates a managed VPC.
	// A subnet can have an IPv4 and an IPv6 address.
	// IPv6 is only supported in managed clusters, this field cannot be set on AWSCluster object.
	// +optional
	IPv6CidrBlock string `json:"ipv6CidrBlock,omitempty"`

	// AvailabilityZone defines the availability zone to use for this subnet in the cluster's region.
	AvailabilityZone string `json:"availabilityZone,omitempty"`

	// IsPublic defines the subnet as a public subnet. A subnet is public when it is associated with a route table that has a route to an internet gateway.
	// +optional
	IsPublic bool `json:"isPublic"`

	// IsIPv6 defines the subnet as an IPv6 subnet. A subnet is IPv6 when it is associated with a VPC that has IPv6 enabled.
	// IPv6 is only supported in managed clusters, this field cannot be set on AWSCluster object.
	// +optional
	IsIPv6 bool `json:"isIpv6,omitempty"`

	// RouteTableID is the routing table id associated with the subnet.
	// +optional
	RouteTableID *string `json:"routeTableId,omitempty"`

	// NatGatewayID is the NAT gateway id associated with the subnet.
	// Ignored unless the subnet is managed by the provider, in which case this is set on the public subnet where the NAT gateway resides. It is then used to determine routes for private subnets in the same AZ as the public subnet.
	// +optional
	NatGatewayID *string `json:"natGatewayId,omitempty"`

	// Tags is a collection of tags describing the resource.
	Tags Tags `json:"tags,omitempty"`

	// ZoneType defines the type of the zone where the subnet is created.
	//
	// The valid values are availability-zone, local-zone, and wavelength-zone.
	//
	// Subnet with zone type availability-zone (regular) is always selected to create cluster
	// resources, like Load Balancers, NAT Gateways, Contol Plane nodes, etc.
	//
	// Subnet with zone type local-zone or wavelength-zone is not eligible to automatically create
	// regular cluster resources.
	//
	// The public subnet in availability-zone or local-zone is associated with regular public
	// route table with default route entry to a Internet Gateway.
	//
	// The public subnet in wavelength-zone is associated with a carrier public
	// route table with default route entry to a Carrier Gateway.
	//
	// The private subnet in the availability-zone is associated with a private route table with
	// the default route entry to a NAT Gateway created in that zone.
	//
	// The private subnet in the local-zone or wavelength-zone is associated with a private route table with
	// the default route entry re-using the NAT Gateway in the Region (preferred from the
	// parent zone, the zone type availability-zone in the region, or first table available).
	//
	// +kubebuilder:validation:Enum=availability-zone;local-zone;wavelength-zone
	// +optional
	ZoneType *ZoneType `json:"zoneType,omitempty"`

	// ParentZoneName is the zone name where the current subnet's zone is tied when
	// the zone is a Local Zone.
	//
	// The subnets in Local Zone or Wavelength Zone locations consume the ParentZoneName
	// to select the correct private route table to egress traffic to the internet.
	//
	// +optional
	ParentZoneName *string `json:"parentZoneName,omitempty"`
}

SubnetSpec configures an AWS Subnet.

func (*SubnetSpec) DeepCopy

func (in *SubnetSpec) DeepCopy() *SubnetSpec

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

func (*SubnetSpec) DeepCopyInto

func (in *SubnetSpec) DeepCopyInto(out *SubnetSpec)

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

func (*SubnetSpec) GetResourceID added in v2.3.0

func (s *SubnetSpec) GetResourceID() string

GetResourceID returns the identifier for this subnet, if the subnet was not created or reconciled, it returns the subnet ID.

func (*SubnetSpec) IsEdge added in v2.5.0

func (s *SubnetSpec) IsEdge() bool

IsEdge returns the true when the subnet is created in the edge zone, Local Zones.

func (*SubnetSpec) IsEdgeWavelength added in v2.5.0

func (s *SubnetSpec) IsEdgeWavelength() bool

IsEdgeWavelength returns true only when the subnet is created in Wavelength Zone.

func (*SubnetSpec) SetZoneInfo added in v2.5.0

func (s *SubnetSpec) SetZoneInfo(zones []*ec2.AvailabilityZone) error

SetZoneInfo updates the subnets with zone information.

func (*SubnetSpec) String

func (s *SubnetSpec) String() string

String returns a string representation of the subnet.

type Subnets

type Subnets []SubnetSpec

Subnets is a slice of Subnet. +listType=map +listMapKey=id

func (Subnets) DeepCopy

func (in Subnets) DeepCopy() Subnets

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

func (Subnets) DeepCopyInto

func (in Subnets) DeepCopyInto(out *Subnets)

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

func (Subnets) FilterByZone

func (s Subnets) FilterByZone(zone string) (res Subnets)

FilterByZone returns a slice containing all subnets that live in the availability zone specified.

func (Subnets) FilterNonCni added in v2.5.1

func (s Subnets) FilterNonCni() (res Subnets)

FilterNonCni returns the subnets that are NOT intended for usage with the CNI pod network (i.e. do NOT have the `sigs.k8s.io/cluster-api-provider-aws/association=secondary` tag).

func (Subnets) FilterPrivate

func (s Subnets) FilterPrivate() (res Subnets)

FilterPrivate returns a slice containing all subnets marked as private.

func (Subnets) FilterPublic

func (s Subnets) FilterPublic() (res Subnets)

FilterPublic returns a slice containing all subnets marked as public.

func (Subnets) FindByID

func (s Subnets) FindByID(id string) *SubnetSpec

FindByID returns a single subnet matching the given id or nil.

The returned pointer can be used to write back into the original slice.

func (Subnets) FindEqual

func (s Subnets) FindEqual(spec *SubnetSpec) *SubnetSpec

FindEqual returns a subnet spec that is equal to the one passed in. Two subnets are defined equal to each other if their id is equal or if they are in the same vpc and the cidr block is the same.

The returned pointer can be used to write back into the original slice.

func (Subnets) GetUniqueZones

func (s Subnets) GetUniqueZones() []string

GetUniqueZones returns a slice containing the unique zones of the subnets.

func (Subnets) HasPublicSubnetWavelength added in v2.5.0

func (s Subnets) HasPublicSubnetWavelength() bool

HasPublicSubnetWavelength returns true when there are subnets in Wavelength zone.

func (Subnets) IDs

func (s Subnets) IDs() []string

IDs returns a slice of the subnet ids.

func (Subnets) IDsWithEdge added in v2.5.0

func (s Subnets) IDsWithEdge() []string

IDsWithEdge returns a slice of the subnet ids.

func (Subnets) SetZoneInfo added in v2.5.0

func (s Subnets) SetZoneInfo(zones []*ec2.AvailabilityZone) error

SetZoneInfo updates the subnets with zone information.

func (Subnets) ToMap

func (s Subnets) ToMap() map[string]*SubnetSpec

ToMap returns a map from id to subnet.

type Tags

type Tags map[string]string

Tags defines a map of tags.

func Build

func Build(params BuildParams) Tags

Build builds tags including the cluster tag and returns them in map form.

func (Tags) DeepCopy

func (in Tags) DeepCopy() Tags

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

func (Tags) DeepCopyInto

func (in Tags) DeepCopyInto(out *Tags)

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

func (Tags) Difference

func (t Tags) Difference(other Tags) Tags

Difference returns the difference between this map of tags and the other map of tags. Items are considered equals if key and value are equals.

func (Tags) GetRole

func (t Tags) GetRole() string

GetRole returns the Cluster API role for the tagged resource.

func (Tags) HasAWSCloudProviderOwned

func (t Tags) HasAWSCloudProviderOwned(cluster string) bool

HasAWSCloudProviderOwned returns true if the tags contains a tag that marks the resource as owned by the cluster from the perspective of the in-tree cloud provider.

func (Tags) HasOwned

func (t Tags) HasOwned(cluster string) bool

HasOwned returns true if the tags contains a tag that marks the resource as owned by the cluster from the perspective of this management tooling.

func (Tags) Merge

func (t Tags) Merge(other Tags)

Merge merges in tags from other. If a tag already exists, it is replaced by the tag in other.

func (Tags) Validate

func (t Tags) Validate() []*field.Error

Validate checks if tags are valid for the AWS API/Resources. Keys must have at least 1 and max 128 characters. Values must be max 256 characters long. Keys and Values can only have alphabets, numbers, spaces and _ . : / = + - @ as characters. Tag's key cannot have prefix "aws:". Max count of User tags for a specific resource can be 50.

type TargetGroupAttribute added in v2.1.0

type TargetGroupAttribute string

TargetGroupAttribute defines attribute key values for V2 Load Balancer Attributes.

type TargetGroupHealthCheck added in v2.1.0

type TargetGroupHealthCheck struct {
	Protocol                *string `json:"protocol,omitempty"`
	Path                    *string `json:"path,omitempty"`
	Port                    *string `json:"port,omitempty"`
	IntervalSeconds         *int64  `json:"intervalSeconds,omitempty"`
	TimeoutSeconds          *int64  `json:"timeoutSeconds,omitempty"`
	ThresholdCount          *int64  `json:"thresholdCount,omitempty"`
	UnhealthyThresholdCount *int64  `json:"unhealthyThresholdCount,omitempty"`
}

TargetGroupHealthCheck defines health check settings for the target group.

func (*TargetGroupHealthCheck) DeepCopy added in v2.1.0

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

func (*TargetGroupHealthCheck) DeepCopyInto added in v2.1.0

func (in *TargetGroupHealthCheck) DeepCopyInto(out *TargetGroupHealthCheck)

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

type TargetGroupHealthCheckAPISpec added in v2.5.0

type TargetGroupHealthCheckAPISpec struct {
	// The approximate amount of time, in seconds, between health checks of an individual
	// target.
	// +kubebuilder:validation:Minimum=5
	// +kubebuilder:validation:Maximum=300
	// +optional
	IntervalSeconds *int64 `json:"intervalSeconds,omitempty"`

	// The amount of time, in seconds, during which no response from a target means
	// a failed health check.
	// +kubebuilder:validation:Minimum=2
	// +kubebuilder:validation:Maximum=120
	// +optional
	TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty"`

	// The number of consecutive health check successes required before considering
	// a target healthy.
	// +kubebuilder:validation:Minimum=2
	// +kubebuilder:validation:Maximum=10
	// +optional
	ThresholdCount *int64 `json:"thresholdCount,omitempty"`

	// The number of consecutive health check failures required before considering
	// a target unhealthy.
	// +kubebuilder:validation:Minimum=2
	// +kubebuilder:validation:Maximum=10
	// +optional
	UnhealthyThresholdCount *int64 `json:"unhealthyThresholdCount,omitempty"`
}

TargetGroupHealthCheckAPISpec defines the optional health check settings for the API target group.

func (*TargetGroupHealthCheckAPISpec) DeepCopy added in v2.5.0

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

func (*TargetGroupHealthCheckAPISpec) DeepCopyInto added in v2.5.0

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

type TargetGroupHealthCheckAdditionalSpec added in v2.5.0

type TargetGroupHealthCheckAdditionalSpec struct {
	// The protocol to use to health check connect with the target. When not specified the Protocol
	// will be the same of the listener.
	// +kubebuilder:validation:Enum=TCP;HTTP;HTTPS
	// +optional
	Protocol *string `json:"protocol,omitempty"`

	// The port the load balancer uses when performing health checks for additional target groups. When
	// not specified this value will be set for the same of listener port.
	// +optional
	Port *string `json:"port,omitempty"`

	// The destination for health checks on the targets when using the protocol HTTP or HTTPS,
	// otherwise the path will be ignored.
	// +optional
	Path *string `json:"path,omitempty"`
	// The approximate amount of time, in seconds, between health checks of an individual
	// target.
	// +kubebuilder:validation:Minimum=5
	// +kubebuilder:validation:Maximum=300
	// +optional
	IntervalSeconds *int64 `json:"intervalSeconds,omitempty"`

	// The amount of time, in seconds, during which no response from a target means
	// a failed health check.
	// +kubebuilder:validation:Minimum=2
	// +kubebuilder:validation:Maximum=120
	// +optional
	TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty"`

	// The number of consecutive health check successes required before considering
	// a target healthy.
	// +kubebuilder:validation:Minimum=2
	// +kubebuilder:validation:Maximum=10
	// +optional
	ThresholdCount *int64 `json:"thresholdCount,omitempty"`

	// The number of consecutive health check failures required before considering
	// a target unhealthy.
	// +kubebuilder:validation:Minimum=2
	// +kubebuilder:validation:Maximum=10
	// +optional
	UnhealthyThresholdCount *int64 `json:"unhealthyThresholdCount,omitempty"`
}

TargetGroupHealthCheckAdditionalSpec defines the optional health check settings for the additional target groups.

func (*TargetGroupHealthCheckAdditionalSpec) DeepCopy added in v2.5.0

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

func (*TargetGroupHealthCheckAdditionalSpec) DeepCopyInto added in v2.5.0

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

type TargetGroupSpec added in v2.1.0

type TargetGroupSpec struct {
	// Name of the TargetGroup. Must be unique over the same group of listeners.
	// +kubebuilder:validation:MaxLength=32
	Name string `json:"name"`
	// Port is the exposed port
	Port int64 `json:"port"`
	// +kubebuilder:validation:Enum=tcp;tls;udp;TCP;TLS;UDP
	Protocol ELBProtocol `json:"protocol"`
	VpcID    string      `json:"vpcId"`
	// HealthCheck is the elb health check associated with the load balancer.
	HealthCheck *TargetGroupHealthCheck `json:"targetGroupHealthCheck,omitempty"`
}

TargetGroupSpec specifies target group settings for a given listener. This is created first, and the ARN is then passed to the listener.

func (*TargetGroupSpec) DeepCopy added in v2.1.0

func (in *TargetGroupSpec) DeepCopy() *TargetGroupSpec

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

func (*TargetGroupSpec) DeepCopyInto added in v2.1.0

func (in *TargetGroupSpec) DeepCopyInto(out *TargetGroupSpec)

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

type VPCSpec

type VPCSpec struct {
	// ID is the vpc-id of the VPC this provider should use to create resources.
	ID string `json:"id,omitempty"`

	// CidrBlock is the CIDR block to be used when the provider creates a managed VPC.
	// Defaults to 10.0.0.0/16.
	// Mutually exclusive with IPAMPool.
	CidrBlock string `json:"cidrBlock,omitempty"`

	// SecondaryCidrBlocks are additional CIDR blocks to be associated when the provider creates a managed VPC.
	// Defaults to none. Mutually exclusive with IPAMPool. This makes sense to use if, for example, you want to use
	// a separate IP range for pods (e.g. Cilium ENI mode).
	// +optional
	SecondaryCidrBlocks []VpcCidrBlock `json:"secondaryCidrBlocks,omitempty"`

	// IPAMPool defines the IPAMv4 pool to be used for VPC.
	// Mutually exclusive with CidrBlock.
	IPAMPool *IPAMPool `json:"ipamPool,omitempty"`

	// IPv6 contains ipv6 specific settings for the network. Supported only in managed clusters.
	// This field cannot be set on AWSCluster object.
	// +optional
	IPv6 *IPv6 `json:"ipv6,omitempty"`

	// InternetGatewayID is the id of the internet gateway associated with the VPC.
	// +optional
	InternetGatewayID *string `json:"internetGatewayId,omitempty"`

	// CarrierGatewayID is the id of the internet gateway associated with the VPC,
	// for carrier network (Wavelength Zones).
	// +optional
	// +kubebuilder:validation:XValidation:rule="self.startsWith('cagw-')",message="Carrier Gateway ID must start with 'cagw-'"
	CarrierGatewayID *string `json:"carrierGatewayId,omitempty"`

	// Tags is a collection of tags describing the resource.
	Tags Tags `json:"tags,omitempty"`

	// AvailabilityZoneUsageLimit specifies the maximum number of availability zones (AZ) that
	// should be used in a region when automatically creating subnets. If a region has more
	// than this number of AZs then this number of AZs will be picked randomly when creating
	// default subnets. Defaults to 3
	// +kubebuilder:default=3
	// +kubebuilder:validation:Minimum=1
	AvailabilityZoneUsageLimit *int `json:"availabilityZoneUsageLimit,omitempty"`

	// AvailabilityZoneSelection specifies how AZs should be selected if there are more AZs
	// in a region than specified by AvailabilityZoneUsageLimit. There are 2 selection schemes:
	// Ordered - selects based on alphabetical order
	// Random - selects AZs randomly in a region
	// Defaults to Ordered
	// +kubebuilder:default=Ordered
	// +kubebuilder:validation:Enum=Ordered;Random
	AvailabilityZoneSelection *AZSelectionScheme `json:"availabilityZoneSelection,omitempty"`

	// EmptyRoutesDefaultVPCSecurityGroup specifies whether the default VPC security group ingress
	// and egress rules should be removed.
	//
	// By default, when creating a VPC, AWS creates a security group called `default` with ingress and egress
	// rules that allow traffic from anywhere. The group could be used as a potential surface attack and
	// it's generally suggested that the group rules are removed or modified appropriately.
	//
	// NOTE: This only applies when the VPC is managed by the Cluster API AWS controller.
	//
	// +optional
	EmptyRoutesDefaultVPCSecurityGroup bool `json:"emptyRoutesDefaultVPCSecurityGroup,omitempty"`

	// PrivateDNSHostnameTypeOnLaunch is the type of hostname to assign to instances in the subnet at launch.
	// For IPv4-only and dual-stack (IPv4 and IPv6) subnets, an instance DNS name can be based on the instance IPv4 address (ip-name)
	// or the instance ID (resource-name). For IPv6 only subnets, an instance DNS name must be based on the instance ID (resource-name).
	// +optional
	// +kubebuilder:validation:Enum:=ip-name;resource-name
	PrivateDNSHostnameTypeOnLaunch *string `json:"privateDnsHostnameTypeOnLaunch,omitempty"`

	// ElasticIPPool contains specific configuration to allocate Public IPv4 address (Elastic IP) from user-defined pool
	// brought to AWS for core infrastructure resources, like NAT Gateways and Public Network Load Balancers for
	// the API Server.
	// +optional
	ElasticIPPool *ElasticIPPool `json:"elasticIpPool,omitempty"`

	// SubnetSchema specifies how CidrBlock should be divided on subnets in the VPC depending on the number of AZs.
	// PreferPrivate - one private subnet for each AZ plus one other subnet that will be further sub-divided for the public subnets.
	// PreferPublic - have the reverse logic of PreferPrivate, one public subnet for each AZ plus one other subnet
	// that will be further sub-divided for the private subnets.
	// Defaults to PreferPrivate
	// +optional
	// +kubebuilder:default=PreferPrivate
	// +kubebuilder:validation:Enum=PreferPrivate;PreferPublic
	SubnetSchema *SubnetSchemaType `json:"subnetSchema,omitempty"`
}

VPCSpec configures an AWS VPC.

func (*VPCSpec) DeepCopy

func (in *VPCSpec) DeepCopy() *VPCSpec

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

func (*VPCSpec) DeepCopyInto

func (in *VPCSpec) DeepCopyInto(out *VPCSpec)

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

func (*VPCSpec) GetElasticIPPool added in v2.5.1

func (v *VPCSpec) GetElasticIPPool() *ElasticIPPool

GetElasticIPPool returns the custom Elastic IP Pool configuration when present.

func (*VPCSpec) GetPublicIpv4Pool added in v2.5.1

func (v *VPCSpec) GetPublicIpv4Pool() *string

GetPublicIpv4Pool returns the custom public IPv4 pool brought to AWS when present.

func (*VPCSpec) IsIPv6Enabled

func (v *VPCSpec) IsIPv6Enabled() bool

IsIPv6Enabled returns true if the IPv6 block is defined on the network spec.

func (*VPCSpec) IsManaged

func (v *VPCSpec) IsManaged(clusterName string) bool

IsManaged returns true if VPC is managed.

func (*VPCSpec) IsUnmanaged

func (v *VPCSpec) IsUnmanaged(clusterName string) bool

IsUnmanaged returns true if the VPC is unmanaged.

func (*VPCSpec) String

func (v *VPCSpec) String() string

String returns a string representation of the VPC.

type Volume

type Volume struct {
	// Device name
	// +optional
	DeviceName string `json:"deviceName,omitempty"`

	// Size specifies size (in Gi) of the storage device.
	// Must be greater than the image snapshot size or 8 (whichever is greater).
	// +kubebuilder:validation:Minimum=8
	Size int64 `json:"size"`

	// Type is the type of the volume (e.g. gp2, io1, etc...).
	// +optional
	Type VolumeType `json:"type,omitempty"`

	// IOPS is the number of IOPS requested for the disk. Not applicable to all types.
	// +optional
	IOPS int64 `json:"iops,omitempty"`

	// Throughput to provision in MiB/s supported for the volume type. Not applicable to all types.
	// +optional
	Throughput *int64 `json:"throughput,omitempty"`

	// Encrypted is whether the volume should be encrypted or not.
	// +optional
	Encrypted *bool `json:"encrypted,omitempty"`

	// EncryptionKey is the KMS key to use to encrypt the volume. Can be either a KMS key ID or ARN.
	// If Encrypted is set and this is omitted, the default AWS key will be used.
	// The key must already exist and be accessible by the controller.
	// +optional
	EncryptionKey string `json:"encryptionKey,omitempty"`
}

Volume encapsulates the configuration options for the storage device.

func (*Volume) DeepCopy

func (in *Volume) DeepCopy() *Volume

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

func (*Volume) DeepCopyInto

func (in *Volume) DeepCopyInto(out *Volume)

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

type VolumeType

type VolumeType string

VolumeType describes the EBS volume type. See: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volume-types.html

type VpcCidrBlock added in v2.7.0

type VpcCidrBlock struct {
	// IPv4CidrBlock is the IPv4 CIDR block to associate with the managed VPC.
	// +kubebuilder:validation:MinLength=1
	IPv4CidrBlock string `json:"ipv4CidrBlock"`
}

VpcCidrBlock defines the CIDR block and settings to associate with the managed VPC. Currently, only IPv4 is supported.

func (*VpcCidrBlock) DeepCopy added in v2.7.0

func (in *VpcCidrBlock) DeepCopy() *VpcCidrBlock

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

func (*VpcCidrBlock) DeepCopyInto added in v2.7.0

func (in *VpcCidrBlock) DeepCopyInto(out *VpcCidrBlock)

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

type ZoneType added in v2.5.0

type ZoneType string

ZoneType defines listener AWS Availability Zone type.

func (ZoneType) Equal added in v2.5.0

func (z ZoneType) Equal(other ZoneType) bool

Equal compares two zone types.

func (ZoneType) String added in v2.5.0

func (z ZoneType) String() string

String returns the string representation for the zone type.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL