Skip to content

Commit

Permalink
fix(aws-secrets): use AWS secrets only if enabled
Browse files Browse the repository at this point in the history
Only set the AWS variables if the enabled flag is true for secrets
lookup

fixes: #348
Signed-off-by: Brett Delle Grazie <[email protected]>
  • Loading branch information
bdellegrazie committed Oct 5, 2023
1 parent e46d5f7 commit eb29fba
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions templates/web-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,6 @@ spec:
- name: CONCOURSE_SECRET_CACHE_PURGE_INTERVAL
value: {{ .Values.concourse.web.secretCachePurgeInterval | quote }}
{{- end }}
{{- if .Values.concourse.web.awsSecretsManager.region }}
- name: CONCOURSE_AWS_SECRETSMANAGER_REGION
value: {{ .Values.concourse.web.awsSecretsManager.region | quote }}
{{- end }}
{{- if .Values.concourse.web.awsSsm.region }}
- name: CONCOURSE_AWS_SSM_REGION
value: {{ .Values.concourse.web.awsSsm.region | quote }}
{{- end }}
{{- if .Values.concourse.web.tracing.serviceName }}
- name: CONCOURSE_TRACING_SERVICE_NAME
value: {{ .Values.concourse.web.tracing.serviceName | quote }}
Expand Down Expand Up @@ -536,6 +528,10 @@ spec:
- name: CONCOURSE_AWS_SECRETSMANAGER_PIPELINE_SECRET_TEMPLATE
value: {{ .Values.concourse.web.awsSecretsManager.pipelineSecretTemplate | quote }}
{{- end }}
{{- if .Values.concourse.web.awsSecretsManager.region }}
- name: CONCOURSE_AWS_SECRETSMANAGER_REGION
value: {{ .Values.concourse.web.awsSecretsManager.region | quote }}
{{- end }}
{{- if .Values.concourse.web.awsSecretsManager.teamSecretTemplate }}
- name: CONCOURSE_AWS_SECRETSMANAGER_TEAM_SECRET_TEMPLATE
value: {{ .Values.concourse.web.awsSecretsManager.teamSecretTemplate | quote }}
Expand Down Expand Up @@ -569,6 +565,10 @@ spec:
- name: CONCOURSE_AWS_SSM_PIPELINE_SECRET_TEMPLATE
value: {{ .Values.concourse.web.awsSsm.pipelineSecretTemplate | quote }}
{{- end }}
{{- if .Values.concourse.web.awsSsm.region }}
- name: CONCOURSE_AWS_SSM_REGION
value: {{ .Values.concourse.web.awsSsm.region | quote }}
{{- end }}
{{- if .Values.concourse.web.awsSsm.teamSecretTemplate }}
- name: CONCOURSE_AWS_SSM_TEAM_SECRET_TEMPLATE
value: {{ .Values.concourse.web.awsSsm.teamSecretTemplate | quote }}
Expand Down

0 comments on commit eb29fba

Please sign in to comment.