From 13496c8a71bf1e4b3c6c962a80f01a2c399368a1 Mon Sep 17 00:00:00 2001 From: oksanabaza Date: Thu, 8 Aug 2024 16:50:22 +0100 Subject: [PATCH] codflare-operator manifests kustomize v5 upgrade --- config/default/kustomization.yaml | 16 +++++++++------- config/e2e/kustomization.yaml | 2 +- config/manager/kustomization.yaml | 24 ++++++++++++++++++------ config/scorecard/kustomization.yaml | 4 ++-- 4 files changed, 30 insertions(+), 16 deletions(-) diff --git a/config/default/kustomization.yaml b/config/default/kustomization.yaml index e4f0687af..554ae2268 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 772370da6..6e8cdf4b7 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 847eca176..83b243562 100644 --- a/config/manager/kustomization.yaml +++ b/config/manager/kustomization.yaml @@ -11,11 +11,23 @@ configMapGenerator: configurations: - params.yaml -vars: -- name: codeflare_operator_controller_image - objref: +# vars: +# - name: codeflare_operator_controller_image +# objref: +# kind: ConfigMap +# name: stack-config +# apiVersion: v1 +# fieldref: +# fieldpath: data.codeflare-operator-controller-image + +replacements: +- source: kind: ConfigMap name: stack-config - apiVersion: v1 - fieldref: - fieldpath: data.codeflare-operator-controller-image + version: v1 + 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 50cd2d084..a9a84a85a 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