From d2a36f0cb6277011f1d01507d4f83f8ba8d6f9a6 Mon Sep 17 00:00:00 2001 From: Pranav Singh Date: Sat, 7 Dec 2024 19:50:50 +0530 Subject: [PATCH] [kustomize] fix deprecated patch fields Signed-off-by: Pranav Singh --- pkg/resources/config/manifests/kustomization.yaml | 12 +++++++----- pkg/resources/config/samples/kustomization.yaml | 10 ++++++++-- pkg/resources/config/scorecard/kustomization.yaml | 4 ++-- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/pkg/resources/config/manifests/kustomization.yaml b/pkg/resources/config/manifests/kustomization.yaml index 1af136a8a1..c382591f96 100644 --- a/pkg/resources/config/manifests/kustomization.yaml +++ b/pkg/resources/config/manifests/kustomization.yaml @@ -19,9 +19,9 @@ kind: Kustomization # Labels to add to all resources and selectors. labels: - - pairs: - app: camel-k - includeSelectors: true +- includeSelectors: true + pairs: + app: camel-k resources: - ../manager @@ -31,8 +31,10 @@ resources: - ../rbac - ../rbac/namespaced -patchesStrategicMerge: -- patch-delete-user-cluster-role.yaml +patches: + - path: patch-delete-user-cluster-role.yaml + target: + kind: ClusterRole images: - name: docker.io/apache/camel-k newName: docker.io/apache/camel-k diff --git a/pkg/resources/config/samples/kustomization.yaml b/pkg/resources/config/samples/kustomization.yaml index b7fbc0c90a..550537dbee 100644 --- a/pkg/resources/config/samples/kustomization.yaml +++ b/pkg/resources/config/samples/kustomization.yaml @@ -20,6 +20,10 @@ # customizes the integration platform custom resource # Edit the patch manually to add required configuration # + +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + resources: - bases/camel_v1_integrationplatform.yaml - bases/camel_v1_integrationprofile.yaml @@ -30,5 +34,7 @@ resources: - bases/camel_v1_kamelet.yaml - bases/camel_v1_pipe.yaml -patchesStrategicMerge: -- patch-integration-platform.yaml +patches: + - path: patch-integration-platform.yaml + target: + kind: IntegrationPlatform diff --git a/pkg/resources/config/scorecard/kustomization.yaml b/pkg/resources/config/scorecard/kustomization.yaml index 7fbd50703c..b9cea2ad2a 100644 --- a/pkg/resources/config/scorecard/kustomization.yaml +++ b/pkg/resources/config/scorecard/kustomization.yaml @@ -17,7 +17,7 @@ resources: - bases/config.yaml -patchesJson6902: +patches: - path: patches/basic.config.yaml target: group: scorecard.operatorframework.io @@ -30,4 +30,4 @@ patchesJson6902: version: v1alpha3 kind: Configuration name: config -# +kubebuilder:scaffold:patchesJson6902 +# +kubebuilder:scaffold:patches