v1alpha2

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Copyright 2019 The Kubernetes Authors.

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

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

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

+k8s:conversion-gen=sigs.k8s.io/cluster-api-provider-aws/api/v1alpha3

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

Index

Constants

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

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

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

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "infrastructure.cluster.x-k8s.io", Version: "v1alpha2"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	// ClassicELBSchemeInternetFacing defines an internet-facing, publicly
	// accessible AWS Classic ELB scheme
	ClassicELBSchemeInternetFacing = ClassicELBScheme("Internet-facing")

	// ClassicELBSchemeInternal defines an internal-only facing
	// load balancer internal to an ELB.
	ClassicELBSchemeInternal = ClassicELBScheme("internal")
)
View Source
var (
	// ClassicELBProtocolTCP defines the ELB API string representing the TCP protocol
	ClassicELBProtocolTCP = ClassicELBProtocol("TCP")

	// ClassicELBProtocolSSL defines the ELB API string representing the TLS protocol
	ClassicELBProtocolSSL = ClassicELBProtocol("SSL")

	// ClassicELBProtocolHTTP defines the ELB API string representing the HTTP protocol at L7
	ClassicELBProtocolHTTP = ClassicELBProtocol("HTTP")

	// ClassicELBProtocolHTTPS defines the ELB API string representing the HTTP protocol at L7
	ClassicELBProtocolHTTPS = ClassicELBProtocol("HTTPS")
)
View Source
var (
	// SecurityGroupBastion defines an SSH bastion role
	SecurityGroupBastion = SecurityGroupRole("bastion")

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

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

	// 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")
)
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 pending 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")
)

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 Convert_v1alpha2_AWSClusterList_To_v1alpha3_AWSClusterList added in v0.5.0

func Convert_v1alpha2_AWSClusterList_To_v1alpha3_AWSClusterList(in *AWSClusterList, out *v1alpha3.AWSClusterList, s conversion.Scope) error

Convert_v1alpha2_AWSClusterList_To_v1alpha3_AWSClusterList is an autogenerated conversion function.

func Convert_v1alpha2_AWSClusterSpec_To_v1alpha3_AWSClusterSpec added in v0.5.0

func Convert_v1alpha2_AWSClusterSpec_To_v1alpha3_AWSClusterSpec(in *AWSClusterSpec, out *infrav1alpha3.AWSClusterSpec, s apiconversion.Scope) error

Convert_v1alpha2_AWSClusterSpec_To_v1alpha3_AWSClusterSpec.

func Convert_v1alpha2_AWSClusterStatus_To_v1alpha3_AWSClusterStatus added in v0.5.0

func Convert_v1alpha2_AWSClusterStatus_To_v1alpha3_AWSClusterStatus(in *AWSClusterStatus, out *v1alpha3.AWSClusterStatus, s apiconversion.Scope) error

Convert_v1alpha2_AWSClusterStatus_To_v1alpha3_AWSClusterStatus converts AWSCluster.Status from v1alpha2 to v1alpha3.

func Convert_v1alpha2_AWSCluster_To_v1alpha3_AWSCluster added in v0.5.0

func Convert_v1alpha2_AWSCluster_To_v1alpha3_AWSCluster(in *AWSCluster, out *v1alpha3.AWSCluster, s conversion.Scope) error

Convert_v1alpha2_AWSCluster_To_v1alpha3_AWSCluster is an autogenerated conversion function.

func Convert_v1alpha2_AWSLoadBalancerSpec_To_v1alpha3_AWSLoadBalancerSpec added in v0.5.0

func Convert_v1alpha2_AWSLoadBalancerSpec_To_v1alpha3_AWSLoadBalancerSpec(in *AWSLoadBalancerSpec, out *v1alpha3.AWSLoadBalancerSpec, s conversion.Scope) error

Convert_v1alpha2_AWSLoadBalancerSpec_To_v1alpha3_AWSLoadBalancerSpec is an autogenerated conversion function.

func Convert_v1alpha2_AWSMachineList_To_v1alpha3_AWSMachineList added in v0.5.0

func Convert_v1alpha2_AWSMachineList_To_v1alpha3_AWSMachineList(in *AWSMachineList, out *v1alpha3.AWSMachineList, s conversion.Scope) error

Convert_v1alpha2_AWSMachineList_To_v1alpha3_AWSMachineList is an autogenerated conversion function.

func Convert_v1alpha2_AWSMachineSpec_To_v1alpha3_AWSMachineSpec added in v0.5.0

func Convert_v1alpha2_AWSMachineSpec_To_v1alpha3_AWSMachineSpec(in *AWSMachineSpec, out *infrav1alpha3.AWSMachineSpec, s apiconversion.Scope) error

Convert_v1alpha2_AWSMachineSpec_To_v1alpha3_AWSMachineSpec converts this AWSMachineSpec to the Hub version (v1alpha3). Requires manual conversion as infrav1alpha2.AWSMachineSpec.RootDeviceSize does not exist in AWSMachineSpec.

func Convert_v1alpha2_AWSMachineStatus_To_v1alpha3_AWSMachineStatus added in v0.5.0

func Convert_v1alpha2_AWSMachineStatus_To_v1alpha3_AWSMachineStatus(in *AWSMachineStatus, out *infrav1alpha3.AWSMachineStatus, s apiconversion.Scope) error

Convert_v1alpha2_AWSMachineStatus_To_v1alpha3_AWSMachineStatus converts this AWSMachineStatus to the Hub version (v1alpha3).

func Convert_v1alpha2_AWSMachineTemplateList_To_v1alpha3_AWSMachineTemplateList added in v0.5.0

func Convert_v1alpha2_AWSMachineTemplateList_To_v1alpha3_AWSMachineTemplateList(in *AWSMachineTemplateList, out *v1alpha3.AWSMachineTemplateList, s conversion.Scope) error

Convert_v1alpha2_AWSMachineTemplateList_To_v1alpha3_AWSMachineTemplateList is an autogenerated conversion function.

func Convert_v1alpha2_AWSMachineTemplateResource_To_v1alpha3_AWSMachineTemplateResource added in v0.5.0

func Convert_v1alpha2_AWSMachineTemplateResource_To_v1alpha3_AWSMachineTemplateResource(in *AWSMachineTemplateResource, out *v1alpha3.AWSMachineTemplateResource, s conversion.Scope) error

Convert_v1alpha2_AWSMachineTemplateResource_To_v1alpha3_AWSMachineTemplateResource is an autogenerated conversion function.

func Convert_v1alpha2_AWSMachineTemplateSpec_To_v1alpha3_AWSMachineTemplateSpec added in v0.5.0

func Convert_v1alpha2_AWSMachineTemplateSpec_To_v1alpha3_AWSMachineTemplateSpec(in *AWSMachineTemplateSpec, out *v1alpha3.AWSMachineTemplateSpec, s conversion.Scope) error

Convert_v1alpha2_AWSMachineTemplateSpec_To_v1alpha3_AWSMachineTemplateSpec is an autogenerated conversion function.

func Convert_v1alpha2_AWSMachineTemplate_To_v1alpha3_AWSMachineTemplate added in v0.5.0

func Convert_v1alpha2_AWSMachineTemplate_To_v1alpha3_AWSMachineTemplate(in *AWSMachineTemplate, out *v1alpha3.AWSMachineTemplate, s conversion.Scope) error

Convert_v1alpha2_AWSMachineTemplate_To_v1alpha3_AWSMachineTemplate is an autogenerated conversion function.

func Convert_v1alpha2_AWSMachine_To_v1alpha3_AWSMachine added in v0.5.0

func Convert_v1alpha2_AWSMachine_To_v1alpha3_AWSMachine(in *AWSMachine, out *v1alpha3.AWSMachine, s conversion.Scope) error

Convert_v1alpha2_AWSMachine_To_v1alpha3_AWSMachine is an autogenerated conversion function.

func Convert_v1alpha2_AWSResourceReference_To_v1alpha3_AWSResourceReference added in v0.5.0

func Convert_v1alpha2_AWSResourceReference_To_v1alpha3_AWSResourceReference(in *AWSResourceReference, out *v1alpha3.AWSResourceReference, s conversion.Scope) error

Convert_v1alpha2_AWSResourceReference_To_v1alpha3_AWSResourceReference is an autogenerated conversion function.

func Convert_v1alpha2_BuildParams_To_v1alpha3_BuildParams added in v0.5.0

func Convert_v1alpha2_BuildParams_To_v1alpha3_BuildParams(in *BuildParams, out *v1alpha3.BuildParams, s conversion.Scope) error

Convert_v1alpha2_BuildParams_To_v1alpha3_BuildParams is an autogenerated conversion function.

func Convert_v1alpha2_ClassicELBAttributes_To_v1alpha3_ClassicELBAttributes added in v0.5.0

func Convert_v1alpha2_ClassicELBAttributes_To_v1alpha3_ClassicELBAttributes(in *ClassicELBAttributes, out *v1alpha3.ClassicELBAttributes, s conversion.Scope) error

