Skip to content

Commit 390b27a

Browse files
committed
fix mongo/rabbitmq
1 parent 3b9c3fc commit 390b27a

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ description: >
1313
# This is the chart version. This version number should be incremented each time you make changes
1414
# to the chart and its templates, including the app version.
1515
# Versions are expected to follow Semantic Versioning (https://semver.org/)
16-
version: 0.15.4
16+
version: 0.15.5
1717

1818
# This is the version number of the application being deployed. This version number should be
1919
# incremented each time you make changes to the application. Versions are not expected to
@@ -55,4 +55,4 @@ annotations:
5555
- name: Helm Chart
5656
url: https://github.com/clowder-framework/clowder-helm
5757
artifacthub.io/changes: |
58-
- fix name of extractors to be fullname
58+
- fix mongodb/rabbitmq url

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ extraConfig:
167167
168168
## ChangeLog
169169
170+
### 0.15.5
171+
- fix rabbitmq/mongodb url
172+
170173
### 0.15.4
171174
- fix name of extractors to be fullname
172175

templates/_helpers.tpl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
4848
Mongo URI
4949
*/}}
5050
{{- define "clowder.mongodburi" -}}
51-
mongodb://{{ include "clowder.fullname" . }}-mongodb:27017/clowder
51+
{{- if .Values.mongodb.enabled -}}
52+
{{- $server := printf "%s-mongodb" .Release.Name -}}
53+
{{- printf "mongodb://%s:27017/clowder" $server -}}
54+
{{- else -}}
55+
{{- required "Need to provide a uri for MongoDB" .Values.mongodb.uri -}}
56+
{{- end -}}
5257
{{- end -}}
5358

5459
{{/*
@@ -58,7 +63,7 @@ RabbitMQ URI
5863
{{- if .Values.rabbitmq.enabled -}}
5964
{{- $username := default "guest" .Values.rabbitmq.auth.username -}}
6065
{{- $password := default "guest" .Values.rabbitmq.auth.password -}}
61-
{{- $server := printf "%s-rabbitmq" (include "clowder.fullname" .) -}}
66+
{{- $server := printf "%s-rabbitmq" .Release.Name -}}
6267
{{- printf "amqp://%s:%s@%s/%s" $username $password $server "%2F" -}}
6368
{{- else -}}
6469
{{- required "Need to provide a uri for RabbitMQ" .Values.rabbitmq.uri -}}

templates/monitor/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ spec:
3232
name: {{ include "clowder.fullname" . }}
3333
key: rabbitmq-uri
3434
containers:
35-
- name: {{ .Chart.Name }}
35+
- name: monitor
3636
image: "{{ .Values.image.repository }}/monitor:{{ .Values.image.tag | default .Chart.AppVersion }}"
3737
imagePullPolicy: {{ .Values.image.pullPolicy }}
3838
ports:

0 commit comments

Comments
 (0)