|
81 | 81 | {{- with .Values.volumeMounts }}
|
82 | 82 | {{- toYaml . | nindent 10 }}
|
83 | 83 | {{- end }}
|
| 84 | + {{ if or (eq .Values.global.configSecretAdapter "aws") (eq .Values.global.configAdapterName "aws") }} |
| 85 | + - mountPath: {{ .Values.global.cnAwsSharedCredentialsFile }} |
| 86 | + name: aws-shared-credential-file |
| 87 | + subPath: aws_shared_credential_file |
| 88 | + - mountPath: {{ .Values.global.cnAwsConfigFile }} |
| 89 | + name: aws-config-file |
| 90 | + subPath: aws_config_file |
| 91 | + - mountPath: {{ .Values.global.cnAwsSecretsReplicaRegionsFile }} |
| 92 | + name: aws-secrets-replica-regions |
| 93 | + subPath: aws_secrets_replica_regions |
| 94 | + {{- end }} |
84 | 95 | {{ if or (eq .Values.global.configSecretAdapter "google") (eq .Values.global.cnPersistenceType "spanner") }}
|
85 | 96 | - mountPath: {{ .Values.global.cnGoogleApplicationCredentials }}
|
86 | 97 | name: google-sa
|
@@ -121,6 +132,26 @@ spec:
|
121 | 132 | {{- with .Values.volumes }}
|
122 | 133 | {{- toYaml . | nindent 8 }}
|
123 | 134 | {{- end }}
|
| 135 | + {{ if or (eq .Values.global.configSecretAdapter "aws") (eq .Values.global.configAdapterName "aws") }} |
| 136 | + - name: aws-shared-credential-file |
| 137 | + secret: |
| 138 | + secretName: {{ .Release.Name }}-aws-config-creds |
| 139 | + items: |
| 140 | + - key: aws_shared_credential_file |
| 141 | + path: aws_shared_credential_file |
| 142 | + - name: aws-config-file |
| 143 | + secret: |
| 144 | + secretName: {{ .Release.Name }}-aws-config-creds |
| 145 | + items: |
| 146 | + - key: aws_config_file |
| 147 | + path: aws_config_file |
| 148 | + - name: aws-secrets-replica-regions |
| 149 | + secret: |
| 150 | + secretName: {{ .Release.Name }}-aws-config-creds |
| 151 | + items: |
| 152 | + - key: aws_secrets_replica_regions |
| 153 | + path: aws_secrets_replica_regions |
| 154 | + {{- end }} |
124 | 155 | {{ if or (eq .Values.global.configSecretAdapter "google") (eq .Values.global.cnPersistenceType "spanner") }}
|
125 | 156 | - name: google-sa
|
126 | 157 | secret:
|
|
0 commit comments