Make COMMON/POSTGRES compatible with Kubernetes v1.17 93/109893/1
authormilaszki <daniel.milaszkiewicz@nokia.com>
Tue, 7 Jul 2020 11:28:15 +0000 (11:28 +0000)
committermilaszki <daniel.milaszkiewicz@nokia.com>
Tue, 7 Jul 2020 11:28:15 +0000 (11:28 +0000)
Issue-ID: OOM-2479

Signed-off-by: Daniel Milaszkiewicz <daniel.milaszkiewicz@nokia.com>
Change-Id: Ic64b84db2c192cd5d737b5ef6d59aa4b4c20a48e

kubernetes/common/postgres/templates/_deployment.tpl

index b1aae5f..456aa32 100644 (file)
@@ -18,7 +18,7 @@
 {{- define "common.postgres.deployment" -}}
   {{- $dot := .dot }}
   {{- $pgMode := .pgMode }}
-apiVersion: apps/v1beta1
+apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: {{ include "common.fullname" $dot }}-{{ $pgMode }}
@@ -32,6 +32,9 @@ metadata:
 spec:
   serviceName: {{ $dot.Values.service.name }}
   replicas: 1
+  selector:
+    matchLabels:
+      app: {{ include "common.name" $dot }}-{{ $pgMode }}
   template:
     metadata:
       labels: