Merge "[CLI] Add Kubernetes v1.17 compatibility"
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Fri, 17 Jul 2020 15:59:22 +0000 (15:59 +0000)
committerGerrit Code Review <gerrit@onap.org>
Fri, 17 Jul 2020 15:59:22 +0000 (15:59 +0000)
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: