Skip to content

Commit

Permalink
Parameterize namespace in OperatorGroup (operate-first#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
vpavlin authored Apr 24, 2020
1 parent b71baed commit adafadf
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
18 changes: 18 additions & 0 deletions odh-common/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,21 @@ namespace: opendatahub
commonLabels:
opendatahub.io/component: "true"
component.opendatahub.io/name: odh-common

configMapGenerator:
- name: odh-common-config
env: params.env
generatorOptions:
disableNameSuffixHash: true

vars:
- name: namespace
objref:
kind: ConfigMap
name: odh-common-config
apiVersion: v1
fieldref:
fieldpath: metadata.namespace

configurations:
- params.yaml
2 changes: 1 addition & 1 deletion odh-common/base/operatorgroup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata:
name: opendatahub
spec:
targetNamespaces:
- opendatahub
- $(namespace)
1 change: 1 addition & 0 deletions odh-common/base/params.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
namespace=opendatahub
4 changes: 4 additions & 0 deletions odh-common/base/params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
varReference:
- path: spec/targetNamespaces
kind: OperatorGroup
apiGroup: operators.coreos.com

0 comments on commit adafadf

Please sign in to comment.