Skip to content

Commit

Permalink
Move openstack-operator-version variable to olm-values CM
Browse files Browse the repository at this point in the history
This is a followup to #115 [1] since that approach failed while
deploying OLM resources.

Also, `openstack-operator-version` variable has been moved to
a new CM called `olm-values`

[1] #115

Signed-off-by: Roberto Alfieri <[email protected]>
  • Loading branch information
rebtoor committed Mar 6, 2024
1 parent 1904f47 commit 8357f28
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
4 changes: 3 additions & 1 deletion examples/common/olm/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
resources:
components:
- ../../../lib/olm-deps
- ../../../lib/olm-openstack
resources:
- values.yaml
9 changes: 9 additions & 0 deletions examples/common/olm/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# local-config: referenced, but not emitted by kustomize
apiVersion: v1
kind: ConfigMap
metadata:
name: olm-values
annotations:
config.kubernetes.io/local-config: "true"
data:
openstack-operator-image: "quay.io/openstack-k8s-operators/openstack-operator-index:latest"
3 changes: 3 additions & 0 deletions lib/olm-deps/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

resources:
- cert_manager_namespace.yaml
- cert_manager_operatorgroup.yaml
Expand Down
2 changes: 1 addition & 1 deletion lib/olm-openstack/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ resources:
replacements:
- source:
kind: ConfigMap
name: network-values
name: olm-values
fieldPath: data.openstack-operator-image
targets:
- select:
Expand Down

0 comments on commit 8357f28

Please sign in to comment.