Convert_v1alpha2_ClassicELBAttributes_To_v1alpha3_ClassicELBAttributes is an autogenerated conversion function.

func Convert_v1alpha2_ClassicELBHealthCheck_To_v1alpha3_ClassicELBHealthCheck added in v0.5.0

func Convert_v1alpha2_ClassicELBHealthCheck_To_v1alpha3_ClassicELBHealthCheck(in *ClassicELBHealthCheck, out *v1alpha3.ClassicELBHealthCheck, s conversion.Scope) error

Convert_v1alpha2_ClassicELBHealthCheck_To_v1alpha3_ClassicELBHealthCheck is an autogenerated conversion function.

func Convert_v1alpha2_ClassicELBListener_To_v1alpha3_ClassicELBListener added in v0.5.0

func Convert_v1alpha2_ClassicELBListener_To_v1alpha3_ClassicELBListener(in *ClassicELBListener, out *v1alpha3.ClassicELBListener, s conversion.Scope) error

Convert_v1alpha2_ClassicELBListener_To_v1alpha3_ClassicELBListener is an autogenerated conversion function.

func Convert_v1alpha2_ClassicELB_To_v1alpha3_ClassicELB added in v0.5.0

func Convert_v1alpha2_ClassicELB_To_v1alpha3_ClassicELB(in *ClassicELB, out *v1alpha3.ClassicELB, s conversion.Scope) error

Convert_v1alpha2_ClassicELB_To_v1alpha3_ClassicELB is an autogenerated conversion function.

func Convert_v1alpha2_CloudInit_To_v1alpha3_CloudInit added in v0.5.0

func Convert_v1alpha2_CloudInit_To_v1alpha3_CloudInit(in *CloudInit, out *infrav1alpha3.CloudInit, s apiconversion.Scope) error

func Convert_v1alpha2_Filter_To_v1alpha3_Filter added in v0.5.0

func Convert_v1alpha2_Filter_To_v1alpha3_Filter(in *Filter, out *v1alpha3.Filter, s conversion.Scope) error

Convert_v1alpha2_Filter_To_v1alpha3_Filter is an autogenerated conversion function.

func Convert_v1alpha2_IngressRule_To_v1alpha3_IngressRule added in v0.5.0

func Convert_v1alpha2_IngressRule_To_v1alpha3_IngressRule(in *IngressRule, out *v1alpha3.IngressRule, s conversion.Scope) error

Convert_v1alpha2_IngressRule_To_v1alpha3_IngressRule is an autogenerated conversion function.

func Convert_v1alpha2_Instance_To_v1alpha3_Instance added in v0.5.0

func Convert_v1alpha2_Instance_To_v1alpha3_Instance(in *Instance, out *infrav1alpha3.Instance, s apiconversion.Scope) error

Convert_v1alpha2_Instance_To_v1alpha3_Instance converts this Instance to the Hub version (v1alpha3).

func Convert_v1alpha2_NetworkSpec_To_v1alpha3_NetworkSpec added in v0.5.0

func Convert_v1alpha2_NetworkSpec_To_v1alpha3_NetworkSpec(in *NetworkSpec, out *v1alpha3.NetworkSpec, s conversion.Scope) error

Convert_v1alpha2_NetworkSpec_To_v1alpha3_NetworkSpec is an autogenerated conversion function.

func Convert_v1alpha2_Network_To_v1alpha3_Network added in v0.5.0

func Convert_v1alpha2_Network_To_v1alpha3_Network(in *Network, out *v1alpha3.Network, s conversion.Scope) error

Convert_v1alpha2_Network_To_v1alpha3_Network is an autogenerated conversion function.

func Convert_v1alpha2_RouteTable_To_v1alpha3_RouteTable added in v0.5.0

func Convert_v1alpha2_RouteTable_To_v1alpha3_RouteTable(in *RouteTable, out *v1alpha3.RouteTable, s conversion.Scope) error

Convert_v1alpha2_RouteTable_To_v1alpha3_RouteTable is an autogenerated conversion function.

func Convert_v1alpha2_SecurityGroup_To_v1alpha3_SecurityGroup added in v0.5.0

func Convert_v1alpha2_SecurityGroup_To_v1alpha3_SecurityGroup(in *SecurityGroup, out *v1alpha3.SecurityGroup, s conversion.Scope) error

Convert_v1alpha2_SecurityGroup_To_v1alpha3_SecurityGroup is an autogenerated conversion function.

func Convert_v1alpha2_SubnetSpec_To_v1alpha3_SubnetSpec added in v0.5.0

