Stavros kois 1 жил өмнө
parent
commit
1f7e2637dc

+ 6 - 0
library/ix-dev/community/vikunja/templates/_postgres.tpl

@@ -0,0 +1,6 @@
+{{- define "vikunja.postgres" -}}
+workload:
+{{- include "ix.v1.common.app.postgres" (dict "secretName" "postgres-creds"
+                                              "resources" .Values.resources
+                                              "ixChartContext" .Values.ixChartContext) | nindent 2 }}
+{{- end -}}

+ 6 - 0
library/ix-dev/community/vikunja/templates/_redis.tpl

@@ -0,0 +1,6 @@
+{{- define "rvikunja.redis" -}}
+workload:
+{{- include "ix.v1.common.app.redis" (dict  "secretName" "redis-creds"
+                                            "resources" .Values.resources) | nindent 2 }}
+
+{{- end -}}

+ 27 - 0
library/ix-dev/community/vikunja/templates/_service.tpl

@@ -0,0 +1,27 @@
+{{- define "vikunja.service" -}}
+service:
+  vikunja:
+    enabled: true
+    primary: true
+    type: NodePort
+    targetSelector: vikunja
+    ports:
+      webui:
+        enabled: true
+        primary: true
+        port: {{ .Values.vikunjaNetwork.webPort }}
+        nodePort: {{ .Values.vikunjaNetwork.webPort }}
+        targetSelector: vikunja
+  redis:
+    enabled: true
+    type: ClusterIP
+    targetSelector: redis
+    ports:
+      redis:
+        enabled: true
+        primary: true
+        port: 6379
+        targetPort: 6379
+        targetSelector: redis
+  {{- include "ix.v1.common.app.postgresService" $ | nindent 2 }}
+{{- end -}}

+ 1 - 1
library/ix-dev/community/vikunja/upgrade_info.json

@@ -1 +1 @@
-{ "filename": "values.yaml", "keys": ["image", "apiImage", "nginxImage"] }
+{ "filename": "values.yaml", "keys": ["image", "frontendImage", "nginxImage"] }

+ 1 - 1
library/ix-dev/community/vikunja/upgrade_strategy

@@ -11,7 +11,7 @@ ENUMS = {
     'image': {
         'RE_STABLE_VERSION': RE_STABLE_VERSION,
     },
-    'apiImage': {
+    'frontendImage': {
         'RE_STABLE_VERSION': RE_STABLE_VERSION,
     },
     'nginxImage': {