[CLI] Add Kubernetes v1.17 compatibility 52/110152/2
authorkwasiel <katarzyna.wasiel@nokia.com>
Tue, 14 Jul 2020 10:27:53 +0000 (10:27 +0000)
committerKatarzyna Wasiel <katarzyna.wasiel@nokia.com>
Wed, 15 Jul 2020 13:58:18 +0000 (13:58 +0000)
Issue-ID: OOM-2450
Signed-off-by: Katarzyna Wasiel <katarzyna.wasiel@nokia.com>
Change-Id: I9d599707a4d11eef815aa3c04e8756c893151f56

kubernetes/cli/templates/deployment.yaml

index 58fc666..539279f 100644 (file)
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: {{ include "common.fullname" . }}
@@ -24,6 +24,9 @@ metadata:
     heritage: {{ .Release.Service }}
 spec:
   replicas: {{ .Values.replicaCount }}
+  selector:
+    matchLabels:
+      app: {{ include "common.name" . }}
   template:
     metadata:
       labels: