Documentation ¶
Index ¶
- Constants
- 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 GetClusterTagKey(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" )
Variables ¶
This section is empty.
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 GetClusterTagKey ¶
GetClusterTagKey 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.