Skip to content

Commit

Permalink
remove quotes from env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
rarmatei committed Jan 9, 2024
1 parent 88610e0 commit 8ab1e9b
Showing 1 changed file with 26 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
- --in-cluster=true
- --image=nxprivatecloud/nx-cloud-build-tools:{{ .Values.nxCloudWorkflows.buildToolsImageTag }}
{{- range $key, $value := .Values.nxCloudWorkflows.executorEnv }}
- --executor-env={{ $key }}={{ $value | quote }}
- --executor-env={{ $key }}={{ $value }}
{{- end }}
- --workflow-service-address=http://nx-cloud-workflow-controller-service:9000
image: {{ include "nxCloud.images.nxCloudWorkflowController.image" . }}
Expand Down Expand Up @@ -55,10 +55,31 @@ spec:
periodSeconds: 10
{{- if gt (len .Values.nxCloudWorkflows.controllerEnv) 0 }}
env:
{{- range $key, $value := .Values.nxCloudWorkflows.controllerEnv }}
- name: {{ $key | quote }}
value: {{ $value | quote }}
{{- end }}
{{- range $key, $value := .Values.nxCloudWorkflows.controllerEnv }}
- name: {{ $key | quote }}
value: {{ $value | quote }}
{{- end }}
{{- with .Values.secret }}
{{- if .awsS3AccessKeyId }}
{{- if .name }}
- name: AWS_S3_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: {{ .name }}
key: {{ .awsS3AccessKeyId }}
- name: AWS_S3_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: {{ .name }}
key: {{ .awsS3SecretAccessKey }}
{{- else }}
- name: SECRET_FILE_AWS_S3_ACCESS_KEY_ID
value: {{ .awsS3AccessKeyId }}
- name: SECRET_FILE_AWS_S3_SECRET_ACCESS_KEY
value: {{ .awsS3SecretAccessKey }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
serviceAccountName: nx-cloud-workflow-controller
terminationGracePeriodSeconds: 10
Expand Down

0 comments on commit 8ab1e9b

Please sign in to comment.