summaryrefslogtreecommitdiffstats
path: root/kubernetes/common
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-07-08 06:17:23 +0000
committerGerrit Code Review <gerrit@onap.org>2020-07-08 06:17:23 +0000
commitd1635f1e74997d31a40b75106e98f877e5745f2b (patch)
tree59cc63d16851790aaff480f918ee50851add4685 /kubernetes/common
parent47db3c69440081624009366f94cbaec0377d6858 (diff)
parentbdcb4166ed1d5c9a75f8c0c34409c55cd0a3cbc7 (diff)
Merge "Make COMMON/POSTGRES compatible with Kubernetes v1.17"
Diffstat (limited to 'kubernetes/common')
-rw-r--r--kubernetes/common/postgres/templates/_deployment.tpl5
1 files changed, 4 insertions, 1 deletions
diff --git a/kubernetes/common/postgres/templates/_deployment.tpl b/kubernetes/common/postgres/templates/_deployment.tpl
index b1aae5f50d..456aa32bc0 100644
--- a/kubernetes/common/postgres/templates/_deployment.tpl
+++ b/kubernetes/common/postgres/templates/_deployment.tpl
@@ -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: