forked from teamhephy/controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
段洪义
authored and
段洪义
committed
Jan 15, 2021
1 parent
83a9bd7
commit 3859f16
Showing
4 changed files
with
39 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,6 +136,26 @@ env: | |
secretKeyRef: | ||
name: influxdb-creds | ||
key: token | ||
{{ if eq .Values.global.rabbitmq_location "off-cluster"}} | ||
- name: "DRYCC_RABBITMQ_URL" | ||
valueFrom: | ||
secretKeyRef: | ||
name: rabbitmq-creds | ||
key: url | ||
{{- else if eq .Values.global.rabbitmq_location "on-cluster" }} | ||
- name: "DRYCC_RABBITMQ_USERNAME" | ||
valueFrom: | ||
secretKeyRef: | ||
name: rabbitmq-creds | ||
key: username | ||
- name: "DRYCC_RABBITMQ_PASSWORD" | ||
valueFrom: | ||
secretKeyRef: | ||
name: rabbitmq-creds | ||
key: password | ||
- name: "DRYCC_RABBITMQ_URL" | ||
value: "amqp://$DRYCC_RABBITMQ_USERNAME:[email protected].{{$.Release.Namespace}}.svc.{{$.Values.global.cluster_domain}}:5672/drycc" | ||
{{- end }} | ||
{{- range $key, $value := .Values.environment }} | ||
- name: {{ $key }} | ||
value: {{ $value | quote }} | ||
|
@@ -157,10 +177,23 @@ resources: | |
{{- end }} | ||
|
||
|
||
|
||
|
||
{{/* Generate controller deployment volumeMounts */}} | ||
{{- define "controller.volumeMounts" -}} | ||
volumeMounts: | ||
- mountPath: /etc/slugrunner | ||
name: slugrunner-config | ||
readOnly: true | ||
{{- end }} | ||
|
||
{{/* Generate controller deployment volumes */}} | ||
{{- define "controller.volumes" -}} | ||
volumes: | ||
- name: rabbitmq-creds | ||
secret: | ||
secretName: rabbitmq-creds | ||
- name: slugrunner-config | ||
configMap: | ||
name: slugrunner-config | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters