summaryrefslogtreecommitdiffstats
path: root/helm
diff options
context:
space:
mode:
authorJiang Yitao <jiangyt.cn@gmail.com>2019-12-31 13:17:14 +0800
committerJiang Yitao <jiangyt.cn@gmail.com>2020-01-02 11:52:34 +0800
commit5aeb88ee6cd2244d093ab42428d75940381132e9 (patch)
treefc41819656e2b2b8c9dcaef6ed82fc9e286de8f6 /helm
parentc25162aac75b4ee932185984cae153ee912dbeb4 (diff)
downloadwekan-5aeb88ee6cd2244d093ab42428d75940381132e9.tar.gz
wekan-5aeb88ee6cd2244d093ab42428d75940381132e9.tar.bz2
wekan-5aeb88ee6cd2244d093ab42428d75940381132e9.zip
fix: k8s templates update for helm
Why: This change addresses the need by: 1. upgrade mongo replica version 2. access mongo via service url 3. change the expose servicePort to numeric Signed-off-by: Jiang Yitao <jiangyt.cn@gmail.com>
Diffstat (limited to 'helm')
-rw-r--r--helm/wekan/requirements.yaml2
-rw-r--r--helm/wekan/templates/_helpers.tpl2
-rw-r--r--helm/wekan/templates/ingress.yaml2
3 files changed, 3 insertions, 3 deletions
diff --git a/helm/wekan/requirements.yaml b/helm/wekan/requirements.yaml
index e2492a91..d19fc638 100644
--- a/helm/wekan/requirements.yaml
+++ b/helm/wekan/requirements.yaml
@@ -1,5 +1,5 @@
dependencies:
- name: mongodb-replicaset
- version: 3.6.x
+ version: 3.11.x
repository: "https://kubernetes-charts.storage.googleapis.com/"
condition: mongodb-replicaset.enabled
diff --git a/helm/wekan/templates/_helpers.tpl b/helm/wekan/templates/_helpers.tpl
index 68f71ef7..7f333301 100644
--- a/helm/wekan/templates/_helpers.tpl
+++ b/helm/wekan/templates/_helpers.tpl
@@ -75,7 +75,7 @@ else use user-provided URL.
{{- if (index .Values "mongodb-replicaset" "enabled") -}}
{{- $count := (int (index .Values "mongodb-replicaset" "replicas")) -}}
{{- $release := .Release.Name -}}
-mongodb://{{- range $v := until $count }}{{ $release }}-mongodb-replicaset-{{ $v }}.{{ $release }}-mongodb-replicaset:27017{{ if ne $v (sub $count 1) }},{{- end -}}{{- end -}}?replicaSet={{ index .Values "mongodb-replicaset" "replicaSetName" }}
+mongodb://{{ $release }}-mongodb-replicaset:27017/admin?replicaSet={{ index .Values "mongodb-replicaset" "replicaSetName" }}
{{- else -}}
{{- index .Values "mongodb-replicaset" "url" -}}
{{- end -}}
diff --git a/helm/wekan/templates/ingress.yaml b/helm/wekan/templates/ingress.yaml
index d63c21c3..dd85ef55 100644
--- a/helm/wekan/templates/ingress.yaml
+++ b/helm/wekan/templates/ingress.yaml
@@ -35,6 +35,6 @@ spec:
- path: {{ $ingressPath }}
backend:
serviceName: {{ $fullName }}
- servicePort: http
+ servicePort: 80
{{- end }}
{{- end }}