Merge "[MULTICLOUD] Make MULTICLOUD compatible with Kubernetes v1.17"
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 24 Jul 2020 08:16:53 +0000 (08:16 +0000)
committerGerrit Code Review <gerrit@onap.org>
Fri, 24 Jul 2020 08:16:53 +0000 (08:16 +0000)
kubernetes/multicloud/charts/multicloud-azure/templates/deployment.yaml
kubernetes/multicloud/charts/multicloud-fcaps/templates/deployment.yaml
kubernetes/multicloud/charts/multicloud-k8s/templates/deployment.yaml
kubernetes/multicloud/charts/multicloud-pike/templates/deployment.yaml
kubernetes/multicloud/charts/multicloud-prometheus/charts/prometheus-alertmanager/templates/deployment.yaml
kubernetes/multicloud/charts/multicloud-prometheus/charts/prometheus-grafana/templates/deployment.yaml
kubernetes/multicloud/charts/multicloud-prometheus/templates/deployment.yaml
kubernetes/multicloud/charts/multicloud-starlingx/templates/deployment.yaml
kubernetes/multicloud/charts/multicloud-vio/templates/deployment.yaml
kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml
kubernetes/multicloud/templates/deployment.yaml

index 1a6d0b7..312c466 100644 (file)
@@ -15,7 +15,7 @@
 # limitations under the License.
 */}}
 
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: {{ include "common.fullname" . }}
@@ -29,7 +29,7 @@ spec:
   replicas: {{ .Values.replicaCount }}
   selector:
     matchLabels:
-      app: multicloud-azure
+      app: {{ include "common.name" . }}
   template:
     metadata:
       labels:
index 30d521a..110f9aa 100644 (file)
@@ -14,7 +14,7 @@
 # limitations under the License.
 */}}
 
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: {{ include "common.fullname" . }}
@@ -114,4 +114,4 @@ spec:
          name: {{ include "common.fullname" . }}-log-configmap
      imagePullSecrets:
      - name: "{{ include "common.namespace" . }}-docker-registry-key"
-     restartPolicy: Always
\ No newline at end of file
+     restartPolicy: Always
index bf4a944..a64324a 100644 (file)
@@ -14,7 +14,7 @@
 # limitations under the License.
 */}}
 
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: {{ include "common.fullname" . }}
@@ -25,6 +25,9 @@ metadata:
     release: {{ include "common.release" . }}
     heritage: {{ .Release.Service }}
 spec:
+  selector:
+    matchLabels:
+      app: {{ include "common.name" . }}
   replicas: {{ .Values.replicaCount }}
   template:
     metadata:
index 4f6b038..76f3e8c 100644 (file)
@@ -14,7 +14,7 @@
 # limitations under the License.
 */}}
 
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: {{ include "common.fullname" . }}
index 0e500df..d81d638 100644 (file)
@@ -16,7 +16,7 @@
 
 {{- if .Values.global.alertmanager.enabled -}}
 
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: {{ include "common.fullname" . }}
@@ -97,4 +97,4 @@ spec:
       - name: "{{ include "common.namespace" . }}-docker-registry-key"
       restartPolicy: Always
 
-{{- end -}}
\ No newline at end of file
+{{- end -}}
index 176a79b..7fc8ac8 100644 (file)
@@ -16,7 +16,7 @@
 
 {{- if .Values.global.grafana.enabled -}}
 
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: {{ include "common.fullname" . }}
@@ -136,4 +136,4 @@ spec:
       - name: "{{ include "common.namespace" . }}-docker-registry-key"
       restartPolicy: Always
 
-{{- end -}}
\ No newline at end of file
+{{- end -}}
index c60237d..cb76bac 100644 (file)
@@ -16,7 +16,7 @@
 
 {{- if .Values.global.prometheus.enabled -}}
 
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: {{ include "common.fullname" . }}
@@ -122,4 +122,4 @@ spec:
       - name: "{{ include "common.namespace" . }}-docker-registry-key"
       restartPolicy: Always
 
-{{- end -}}
\ No newline at end of file
+{{- end -}}
index f132cc7..80e9a97 100644 (file)
@@ -14,7 +14,7 @@
 # limitations under the License.
 */}}
 
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: {{ include "common.fullname" . }}
index 93908e9..5cab1ad 100644 (file)
@@ -15,7 +15,7 @@
 # limitations under the License.
 */}}
 
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: {{ include "common.fullname" . }}
@@ -29,7 +29,7 @@ spec:
   replicas: {{ .Values.replicaCount }}
   selector:
     matchLabels:
-      app: multicloud-vio
+      app: {{ include "common.name" . }}
   template:
     metadata:
       labels:
index dc8744c..b6773a5 100644 (file)
@@ -15,7 +15,7 @@
 # limitations under the License.
 */}}
 
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: {{ include "common.fullname" . }}
index 3d75b78..8cae0b6 100644 (file)
@@ -15,7 +15,7 @@
 # limitations under the License.
 */}}
 
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: {{ include "common.fullname" . }}