func Convert_v1alpha2_SubnetSpec_To_v1alpha3_SubnetSpec(in *SubnetSpec, out *v1alpha3.SubnetSpec, s conversion.Scope) error

Convert_v1alpha2_SubnetSpec_To_v1alpha3_SubnetSpec is an autogenerated conversion function.

func Convert_v1alpha2_VPCSpec_To_v1alpha3_VPCSpec added in v0.5.0

func Convert_v1alpha2_VPCSpec_To_v1alpha3_VPCSpec(in *VPCSpec, out *v1alpha3.VPCSpec, s conversion.Scope) error

Convert_v1alpha2_VPCSpec_To_v1alpha3_VPCSpec is an autogenerated conversion function.

func Convert_v1alpha3_AWSClusterList_To_v1alpha2_AWSClusterList added in v0.5.0

func Convert_v1alpha3_AWSClusterList_To_v1alpha2_AWSClusterList(in *v1alpha3.AWSClusterList, out *AWSClusterList, s conversion.Scope) error

Convert_v1alpha3_AWSClusterList_To_v1alpha2_AWSClusterList is an autogenerated conversion function.

func Convert_v1alpha3_AWSClusterSpec_To_v1alpha2_AWSClusterSpec added in v0.5.0

func Convert_v1alpha3_AWSClusterSpec_To_v1alpha2_AWSClusterSpec(in *infrav1alpha3.AWSClusterSpec, out *AWSClusterSpec, s apiconversion.Scope) error

Convert_v1alpha3_AWSClusterSpec_To_v1alpha2_AWSClusterSpec converts from the Hub version (v1alpha3) of the AWSClusterSpec to this version. Requires manual conversion as infrav1alpha3.AWSClusterSpec.ImageLookupOrg does not exist in AWSClusterSpec.

func Convert_v1alpha3_AWSClusterStatus_To_v1alpha2_AWSClusterStatus added in v0.5.0

func Convert_v1alpha3_AWSClusterStatus_To_v1alpha2_AWSClusterStatus(in *infrav1alpha3.AWSClusterStatus, out *AWSClusterStatus, s apiconversion.Scope) error

Convert_v1alpha3_AWSClusterStatus_To_v1alpha2_AWSClusterStatus.

func Convert_v1alpha3_AWSCluster_To_v1alpha2_AWSCluster added in v0.5.0

func Convert_v1alpha3_AWSCluster_To_v1alpha2_AWSCluster(in *v1alpha3.AWSCluster, out *AWSCluster, s conversion.Scope) error

Convert_v1alpha3_AWSCluster_To_v1alpha2_AWSCluster is an autogenerated conversion function.

func Convert_v1alpha3_AWSLoadBalancerSpec_To_v1alpha2_AWSLoadBalancerSpec added in v0.5.0

func Convert_v1alpha3_AWSLoadBalancerSpec_To_v1alpha2_AWSLoadBalancerSpec(in *infrav1alpha3.AWSLoadBalancerSpec, out *AWSLoadBalancerSpec, s apiconversion.Scope) error

Convert_v1alpha3_AWSLoadBalancerSpec_To_v1alpha2_AWSLoadBalancerSpec.

func Convert_v1alpha3_AWSMachineList_To_v1alpha2_AWSMachineList added in v0.5.0

func Convert_v1alpha3_AWSMachineList_To_v1alpha2_AWSMachineList(in *v1alpha3.AWSMachineList, out *AWSMachineList, s conversion.Scope) error

Convert_v1alpha3_AWSMachineList_To_v1alpha2_AWSMachineList is an autogenerated conversion function.

func Convert_v1alpha3_AWSMachineSpec_To_v1alpha2_AWSMachineSpec added in v0.5.0

func Convert_v1alpha3_AWSMachineSpec_To_v1alpha2_AWSMachineSpec(in *infrav1alpha3.AWSMachineSpec, out *AWSMachineSpec, s apiconversion.Scope) error

Convert_v1alpha3_AWSMachineSpec_To_v1alpha2_AWSMachineSpec converts from the Hub version (v1alpha3) of the AWSMachineSpec to this version. Requires manual conversion as infrav1alpha3.AWSMachineSpec.ImageLookupBaseOS does not exist in AWSMachineSpec.

func Convert_v1alpha3_AWSMachineStatus_To_v1alpha2_AWSMachineStatus added in v0.5.0

func Convert_v1alpha3_AWSMachineStatus_To_v1alpha2_AWSMachineStatus(in *infrav1alpha3.AWSMachineStatus, out *AWSMachineStatus, s apiconversion.Scope) error

