diff --git a/cnpg-liquid/templates/cnpg-cluster.yaml b/cnpg-liquid/templates/cnpg-cluster.yaml index 26a1cc2..daa2e4c 100644 --- a/cnpg-liquid/templates/cnpg-cluster.yaml +++ b/cnpg-liquid/templates/cnpg-cluster.yaml @@ -31,6 +31,9 @@ spec: {{ end }} bootstrap: + initdb: + postInitSQL: + - ALTER ROLE app WITH CREATEDB; {{ if .Values.cnpg.recovery.enable }} recovery: source: {{ required "Old cluster name required" .Values.cnpg.recovery.oldClusterName }} diff --git a/liquid-code/templates/Deployments/backend-deployment.yaml b/liquid-code/templates/Deployments/backend-deployment.yaml index afcca0f..ebc64fa 100644 --- a/liquid-code/templates/Deployments/backend-deployment.yaml +++ b/liquid-code/templates/Deployments/backend-deployment.yaml @@ -4,6 +4,8 @@ metadata: name: {{ .Release.Name }}-backend-deployment labels: app: {{ .Release.Name }}-backend + annotations: + redeploy-timestamp: "{{ now | unixEpoch }}" spec: replicas: 1 selector: