Skip to content

Commit

Permalink
Update kustomization.yaml files to replace deprecated fields
Browse files Browse the repository at this point in the history
Run `kustomize edit fix` on each of our kustomization.yaml files
to replace use of `patchesJson6902` with `patches` since it has
been deprecated in kustomize v5 and will be removed in a future
release when switching to the `kustomize.config.k8s.io/v1` API
  • Loading branch information
AlanGreene authored and tekton-robot committed Apr 28, 2023
1 parent a5ca0b2 commit 5db0749
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 38 deletions.
42 changes: 21 additions & 21 deletions overlays/installer/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2020 The Tekton Authors
# Copyright 2020-2023 The Tekton Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -16,25 +16,25 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../base/200-clusterrole-backend.yaml
- ../../../base/200-clusterrole-tenant.yaml
- ../../../base/200-role.yaml
- ../../../base/201-clusterrolebinding-backend.yaml
- ../../../base/201-rolebinding.yaml
- ../../../base/202-extension-crd.yaml
- ../../../base/203-serviceaccount.yaml
- ../../../base/300-deployment.yaml
- ../../../base/300-service.yaml
- ../../../base/300-config-info.yaml
- ../../../base/200-clusterrole-backend.yaml
- ../../../base/200-clusterrole-tenant.yaml
- ../../../base/200-role.yaml
- ../../../base/201-clusterrolebinding-backend.yaml
- ../../../base/201-rolebinding.yaml
- ../../../base/202-extension-crd.yaml
- ../../../base/203-serviceaccount.yaml
- ../../../base/300-deployment.yaml
- ../../../base/300-service.yaml
- ../../../base/300-config-info.yaml
images:
- name: dashboardImage
newName: ko://github.com/tektoncd/dashboard/cmd/dashboard
patchesJson6902:
- target:
group: apps
version: v1
kind: Deployment
name: tekton-dashboard
namespace: tekton-pipelines
path: ../../patches/installer/deployment-patch.yaml
- name: dashboardImage
newName: ko://github.com/tektoncd/dashboard/cmd/dashboard
namespace: tekton-dashboard
patches:
- path: ../../patches/installer/deployment-patch.yaml
target:
group: apps
kind: Deployment
name: tekton-dashboard
namespace: tekton-pipelines
version: v1
4 changes: 2 additions & 2 deletions overlays/installer/read-only/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2020 The Tekton Authors
# Copyright 2020-2023 The Tekton Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -16,4 +16,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base
- ../base
30 changes: 15 additions & 15 deletions overlays/installer/read-write/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base
- 100-namespace.yaml
patchesJson6902:
- target:
group: rbac.authorization.k8s.io
version: v1
kind: ClusterRole
name: tekton-dashboard-backend
path: ../../patches/read-write/clusterrole-backend-patch.yaml
- target:
group: rbac.authorization.k8s.io
version: v1
kind: ClusterRole
name: tekton-dashboard-tenant
path: ../../patches/read-write/clusterrole-tenant-patch.yaml
- ../base
- 100-namespace.yaml
patches:
- path: ../../patches/read-write/clusterrole-backend-patch.yaml
target:
group: rbac.authorization.k8s.io
kind: ClusterRole
name: tekton-dashboard-backend
version: v1
- path: ../../patches/read-write/clusterrole-tenant-patch.yaml
target:
group: rbac.authorization.k8s.io
kind: ClusterRole
name: tekton-dashboard-tenant
version: v1
14 changes: 14 additions & 0 deletions tekton/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2021-2023 The Tekton Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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: kustomize.config.k8s.io/v1beta1
kind: Kustomization
Expand Down

0 comments on commit 5db0749

Please sign in to comment.