Convert_v1alpha3_AWSMachineStatus_To_v1alpha2_AWSMachineStatus converts from the Hub version (v1alpha3) of the AWSMachineStatus to this version.

func Convert_v1alpha3_AWSMachineTemplateList_To_v1alpha2_AWSMachineTemplateList added in v0.5.0

func Convert_v1alpha3_AWSMachineTemplateList_To_v1alpha2_AWSMachineTemplateList(in *v1alpha3.AWSMachineTemplateList, out *AWSMachineTemplateList, s conversion.Scope) error

Convert_v1alpha3_AWSMachineTemplateList_To_v1alpha2_AWSMachineTemplateList is an autogenerated conversion function.

func Convert_v1alpha3_AWSMachineTemplateResource_To_v1alpha2_AWSMachineTemplateResource added in v0.5.0

func Convert_v1alpha3_AWSMachineTemplateResource_To_v1alpha2_AWSMachineTemplateResource(in *v1alpha3.AWSMachineTemplateResource, out *AWSMachineTemplateResource, s conversion.Scope) error

Convert_v1alpha3_AWSMachineTemplateResource_To_v1alpha2_AWSMachineTemplateResource is an autogenerated conversion function.

func Convert_v1alpha3_AWSMachineTemplateSpec_To_v1alpha2_AWSMachineTemplateSpec added in v0.5.0

func Convert_v1alpha3_AWSMachineTemplateSpec_To_v1alpha2_AWSMachineTemplateSpec(in *v1alpha3.AWSMachineTemplateSpec, out *AWSMachineTemplateSpec, s conversion.Scope) error

Convert_v1alpha3_AWSMachineTemplateSpec_To_v1alpha2_AWSMachineTemplateSpec is an autogenerated conversion function.

func Convert_v1alpha3_AWSMachineTemplate_To_v1alpha2_AWSMachineTemplate added in v0.5.0

func Convert_v1alpha3_AWSMachineTemplate_To_v1alpha2_AWSMachineTemplate(in *v1alpha3.AWSMachineTemplate, out *AWSMachineTemplate, s conversion.Scope) error

Convert_v1alpha3_AWSMachineTemplate_To_v1alpha2_AWSMachineTemplate is an autogenerated conversion function.

func Convert_v1alpha3_AWSMachine_To_v1alpha2_AWSMachine added in v0.5.0

func Convert_v1alpha3_AWSMachine_To_v1alpha2_AWSMachine(in *v1alpha3.AWSMachine, out *AWSMachine, s conversion.Scope) error

Convert_v1alpha3_AWSMachine_To_v1alpha2_AWSMachine is an autogenerated conversion function.

func Convert_v1alpha3_AWSResourceReference_To_v1alpha2_AWSResourceReference added in v0.5.0

func Convert_v1alpha3_AWSResourceReference_To_v1alpha2_AWSResourceReference(in *v1alpha3.AWSResourceReference, out *AWSResourceReference, s conversion.Scope) error

Convert_v1alpha3_AWSResourceReference_To_v1alpha2_AWSResourceReference is an autogenerated conversion function.

func Convert_v1alpha3_BuildParams_To_v1alpha2_BuildParams added in v0.5.0

func Convert_v1alpha3_BuildParams_To_v1alpha2_BuildParams(in *v1alpha3.BuildParams, out *BuildParams, s conversion.Scope) error

Convert_v1alpha3_BuildParams_To_v1alpha2_BuildParams is an autogenerated conversion function.

func Convert_v1alpha3_ClassicELBAttributes_To_v1alpha2_ClassicELBAttributes added in v0.5.0

func Convert_v1alpha3_ClassicELBAttributes_To_v1alpha2_ClassicELBAttributes(in *infrav1alpha3.ClassicELBAttributes, out *ClassicELBAttributes, s apiconversion.Scope) error

func Convert_v1alpha3_ClassicELBHealthCheck_To_v1alpha2_ClassicELBHealthCheck added in v0.5.0

func Convert_v1alpha3_ClassicELBHealthCheck_To_v1alpha2_ClassicELBHealthCheck(in *v1alpha3.ClassicELBHealthCheck, out *ClassicELBHealthCheck, s conversion.Scope) error

Convert_v1alpha3_ClassicELBHealthCheck_To_v1alpha2_ClassicELBHealthCheck is an autogenerated conversion function.

func Convert_v1alpha3_ClassicELBListener_To_v1alpha2_ClassicELBListener added in v0.5.0

