Эх сурвалжийг харах

planka - replace boilerplate with template

Stavros kois 1 жил өмнө
parent
commit
3b3ac17e2b

+ 3 - 3
library/ix-dev/community/planka/Chart.lock

@@ -1,6 +1,6 @@
 dependencies:
 - name: common
   repository: file://../../../common
-  version: 1.1.1
-digest: sha256:a7dbe3e4d42dbcd4325776e5e01a1d630c7f185f79e7ebf22b1b9cc80f56eed7
-generated: "2023-10-18T08:08:50.240697425+03:00"
+  version: 1.2.1
+digest: sha256:d695592ea5213fe64453171205ca326015d02df3888a7858becc0c733b0de4c7
+generated: "2023-11-06T19:55:14.483127524+02:00"

+ 2 - 2
library/ix-dev/community/planka/Chart.yaml

@@ -3,7 +3,7 @@ description: Planka is an Elegant open source project tracking
 annotations:
   title: Planka
 type: application
-version: 1.1.2
+version: 1.1.3
 apiVersion: v2
 appVersion: 1.14.3
 kubeVersion: '>=1.16.0-0'
@@ -14,7 +14,7 @@ maintainers:
 dependencies:
   - name: common
     repository: file://../../../common
-    version: 1.1.1
+    version: 1.2.1
 home: https://github.com/plankanban/planka
 icon: https://media.sys.truenas.net/apps/planka/icons/icon.png
 sources:

BIN
library/ix-dev/community/planka/charts/common-1.1.1.tgz


BIN
library/ix-dev/community/planka/charts/common-1.2.1.tgz


+ 5 - 31
library/ix-dev/community/planka/templates/_persistence.tpl

@@ -68,35 +68,9 @@ persistence:
           mountPath: /mnt/directories{{ $storage.mountPath }}
   {{- end }}
 
-  {{/* Database */}}
-  postgresdata:
-    enabled: true
-    type: {{ .Values.plankaStorage.pgData.type }}
-    datasetName: {{ .Values.plankaStorage.pgData.datasetName | default "" }}
-    hostPath: {{ .Values.plankaStorage.pgData.hostPath | default "" }}
-    targetSelector:
-      # Postgres pod
-      postgres:
-        # Postgres container
-        postgres:
-          mountPath: /var/lib/postgresql/data
-        # Postgres - Permissions container
-        # Different than the 01-permissions
-        permissions:
-          mountPath: /mnt/directories/postgres_data
-  postgresbackup:
-    enabled: true
-    type: {{ .Values.plankaStorage.pgBackup.type }}
-    datasetName: {{ .Values.plankaStorage.pgBackup.datasetName | default "" }}
-    hostPath: {{ .Values.plankaStorage.pgBackup.hostPath | default "" }}
-    targetSelector:
-      # Postgres backup pod
-      postgresbackup:
-        # Postgres backup container
-        postgresbackup:
-          mountPath: /postgres_backup
-        # Postgres - Permissions container
-        # Different than the 01-permissions
-        permissions:
-          mountPath: /mnt/directories/postgres_backup
+
+  {{- include "ix.v1.common.app.postgresPersistence"
+      (dict "pgData" .Values.plankaStorage.pgData
+            "pgBackup" .Values.plankaStorage.pgBackup
+      ) | nindent 2 }}
 {{- end -}}

+ 2 - 11
library/ix-dev/community/planka/templates/_service.tpl

@@ -12,15 +12,6 @@ service:
         port: {{ .Values.plankaNetwork.webPort }}
         nodePort: {{ .Values.plankaNetwork.webPort }}
         targetSelector: planka
-  postgres:
-    enabled: true
-    type: ClusterIP
-    targetSelector: postgres
-    ports:
-      postgres:
-        enabled: true
-        primary: true
-        port: 5432
-        targetPort: 5432
-        targetSelector: postgres
+  {{- include "ix.v1.common.app.postgresService" $ | nindent 2 }}
+
 {{- end -}}