Skip to content

Commit

Permalink
Merge pull request #118 from dgoodwin/aws-secret-keys
Browse files Browse the repository at this point in the history
Sync AWS credential secret keys with installer.
  • Loading branch information
openshift-merge-robot authored Nov 30, 2018
2 parents 6b31677 + 744c5ef commit eb3cdc7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions config/templates/cluster-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ objects:
name: ${CLUSTER_NAME}-aws-creds
type: Opaque
stringData:
awsAccessKeyId: ${AWS_ACCESS_KEY_ID}
awsSecretAccessKey: ${AWS_SECRET_ACCESS_KEY}
aws_access_key_id: ${AWS_ACCESS_KEY_ID}
aws_secret_access_key: ${AWS_SECRET_ACCESS_KEY}

- apiVersion: v1
kind: Secret
Expand Down
4 changes: 2 additions & 2 deletions pkg/awsclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ import (
)

const (
awsCredsSecretIDKey = "awsAccessKeyId"
awsCredsSecretAccessKey = "awsSecretAccessKey"
awsCredsSecretIDKey = "aws_access_key_id"
awsCredsSecretAccessKey = "aws_secret_access_key"
)

//go:generate mockgen -source=./client.go -destination=./mock/client_generated.go -package=mock
Expand Down
4 changes: 2 additions & 2 deletions pkg/install/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func GenerateInstallerJob(
ValueFrom: &corev1.EnvVarSource{
SecretKeyRef: &corev1.SecretKeySelector{
LocalObjectReference: cd.Spec.PlatformSecrets.AWS.Credentials,
Key: "awsAccessKeyId",
Key: "aws_access_key_id",
},
},
},
Expand All @@ -135,7 +135,7 @@ func GenerateInstallerJob(
ValueFrom: &corev1.EnvVarSource{
SecretKeyRef: &corev1.SecretKeySelector{
LocalObjectReference: cd.Spec.PlatformSecrets.AWS.Credentials,
Key: "awsSecretAccessKey",
Key: "aws_secret_access_key",
},
},
},
Expand Down

0 comments on commit eb3cdc7

Please sign in to comment.