func Convert_v1alpha3_ClassicELBListener_To_v1alpha2_ClassicELBListener(in *v1alpha3.ClassicELBListener, out *ClassicELBListener, s conversion.Scope) error

Convert_v1alpha3_ClassicELBListener_To_v1alpha2_ClassicELBListener is an autogenerated conversion function.

func Convert_v1alpha3_ClassicELB_To_v1alpha2_ClassicELB added in v0.5.0

func Convert_v1alpha3_ClassicELB_To_v1alpha2_ClassicELB(in *infrav1alpha3.ClassicELB, out *ClassicELB, s apiconversion.Scope) error

Convert_v1alpha3_ClassicELB_To_v1alpha2_ClassicELB.

func Convert_v1alpha3_CloudInit_To_v1alpha2_CloudInit added in v0.5.0

func Convert_v1alpha3_CloudInit_To_v1alpha2_CloudInit(in *infrav1alpha3.CloudInit, out *CloudInit, s apiconversion.Scope) error

func Convert_v1alpha3_Filter_To_v1alpha2_Filter added in v0.5.0

func Convert_v1alpha3_Filter_To_v1alpha2_Filter(in *v1alpha3.Filter, out *Filter, s conversion.Scope) error

Convert_v1alpha3_Filter_To_v1alpha2_Filter is an autogenerated conversion function.

func Convert_v1alpha3_IngressRule_To_v1alpha2_IngressRule added in v0.5.0

func Convert_v1alpha3_IngressRule_To_v1alpha2_IngressRule(in *v1alpha3.IngressRule, out *IngressRule, s conversion.Scope) error

Convert_v1alpha3_IngressRule_To_v1alpha2_IngressRule is an autogenerated conversion function.

func Convert_v1alpha3_Instance_To_v1alpha2_Instance added in v0.5.0

func Convert_v1alpha3_Instance_To_v1alpha2_Instance(in *infrav1alpha3.Instance, out *Instance, s apiconversion.Scope) error

Convert_v1alpha3_Instance_To_v1alpha2_Instance converts from the Hub version (v1alpha3) of the Instance to this version.

func Convert_v1alpha3_NetworkSpec_To_v1alpha2_NetworkSpec added in v0.5.0

func Convert_v1alpha3_NetworkSpec_To_v1alpha2_NetworkSpec(in *infrav1alpha3.NetworkSpec, out *NetworkSpec, s apiconversion.Scope) error

Convert_v1alpha3_NetworkSpec_To_v1alpha2_NetworkSpec

func Convert_v1alpha3_Network_To_v1alpha2_Network added in v0.5.0

func Convert_v1alpha3_Network_To_v1alpha2_Network(in *v1alpha3.Network, out *Network, s conversion.Scope) error

Convert_v1alpha3_Network_To_v1alpha2_Network is an autogenerated conversion function.

func Convert_v1alpha3_RouteTable_To_v1alpha2_RouteTable added in v0.5.0

func Convert_v1alpha3_RouteTable_To_v1alpha2_RouteTable(in *v1alpha3.RouteTable, out *RouteTable, s conversion.Scope) error

Convert_v1alpha3_RouteTable_To_v1alpha2_RouteTable is an autogenerated conversion function.

func Convert_v1alpha3_SecurityGroup_To_v1alpha2_SecurityGroup added in v0.5.0

func Convert_v1alpha3_SecurityGroup_To_v1alpha2_SecurityGroup(in *v1alpha3.SecurityGroup, out *SecurityGroup, s conversion.Scope) error

Convert_v1alpha3_SecurityGroup_To_v1alpha2_SecurityGroup is an autogenerated conversion function.

func Convert_v1alpha3_SubnetSpec_To_v1alpha2_SubnetSpec added in v0.5.0

func Convert_v1alpha3_SubnetSpec_To_v1alpha2_SubnetSpec(in *v1alpha3.SubnetSpec, out *SubnetSpec, s conversion.Scope) error

Convert_v1alpha3_SubnetSpec_To_v1alpha2_SubnetSpec is an autogenerated conversion function.

func Convert_v1alpha3_VPCSpec_To_v1alpha2_VPCSpec added in v0.5.0

func Convert_v1alpha3_VPCSpec_To_v1alpha2_VPCSpec(in *infrav1alpha3.VPCSpec, out *VPCSpec, s apiconversion.Scope) error

Convert_v1alpha3_VPCSpec_To_v1alpha2_VPCSpec is an autogenerated conversion function.

func RegisterConversions added in v0.4.1

