Update broker statefulset to check if AWS keys secret name is defined before adding to environment. (#466)

This commit is contained in:
Nathan Clayton 2024-03-03 00:38:31 -08:00 committed by GitHub
parent 0b130fafa9
commit b4241f984b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -267,7 +267,7 @@ spec:
readOnlyRootFilesystem: false readOnlyRootFilesystem: false
{{- end }} {{- end }}
env: env:
{{- if and .Values.broker.storageOffload (eq .Values.broker.storageOffload.driver "aws-s3") }} {{- if and (and .Values.broker.storageOffload (eq .Values.broker.storageOffload.driver "aws-s3")) .Values.broker.storageOffload.secret }}
- name: AWS_ACCESS_KEY_ID - name: AWS_ACCESS_KEY_ID
valueFrom: valueFrom:
secretKeyRef: secretKeyRef: