Merge pull request #1911 from corlettb/master
Adding optional aws_session_token to configuration options for registry-credspull/1934/head
commit
f5e95e9223
|
@ -46,6 +46,7 @@ var addonsConfigureCmd = &cobra.Command{
|
|||
// Default values
|
||||
awsAccessID := "changeme"
|
||||
awsAccessKey := "changeme"
|
||||
awsSessionToken := ""
|
||||
awsRegion := "changeme"
|
||||
awsAccount := "changeme"
|
||||
awsRole := "changeme"
|
||||
|
@ -59,6 +60,7 @@ var addonsConfigureCmd = &cobra.Command{
|
|||
if enableAWSECR {
|
||||
awsAccessID = AskForStaticValue("-- Enter AWS Access Key ID: ")
|
||||
awsAccessKey = AskForStaticValue("-- Enter AWS Secret Access Key: ")
|
||||
awsSessionToken = AskForStaticValueOptional("-- (Optional) Enter AWS Session Token: ")
|
||||
awsRegion = AskForStaticValue("-- Enter AWS Region: ")
|
||||
awsAccount = AskForStaticValue("-- Enter 12 digit AWS Account ID: ")
|
||||
awsRole = AskForStaticValueOptional("-- (Optional) Enter ARN of AWS role to assume: ")
|
||||
|
@ -97,6 +99,7 @@ var addonsConfigureCmd = &cobra.Command{
|
|||
map[string]string{
|
||||
"AWS_ACCESS_KEY_ID": awsAccessID,
|
||||
"AWS_SECRET_ACCESS_KEY": awsAccessKey,
|
||||
"AWS_SESSION_TOKEN": awsSessionToken,
|
||||
"aws-account": awsAccount,
|
||||
"aws-region": awsRegion,
|
||||
"aws-assume-role": awsRole,
|
||||
|
|
|
@ -35,6 +35,16 @@ spec:
|
|||
secretKeyRef:
|
||||
name: registry-creds-ecr
|
||||
key: AWS_SECRET_ACCESS_KEY
|
||||
- name: AWS_SESSION_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: registry-creds-ecr
|
||||
key: AWS_SESSION_TOKEN
|
||||
- name: awsregion
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: registry-creds-ecr
|
||||
key: aws-region
|
||||
- name: awsaccount
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
|
|
Loading…
Reference in New Issue