func RegisterConversions(s *runtime.Scheme) error

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

Types

type APIEndpoint

type APIEndpoint struct {
	// The hostname on which the API server is serving.
	Host string `json:"host"`

	// The port on which the API server is serving.
	Port int `json:"port"`
}

APIEndpoint represents a reachable Kubernetes API endpoint.

func (*APIEndpoint) DeepCopy

func (in *APIEndpoint) DeepCopy() *APIEndpoint

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

func (*APIEndpoint) DeepCopyInto

func (in *APIEndpoint) DeepCopyInto(out *APIEndpoint)

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 the awsclusters API

func (*AWSCluster) ConvertFrom added in v0.5.0

func (dst *AWSCluster) ConvertFrom(srcRaw conversion.Hub) error

ConvertFrom converts from the Hub version (v1alpha3) to this version.

func (*AWSCluster) ConvertTo added in v0.5.0

func (src *AWSCluster) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts this AWSCluster to the Hub version (v1alpha3).

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.

type AWSClusterList

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

AWSClusterList contains a list of AWSCluster

func (*AWSClusterList) ConvertFrom added in v0.5.0

func (dst *AWSClusterList) ConvertFrom(srcRaw conversion.Hub) error

ConvertFrom converts from the Hub version (v1alpha3) to this version.

func (*AWSClusterList) ConvertTo added in v0.5.0

func (src *AWSClusterList) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts this AWSClusterList to the Hub version (v1alpha3).

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.

type AWSClusterSpec

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

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

	// SSHKeyName is the name of the ssh key to attach to the bastion host.
	SSHKeyName string `json:"sshKeyName,omitempty"`

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

	// DisableBastionHost is an optional configuration field to prevent the creation of a bastion host instance.
	// +optional
	DisableBastionHost bool `json:"disableBastionHost,omitempty"`
}

AWSClusterSpec defines the desired state of AWSCluster

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 AWSClusterStatus

