Skip to content

Commit 58f7f29

Browse files
committed
chore(controller): add a separate rabbitmqUrl configuration
1 parent 39f28b3 commit 58f7f29

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

charts/controller/templates/_helpers.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ env:
117117
secretKeyRef:
118118
name: influxdb-creds
119119
key: token
120-
{{- if eq .Values.global.rabbitmqLocation "off-cluster"}}
121-
- name: "DRYCC_RABBITMQ_URL"
120+
{{- if (.Values.rabbitmqUrl) }}
121+
- name: DRYCC_RABBITMQ_URL
122122
valueFrom:
123123
secretKeyRef:
124-
name: rabbitmq-creds
125-
key: url
124+
name: controller-creds
125+
key: rabbitmqUrl
126126
{{- else if eq .Values.global.rabbitmqLocation "on-cluster" }}
127127
- name: "DRYCC_RABBITMQ_USERNAME"
128128
valueFrom:

charts/controller/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ celeryReplicas: 1
2929
concurrencyPolicy: "Replace"
3030
# Configuring this will no longer use the built-in database component
3131
databaseUrl: ""
32+
# Configuring this will no longer use the built-in rabbitmq component
33+
rabbitmqUrl: ""
3234
# Service
3335
service:
3436
# Provide any additional service annotations

0 commit comments

Comments
 (0)