package awsiamauth import "fmt" const ( awsIamAuthCaSecretSuffix = "aws-iam-authenticator-ca" awsIamAuthKubeconfigSuffix = "aws-iam-kubeconfig" // AwsIamAuthConfigMapName is the name of AWS IAM Authenticator configuration. AwsIamAuthConfigMapName = "aws-iam-authenticator" // AwsAuthConfigMapName is the name of IAM roles and users mapping for AWS IAM Authenticator. AwsAuthConfigMapName = "aws-auth" ) // CASecretName returns the name of AWS IAM Authenticator secret containing the CA for the cluster. func CASecretName(clusterName string) string { return fmt.Sprintf("%s-%s", clusterName, awsIamAuthCaSecretSuffix) } // KubeconfigSecretName returns the name of the AWS IAM Authenticator kubeconfig secret for the cluster. func KubeconfigSecretName(clusterName string) string { return fmt.Sprintf("%s-%s", clusterName, awsIamAuthKubeconfigSuffix) }