Skip to content

Commit

Permalink
chore: move RabbitMQ secret reference
Browse files Browse the repository at this point in the history
  • Loading branch information
tadeusz-delphai authored and anton-delphai committed Dec 22, 2023
1 parent f9039f0 commit 7b6d49a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 0 additions & 8 deletions charts/delphai-deployment/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,6 @@ spec:
value: "{{ $.Release.Name }}-redis-master.{{ $.Release.Namespace }}"
{{ end }}

{{ if $.Values.rabbitmq.enabled }}
- name: RABBITMQ_CONNECTION_STRING
valueFrom:
secretKeyRef:
name: rabbitmq
key: connection-string
{{ end }} {{/* if $.Values.rabbitmq.enabled */}}

{{ range $name, $value := $.Values.env }}
- name: {{ $name | quote }}
value: {{ $value | quote }}
Expand Down
5 changes: 5 additions & 0 deletions charts/delphai-deployment/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ secrets:
env:
MONGO_CONNECTION_STRING: "connection-string"

rabbitmq:
enabled: false
env:
RABBITMQ_CONNECTION_STRING: "connection-string"

# Define ports exposed by the deployment (as k8s Service)
ports:
http:
Expand Down

0 comments on commit 7b6d49a

Please sign in to comment.