Documentation
¶
Index ¶
- Constants
- Variables
- func GenerateAwsTags(name, clusterTagKey string) ([]types.Tag, error)
- func GenerateAwsTagsAsMap(name, clusterTagKey string) (map[string]string, error)
- func GenerateR53Tags(clusterTagKey string) ([]route53Types.Tag, error)
- func GenerateSecurityGroupName(clusterName, purpose string) (string, error)
- func GenerateVPCEndpointName(clusterName, purpose string) (string, error)
- func GetClusterCapiTagKey(infraName string) (string, error)
- func GetClusterLegacyTagKey(infraName string) (string, error)
- func StringSliceTwoWayDiff(current, expected []string) ([]string, []string)
Constants ¶
const ( OperatorTagKey = "kubernetes.io/aws-vpce-operator" OperatorTagValue = "managed" RedHatManagedTagKey = "red-hat-managed" RedHatManagedTagValue = "true" SecurityGroupDescription = "Managed by AWS VPCE Operator" LegacyClusterTagPrefix = "kubernetes.io/cluster" CapiClusterTagPrefix = "sigs.k8s.io/cluster-api-provider-aws/cluster" )
Variables ¶
var SupportedInfraIDSuffixes = [...]string{"%s-master-sg", "%s-worker-sg", "%s-controlplane", "%s-node"}
These are the expected security group suffixes available in the VPC based on the cluster's infra id. NOTE: With 4.16+ the suffix changed to *-controlplane and *-node
Functions ¶
func GenerateAwsTags ¶
GenerateAwsTags returns the tags that should be reconciled on every AWS resource created by this operator
func GenerateAwsTagsAsMap ¶
GenerateAwsTagsAsMap converts the slice of tags returned by GenerateAwsTags into a map for convenience
func GenerateR53Tags ¶
func GenerateR53Tags(clusterTagKey string) ([]route53Types.Tag, error)
GenerateR53Tags returns the tags that should be reconciled on every AWS resource created by this operator
func GenerateSecurityGroupName ¶
GenerateSecurityGroupName generates a name for a security group given a cluster name and a "purpose" for the security group
func GenerateVPCEndpointName ¶
GenerateVPCEndpointName generates a name for a VPC endpoint given a cluster name and a "purpose" for the VPC endpoint
func GetClusterCapiTagKey ¶
GetClusterCapiTagKey returns the tag assigned to all AWS resources for the given cluster in CAPI format
func GetClusterLegacyTagKey ¶
GetClusterLegacyTagKey returns the tag assigned to all AWS resources for the given cluster
func StringSliceTwoWayDiff ¶
StringSliceTwoWayDiff returns the objects in expected that are not in current (to be used for creation) and the objects in current that are not in expected (to be used for deletion).
Types ¶
This section is empty.