From d609c56fcb0ead461a8d58cb9b17a8d8eb997cd5 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Fri, 26 Apr 2024 22:42:29 +0300 Subject: [PATCH] fix --- .../templates/postgres-deployment.yaml | 27 ++++++++++++++++--- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/library/ix-dev/charts/nextcloud/templates/postgres-deployment.yaml b/library/ix-dev/charts/nextcloud/templates/postgres-deployment.yaml index 0a40e5a404c..fb5f8acf994 100644 --- a/library/ix-dev/charts/nextcloud/templates/postgres-deployment.yaml +++ b/library/ix-dev/charts/nextcloud/templates/postgres-deployment.yaml @@ -1,8 +1,27 @@ {{ $values := (. | mustDeepCopy) }} -{{ $_ := set $values "common" (dict "nameSuffix" "postgres-nc") }} -{{ include "common.deployment.common_config" $values | nindent 0 }} -spec: {{ include "common.deployment.common_spec" $values | nindent 2 }} - template: {{ include "common.deployment.pod.metadata" $values | nindent 4 }} +{{ $_ := set $values "common" (dict "nameSuffix" "postgres") }} + +apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} +kind: Deployment +metadata: + name: {{ template "common.names.fullname" . }}-postgres-nc + labels: + app.kubernetes.io/name: {{ template "common.names.name" . }}-postgres + app.kubernetes.io/instance: {{ .Release.Name }}-postgres +spec: + strategy: + type: "Recreate" + selector: + matchLabels: + app.kubernetes.io/name: {{ template "common.names.name" . }}-postgres + app.kubernetes.io/instance: {{ .Release.Name }}-postgres + template: + metadata: + name: {{ template "common.names.fullname" . }} + labels: + app.kubernetes.io/name: {{ template "common.names.name" . }}-postgres + app.kubernetes.io/instance: {{ .Release.Name }}-postgres + annotations: {{ include "common.annotations" . | nindent 8 }} spec: containers: - name: {{ .Chart.Name }}-postgres