diff --git a/charts/s3-operator/templates/deployment.yaml b/charts/s3-operator/templates/deployment.yaml index 7ecc1f4..1bc44b3 100644 --- a/charts/s3-operator/templates/deployment.yaml +++ b/charts/s3-operator/templates/deployment.yaml @@ -58,7 +58,7 @@ spec: valueFrom: secretKeyRef: name: {{ .Values.s3.existingSecret }} - key: S3_ACCESS_KEY + key: {{ .Values.s3.secretKeyName | default 'S3_ACCESS_KEY'}} {{- else }} value: {{ .Values.s3.accessKey }} {{- end }} @@ -67,7 +67,7 @@ spec: valueFrom: secretKeyRef: name: {{ .Values.s3.existingSecret }} - key: S3_SECRET_KEY + key: {{ .Values.s3.accessKeyName | default 'S3_SECRET_KEY'}} {{- else }} value: {{ .Values.s3.secretKey }} {{- end }} @@ -93,4 +93,4 @@ spec: securityContext: runAsNonRoot: true serviceAccountName: {{ include "s3-operator.fullname" . }}-controller-manager - terminationGracePeriodSeconds: 10 \ No newline at end of file + terminationGracePeriodSeconds: 10