From 0ed42cce0723f3680c055ae45532c8a464ba362c Mon Sep 17 00:00:00 2001 From: oksanabaza Date: Wed, 21 Aug 2024 12:26:13 +0100 Subject: [PATCH] codflare-operator manifests kustomize v5 upgrade --- config/default/kustomization.yaml | 16 +++++++++------- config/e2e/kustomization.yaml | 2 +- config/manager/kustomization.yaml | 16 ++++++++++------ config/scorecard/kustomization.yaml | 4 ++-- 4 files changed, 22 insertions(+), 16 deletions(-) diff --git a/config/default/kustomization.yaml b/config/default/kustomization.yaml index e4f0687a..554ae226 100644 --- a/config/default/kustomization.yaml +++ b/config/default/kustomization.yaml @@ -9,20 +9,22 @@ namespace: openshift-operators namePrefix: codeflare-operator- # Labels to add to all resources and selectors. -commonLabels: - app.kubernetes.io/name: codeflare-operator - app.kubernetes.io/part-of: codeflare - -bases: +labels: + - pairs: + app.kubernetes.io/name: codeflare-operator + app.kubernetes.io/part-of: codeflare + includeSelectors: true +resources: - ../crd - ../rbac - ../manager - ../webhook + - metrics_service.yaml # [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'. # - ../prometheus -resources: - - metrics_service.yaml +# resources: +# - metrics_service.yaml patches: - path: manager_webhook_patch.yaml diff --git a/config/e2e/kustomization.yaml b/config/e2e/kustomization.yaml index 772370da..6e8cdf4b 100644 --- a/config/e2e/kustomization.yaml +++ b/config/e2e/kustomization.yaml @@ -1,6 +1,6 @@ namespace: openshift-operators -bases: +resources: - config.yaml - ../default diff --git a/config/manager/kustomization.yaml b/config/manager/kustomization.yaml index 847eca17..a87d335f 100644 --- a/config/manager/kustomization.yaml +++ b/config/manager/kustomization.yaml @@ -11,11 +11,15 @@ configMapGenerator: configurations: - params.yaml -vars: -- name: codeflare_operator_controller_image - objref: +replacements: +- source: kind: ConfigMap name: stack-config - apiVersion: v1 - fieldref: - fieldpath: data.codeflare-operator-controller-image + version: v1 + fieldPath: data.codeflare-operator-controller-image + targets: + - select: + kind: Deployment + name: manager + fieldPaths: + - spec.template.spec.containers.0.image \ No newline at end of file diff --git a/config/scorecard/kustomization.yaml b/config/scorecard/kustomization.yaml index 50cd2d08..a9a84a85 100644 --- a/config/scorecard/kustomization.yaml +++ b/config/scorecard/kustomization.yaml @@ -1,6 +1,6 @@ resources: - bases/config.yaml -patchesJson6902: +patches: - path: patches/basic.config.yaml target: group: scorecard.operatorframework.io @@ -13,4 +13,4 @@ patchesJson6902: version: v1alpha3 kind: Configuration name: config -#+kubebuilder:scaffold:patchesJson6902 +#+kubebuilder:scaffold:patches