From 9eea33f5c372e1a23d524f825d647017e08218c9 Mon Sep 17 00:00:00 2001 From: Jiang Yitao Date: Thu, 26 Dec 2019 14:38:19 +0800 Subject: [PATCH] fix: compatible with k8s 1.16 api Why: This change addresses the need by: Signed-off-by: Jiang Yitao --- tekton/templates/controller.yaml | 5 ++++- tekton/templates/webhook.yaml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tekton/templates/controller.yaml b/tekton/templates/controller.yaml index d6a4842..5001ce7 100644 --- a/tekton/templates/controller.yaml +++ b/tekton/templates/controller.yaml @@ -11,12 +11,15 @@ # 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: {{ template "tekton.name" . }}-controller spec: replicas: 1 + selector: + matchLabels: + app: {{ template "tekton.name" . }}-controller template: metadata: labels: diff --git a/tekton/templates/webhook.yaml b/tekton/templates/webhook.yaml index 0659baa..9df7df6 100644 --- a/tekton/templates/webhook.yaml +++ b/tekton/templates/webhook.yaml @@ -13,12 +13,15 @@ # See the License for the specific language governing permissions and # limitations under the License. -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "tekton.name" . }}-webhook spec: replicas: 1 + selector: + matchLabels: + app: {{ template "tekton.name" . }}-webhook template: metadata: labels: