7171 secretKeyRef:
7272 name: database-creds
7373 key: url
74- {{- else if .Values.global.database_location " on-cluster" }}
74+ {{- else if eq .Values.global.database_location " on-cluster" }}
7575- name: DRYCC_DATABASE_USER
7676 valueFrom:
7777 secretKeyRef:
8383 name: database-creds
8484 key: password
8585- name: DRYCC_DATABASE_URL
86- value: " postgres://$DRYCC_DATABASE_USER:$ DRYCC_DATABASE_PASSPORT@$ DRYCC_DATABASE_SERVICE_HOST:$ DRYCC_DATABASE_SERVICE_PORT/$ DRYCC_DATABASE_USER"
87- {{ end }}
86+ value: " postgres://$( DRYCC_DATABASE_USER):$( DRYCC_DATABASE_PASSPORT)@$( DRYCC_DATABASE_SERVICE_HOST):$( DRYCC_DATABASE_SERVICE_PORT)/$( DRYCC_DATABASE_USER) "
87+ {{- end }}
8888- name: WORKFLOW_NAMESPACE
8989 valueFrom:
9090 fieldRef:
9191 fieldPath: metadata.namespace
92- {{ if eq .Values.global.redis_location " on-cluster" }}
92+ {{- if eq .Values.global.redis_location " on-cluster" }}
9393- name: DRYCC_REDIS_ADDRS
9494 value: " {{range $i := until $redisNodeCount}}drycc-redis-{{$i}}.drycc-redis.{{$.Release.Namespace}}.svc.{{$.Values.global.cluster_domain}}:6379{{if lt (add 1 $i) $redisNodeCount}},{{end}}{{end}}"
9595{{- else if eq .Values.global.redis_location " off-cluster" }}
129129 secretKeyRef:
130130 name: influxdb-creds
131131 key: token
132- {{ if eq .Values.global.rabbitmq_location " off-cluster" }}
132+ {{- if eq .Values.global.rabbitmq_location " off-cluster" }}
133133- name: " DRYCC_RABBITMQ_URL"
134134 valueFrom:
135135 secretKeyRef:
147147 name: rabbitmq-creds
148148 key: password
149149- name: " DRYCC_RABBITMQ_URL"
150- value: " amqp://$DRYCC_RABBITMQ_USERNAME:$ DRYCC_RABBITMQ_PASSWORD@drycc-rabbitmq-0.drycc-rabbitmq.{{$.Release.Namespace}}.svc.{{$.Values.global.cluster_domain}}:5672/drycc"
150+ value: " amqp://$( DRYCC_RABBITMQ_USERNAME):$( DRYCC_RABBITMQ_PASSWORD) @drycc-rabbitmq-0.drycc-rabbitmq.{{$.Release.Namespace}}.svc.{{$.Values.global.cluster_domain}}:5672/drycc"
151151{{- end }}
152152{{- range $key , $value := .Values.environment }}
153153- name: {{ $key }}
@@ -172,7 +172,7 @@ resources:
172172
173173
174174{{/* Generate controller deployment volumeMounts */ }}
175- {{- define " controller.volumeMounts" - }}
175+ {{- define " controller.volumeMounts" }}
176176volumeMounts:
177177 - mountPath: /etc/slugrunner
178178 name: slugrunner-config
@@ -181,7 +181,7 @@ volumeMounts:
181181
182182
183183{{/* Generate controller deployment volumes */ }}
184- {{- define " controller.volumes" - }}
184+ {{- define " controller.volumes" }}
185185volumes:
186186 - name: rabbitmq-creds
187187 secret:
0 commit comments