From da67b27a4eec2e7d55f5a6a86ff7b23f763c51e8 Mon Sep 17 00:00:00 2001 From: Roberto Alfieri Date: Wed, 6 Mar 2024 15:51:06 +0100 Subject: [PATCH] Added the `openstack-operator-image` variable Added the ability to customize the "release" of the openstack-operator (index) image to deploy a different set of containers instead of the ones pinned in "latest" Defaults to `quay.io/openstack-k8s-operators/openstack-operator-index:latest` Signed-off-by: Roberto Alfieri --- examples/va/hci/control-plane/nncp/values.yaml | 1 + examples/va/nfv/ovs-dpdk/nncp/values.yaml | 1 + examples/va/nfv/sriov/nncp/values.yaml | 1 + lib/olm-openstack/kustomization.yaml | 14 ++++++++++++++ 4 files changed, 17 insertions(+) diff --git a/examples/va/hci/control-plane/nncp/values.yaml b/examples/va/hci/control-plane/nncp/values.yaml index 95c18b46c..52ac197a2 100644 --- a/examples/va/hci/control-plane/nncp/values.yaml +++ b/examples/va/hci/control-plane/nncp/values.yaml @@ -6,6 +6,7 @@ metadata: annotations: config.kubernetes.io/local-config: "true" data: + openstack-operator-image: "quay.io/openstack-k8s-operators/openstack-operator-index:latest" # nodes node_0: name: ostest-master-0 diff --git a/examples/va/nfv/ovs-dpdk/nncp/values.yaml b/examples/va/nfv/ovs-dpdk/nncp/values.yaml index dd534b7ec..61e346a78 100644 --- a/examples/va/nfv/ovs-dpdk/nncp/values.yaml +++ b/examples/va/nfv/ovs-dpdk/nncp/values.yaml @@ -6,6 +6,7 @@ metadata: annotations: config.kubernetes.io/local-config: "true" data: + openstack-operator-image: "quay.io/openstack-k8s-operators/openstack-operator-index:latest" # nodes node_0: name: ostest-master-0 diff --git a/examples/va/nfv/sriov/nncp/values.yaml b/examples/va/nfv/sriov/nncp/values.yaml index dd534b7ec..61e346a78 100644 --- a/examples/va/nfv/sriov/nncp/values.yaml +++ b/examples/va/nfv/sriov/nncp/values.yaml @@ -6,6 +6,7 @@ metadata: annotations: config.kubernetes.io/local-config: "true" data: + openstack-operator-image: "quay.io/openstack-k8s-operators/openstack-operator-index:latest" # nodes node_0: name: ostest-master-0 diff --git a/lib/olm-openstack/kustomization.yaml b/lib/olm-openstack/kustomization.yaml index 4f3ae16aa..94eac74d8 100644 --- a/lib/olm-openstack/kustomization.yaml +++ b/lib/olm-openstack/kustomization.yaml @@ -1,5 +1,19 @@ +apiVersion: kustomize.config.k8s.io/v1alpha1 +kind: Component + resources: - catalogsource.yaml - namespaces.yaml - operatorgroup.yaml - subscription.yaml + +replacements: +- source: + kind: ConfigMap + name: network-values + fieldPath: data.openstack-operator-image + targets: + - select: + kind: CatalogSource + fieldPaths: + - spec.image