type AWSClusterStatus struct {
	Network Network  `json:"network,omitempty"`
	Bastion Instance `json:"bastion,omitempty"`
	Ready   bool     `json:"ready"`
	// APIEndpoints represents the endpoints to communicate with the control plane.
	// +optional
	APIEndpoints []APIEndpoint `json:"apiEndpoints,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 AWSLoadBalancerSpec added in v0.4.3

type AWSLoadBalancerSpec struct {
	// Scheme sets the scheme of the load balancer (defaults to Internet-facing)
	// +optional
	Scheme *ClassicELBScheme `json:"scheme,omitempty"`
}

AWSLoadBalancerSpec defines the desired state of an AWS load balancer

func (*AWSLoadBalancerSpec) DeepCopy added in v0.4.3

func (in *AWSLoadBalancerSpec) DeepCopy() *AWSLoadBalancerSpec

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

func (*AWSLoadBalancerSpec) DeepCopyInto added in v0.4.3

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 the awsmachines API

func (*AWSMachine) ConvertFrom added in v0.5.0

func (dst *AWSMachine) ConvertFrom(srcRaw conversion.Hub) error

ConvertFrom converts from the Hub version (v1alpha3) to this version.

func (*AWSMachine) ConvertTo added in v0.5.0

func (src *AWSMachine) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts this AWSMachine to the Hub version (v1alpha3).

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.

type AWSMachineList

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

AWSMachineList contains a list of AWSMachine

func (*AWSMachineList) ConvertFrom added in v0.5.0

func (dst *AWSMachineList) ConvertFrom(srcRaw conversion.Hub) error

ConvertFrom converts from the Hub version (v1alpha3) to this version.

func (*AWSMachineList) ConvertTo added in v0.5.0

func (src *AWSMachineList) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts this AWSMachineList to the Hub version (v1alpha3).

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.

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

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

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

	// InstanceType is the type of instance to create. Example: m4.xlarge
	InstanceType string `json:"instanceType,omitempty"`

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

	// 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.
	// +optional
	AdditionalSecurityGroups []AWSResourceReference `json:"additionalSecurityGroups,omitempty"`

	// AvailabilityZone is references the AWS availability zone to use for this instance.
	// If multiple subnets are matched for the availability zone, the first one return is picked.
	// +optional
	AvailabilityZone *string `json:"availabilityZone,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"`

	// SSHKeyName is the name of the ssh key to attach to the instance.
	SSHKeyName string `json:"sshKeyName,omitempty"`

	// RootDeviceSize is the size of the root volume in gigabytes(GB).
	// +optional
	RootDeviceSize int64 `json:"rootDeviceSize,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"`

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

AWSMachineSpec defines the desired state of AWSMachine

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

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

	// ErrorReason 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
	ErrorReason *errors.MachineStatusError `json:"errorReason,omitempty"`

	// ErrorMessage 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
	ErrorMessage *string `json:"errorMessage,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"`
}

AWSMachineTemplate is the Schema for the awsmachinetemplates API

func (*AWSMachineTemplate) ConvertFrom added in v0.5.0

func (dst *AWSMachineTemplate) ConvertFrom(srcRaw conversion.Hub) error

ConvertFrom converts from the Hub version (v1alpha3) to this version.

func (*AWSMachineTemplate) ConvertTo added in v0.5.0

func (src *AWSMachineTemplate) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts this AWSMachineTemplate to the Hub version (v1alpha3).

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.

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) ConvertFrom added in v0.5.0

func (dst *AWSMachineTemplateList) ConvertFrom(srcRaw conversion.Hub) error

ConvertFrom converts from the Hub version (v1alpha3) to this version.

func (*AWSMachineTemplateList) ConvertTo added in v0.5.0

func (src *AWSMachineTemplateList) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts this AWSMachineTemplateList to the Hub version (v1alpha3).

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.

type AWSMachineTemplateResource

type AWSMachineTemplateResource struct {
	// 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 AWSResourceReference

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

	// ARN of resource
	// +optional
	ARN *string `json:"arn,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, ARN, or filters. Only one of ID, ARN 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 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.

type ClassicELB

type ClassicELB struct {
	// 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.
	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 ClassicELBScheme `json:"scheme,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"`

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

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

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

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

ClassicELB defines an AWS classic load balancer.

func (*ClassicELB) DeepCopy

func (in *ClassicELB) DeepCopy() *ClassicELB

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

func (*ClassicELB) DeepCopyInto

func (in *ClassicELB) DeepCopyInto(out *ClassicELB)

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

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         ClassicELBProtocol `json:"protocol"`
	Port             int64              `json:"port"`
	InstanceProtocol ClassicELBProtocol `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 ClassicELBProtocol

type ClassicELBProtocol string

ClassicELBProtocol defines listener protocols for a classic load balancer.

type ClassicELBScheme

type ClassicELBScheme string

ClassicELBScheme defines the scheme of a classic load balancer.

type CloudInit added in v0.4.9

type CloudInit struct {
	// enableSecureSecretsManager, when set to true will use AWS Secrets Manager to ensure
	// userdata privacy. A cloud-init boothook shell script is prepended to download
	// the userdata from Secrets Manager and additionally delete the secret.
	// +optional
	EnableSecureSecretsManager bool `json:"enableSecureSecretsManager,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"`
}

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

func (*CloudInit) DeepCopy added in v0.4.9

func (in *CloudInit) DeepCopy() *CloudInit

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

func (*CloudInit) DeepCopyInto added in v0.4.9

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

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 IngressRule

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

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

	// The security group id to allow access from. Cannot be specified with CidrBlocks.
	// +optional
	SourceSecurityGroupIDs []string `json:"sourceSecurityGroupIds,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"`

	// Specifies size (in Gi) of the root storage device
	RootDeviceSize int64 `json:"rootDeviceSize,omitempty"`

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

	// The tags associated with the instance.
	Tags map[string]string `json:"tags,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 InstanceState

type InstanceState string

InstanceState describes the state of an AWS instance.

type Network

type Network 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 classic load balancer.
	APIServerELB ClassicELB `json:"apiServerElb,omitempty"`
}

Network encapsulates AWS networking resources.

func (*Network) DeepCopy

func (in *Network) DeepCopy() *Network

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

func (*Network) DeepCopyInto

func (in *Network) DeepCopyInto(out *Network)

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

type NetworkSpec

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

	// Subnets configuration.
	// +optional
	Subnets Subnets `json:"subnets,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 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 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.

type SubnetSpec

type SubnetSpec struct {
	// ID defines a unique identifier to reference this resource.
	ID string `json:"id,omitempty"`

	// CidrBlock is the CIDR block to be used when the provider creates a managed VPC.
	CidrBlock string `json:"cidrBlock,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"`

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

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

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

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

func (t Tags) Equals(other Tags) bool

Equals returns true if the tags are equal.

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

HasOwned 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 added in v0.4.1

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.

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.
	CidrBlock string `json:"cidrBlock,omitempty"`

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

	// Tags is a collection of tags describing the resource.
	Tags Tags `json:"tags,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) 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.

Jump to

Keyboard shortcuts

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