From 6edc306daf78162f756330795f813fef427a0288 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Thu, 19 Sep 2019 07:22:08 -0400 Subject: [PATCH] Update Deployments to use the apps/v1 API version The previous version, apps/v1beta1, is deprecated and will be removed in Kubernetes 1.16 --- config/controller.yaml | 5 ++++- config/webhook.yaml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/config/controller.yaml b/config/controller.yaml index 1467af71944..0dd6ca098e3 100644 --- a/config/controller.yaml +++ b/config/controller.yaml @@ -11,7 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: tekton-pipelines-controller @@ -21,6 +21,9 @@ metadata: app.kubernetes.io/component: controller spec: replicas: 1 + selector: + labels: + app: tekton-pipelines-controller template: metadata: annotations: diff --git a/config/webhook.yaml b/config/webhook.yaml index 93a340930e8..5b3deb1b277 100644 --- a/config/webhook.yaml +++ b/config/webhook.yaml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: tekton-pipelines-webhook @@ -22,6 +22,9 @@ metadata: app.kubernetes.io/component: webhook-controller spec: replicas: 1 + selector: + labels: + app: tekton-pipelines-webhook template: metadata: annotations: