Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Name is the name of the AWS provider. Name = "provider-aws" // StorageProviderName is the name of the AWS storage provider. StorageProviderName = "S3" // MachineControllerManagerImageName is the name of the MachineControllerManager image. MachineControllerManagerImageName = "machine-controller-manager" // TerraformerImageName is the name of the Terraformer image. TerraformerImageName = "terraformer" // CloudControllerManagerImageName is the name of the cloud-controller-manager image. CloudControllerManagerImageName = "cloud-controller-manager" // ETCDBackupRestoreImageName is the name of the etcd backup and restore image. ETCDBackupRestoreImageName = "etcd-backup-restore" // AWSLBReadvertiserImageName is the name of the AWSLBReadvertiser image. AWSLBReadvertiserImageName = "aws-lb-readvertiser" // AccessKeyID is a constant for the key in a cloud provider secret and backup secret that holds the AWS access key id. AccessKeyID = "accessKeyID" // SecretAccessKey is a constant for the key in a cloud provider secret and backup secret that holds the AWS secret access key. SecretAccessKey = "secretAccessKey" // Region is a constant for the key in a backup secret that holds the AWS region. Region = "region" // BucketName is a constant for the key in a backup secret that holds the bucket name. // The bucket name is written to the backup secret by Gardener as a temporary solution. // TODO In the future, the bucket name should come from a BackupBucket resource (see https://github.com/gardener/gardener/blob/master/docs/proposals/02-backupinfra.md) BucketName = "bucketName" // TerraformerPurposeInfra is a constant for the complete Terraform setup with purpose 'infrastructure'. TerraformerPurposeInfra = "infra" // VPCIDKey is the vpc_id tf state key VPCIDKey = "vpc_id" // SubnetPublicPrefix is the prefix for the subnets SubnetPublicPrefix = "subnet_public_utility_z" // SubnetNodesPrefix is the prefix for the subnets SubnetNodesPrefix = "subnet_nodes_z" // SecurityGroupsNodes is the key for accessing nodes security groups from outputs in terraform SecurityGroupsNodes = "security_group_nodes" // SSHKeyName key for accessing SSH key name from outputs in terraform SSHKeyName = "keyName" // IAMInstanceProfileNodes key for accessing Nodes Instance profile from outputs in terraform IAMInstanceProfileNodes = "iamInstanceProfileNodes" // IAMInstanceProfileBastions key for accessing Bastions Instance profile from outputs in terraform IAMInstanceProfileBastions = "iamInstanceProfileBastions" // NodesRole role for nodes NodesRole = "nodes_role_arn" // BastionsRole role for bastions BastionsRole = "bastions_role_arn" // CloudProviderConfigName is the name of the configmap containing the cloud provider config. CloudProviderConfigName = "cloud-provider-config" // MachineControllerManagerName is a constant for the name of the machine-controller-manager. MachineControllerManagerName = "machine-controller-manager" // MachineControllerManagerVpaName is the name of the VerticalPodAutoscaler of the machine-controller-manager deployment. MachineControllerManagerVpaName = "machine-controller-manager-vpa" // MachineControllerManagerMonitoringConfigName is the name of the ConfigMap containing monitoring stack configurations for machine-controller-manager. MachineControllerManagerMonitoringConfigName = "machine-controller-manager-monitoring-config" // BackupSecretName is the name of the secret containing the credentials for storing the backups of Shoot clusters. BackupSecretName = "etcd-backup" // CloudControllerManagerName is the constant for the name of the CloudController deployed by the control plane controller. CloudControllerManagerName = "cloud-controller-manager" // LBReadvertiserDeploymentName is the constant for the name of the AWS LB Readvertiser deployment LBReadvertiserDeploymentName = "aws-lb-readvertiser" )
View Source
const Type = "aws"
Type is the type of resources managed by the AWS actuator.
Variables ¶
View Source
var ( // ChartsPath is the path to the charts ChartsPath = filepath.Join("charts") // InternalChartsPath is the path to the internal charts InternalChartsPath = filepath.Join(ChartsPath, "internal") )
Functions ¶
func NewClientFromSecretRef ¶
func NewClientFromSecretRef(ctx context.Context, client client.Client, secretRef corev1.SecretReference, region string) (awsclient.Interface, error)
NewClientFromSecretRef creates a new Client for the given AWS credentials from given k8s <secretRef> and the AWS region <region>.
Types ¶
type Credentials ¶
Credentials stores AWS credentials.
func ReadCredentialsSecret ¶
func ReadCredentialsSecret(secret *corev1.Secret) (*Credentials, error)
ReadCredentialsSecret reads a secret containing credentials.
Click to show internal directories.
Click to hide internal directories.