From 5c2d89b897c4df42e06f94622f857dc4d7adc8f8 Mon Sep 17 00:00:00 2001 From: jannfis Date: Fri, 27 Sep 2019 19:58:45 +0200 Subject: [PATCH] Use apps/v1 API for Deployment resources (#38) --- guestbook/guestbook-ui-deployment.yaml | 2 +- helm-guestbook/templates/deployment.yaml | 2 +- jsonnet-guestbook-tla/guestbook-ui.jsonnet | 4 ++-- jsonnet-guestbook/guestbook-ui.jsonnet | 2 +- ksonnet-guestbook/components/guestbook-ui.jsonnet | 2 +- kustomize-guestbook/guestbook-ui-deployment.yaml | 2 +- plugins/kustomized-helm/overlays/guestbook-deployment.yaml | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/guestbook/guestbook-ui-deployment.yaml b/guestbook/guestbook-ui-deployment.yaml index f9b5a83..8a0975e 100644 --- a/guestbook/guestbook-ui-deployment.yaml +++ b/guestbook/guestbook-ui-deployment.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: name: guestbook-ui diff --git a/helm-guestbook/templates/deployment.yaml b/helm-guestbook/templates/deployment.yaml index 4be0e2d..980df25 100644 --- a/helm-guestbook/templates/deployment.yaml +++ b/helm-guestbook/templates/deployment.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "helm-guestbook.fullname" . }} diff --git a/jsonnet-guestbook-tla/guestbook-ui.jsonnet b/jsonnet-guestbook-tla/guestbook-ui.jsonnet index 5524600..7ecdfb2 100644 --- a/jsonnet-guestbook-tla/guestbook-ui.jsonnet +++ b/jsonnet-guestbook-tla/guestbook-ui.jsonnet @@ -27,7 +27,7 @@ function ( } }, { - "apiVersion": "apps/v1beta2", + "apiVersion": "apps/v1", "kind": "Deployment", "metadata": { "name": name @@ -62,4 +62,4 @@ function ( } } } - ] \ No newline at end of file + ] diff --git a/jsonnet-guestbook/guestbook-ui.jsonnet b/jsonnet-guestbook/guestbook-ui.jsonnet index c5c0dbc..a4b1aa7 100644 --- a/jsonnet-guestbook/guestbook-ui.jsonnet +++ b/jsonnet-guestbook/guestbook-ui.jsonnet @@ -21,7 +21,7 @@ local params = import 'params.libsonnet'; } }, { - "apiVersion": "apps/v1beta2", + "apiVersion": "apps/v1", "kind": "Deployment", "metadata": { "name": params.name diff --git a/ksonnet-guestbook/components/guestbook-ui.jsonnet b/ksonnet-guestbook/components/guestbook-ui.jsonnet index 25ae460..b615bdb 100644 --- a/ksonnet-guestbook/components/guestbook-ui.jsonnet +++ b/ksonnet-guestbook/components/guestbook-ui.jsonnet @@ -21,7 +21,7 @@ local params = std.extVar("__ksonnet/params").components["guestbook-ui"]; } }, { - "apiVersion": "apps/v1beta2", + "apiVersion": "apps/v1", "kind": "Deployment", "metadata": { "name": params.name diff --git a/kustomize-guestbook/guestbook-ui-deployment.yaml b/kustomize-guestbook/guestbook-ui-deployment.yaml index f9b5a83..8a0975e 100644 --- a/kustomize-guestbook/guestbook-ui-deployment.yaml +++ b/kustomize-guestbook/guestbook-ui-deployment.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: name: guestbook-ui diff --git a/plugins/kustomized-helm/overlays/guestbook-deployment.yaml b/plugins/kustomized-helm/overlays/guestbook-deployment.yaml index 08c62e9..fd424c4 100644 --- a/plugins/kustomized-helm/overlays/guestbook-deployment.yaml +++ b/plugins/kustomized-helm/overlays/guestbook-deployment.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: name: release-name-helm-guestbook