File tree Expand file tree Collapse file tree 4 files changed +16
-6
lines changed
charts/ibm-cpd-db2wh-operandregistry Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ SOURCE_NAME="ibm-db2uoperator-catalog"
10
10
echo " ZEN Operator namespace"
11
11
echo $ZEN_OPERATORS_NAMESPACE
12
12
13
+ echo " COMMON Operator namespace"
14
+ echo $COMMON_SERVICES_NAMESPACE
15
+
13
16
oc get operandregistry common-service -n ${COMMON_SERVICES_NAMESPACE} -o json > /temp/operandregistry.json
14
17
15
18
jq --arg ZEN_OPERATORS_NAMESPACE $ZEN_OPERATORS_NAMESPACE ' (.spec.operators[] | select(.name == "ibm-db2u-operator")).namespace |= $ZEN_OPERATORS_NAMESPACE' /temp/operandregistry.json > /temp/operandregistry_new.json
Original file line number Diff line number Diff line change 1
- operator_namespace : cpd-operators
2
- common_services_namespace : ibm-common-services
1
+ # operator_namespace: cpd-operators
2
+ # common_services_namespace: ibm-common-services
Original file line number Diff line number Diff line change @@ -36,6 +36,13 @@ locals {
36
36
37
37
}
38
38
39
+ operand_content = {
40
+
41
+ operator_namespace = var.operator_namespace
42
+ common_services_namespace = var.common_services_namespace
43
+
44
+ }
45
+
39
46
instance_content = {
40
47
name = " db2wh-cr"
41
48
cpd_namespace = var.cpd_namespace
@@ -89,7 +96,7 @@ resource null_resource create_operandregistry_yaml {
89
96
command = " ${ path . module } /scripts/create-yaml.sh '${ local . operandregistry_name } ' '${ local . operandregistry_yaml_dir } '"
90
97
91
98
environment = {
92
- VALUES_CONTENT = yamlencode (local. subscription_content )
99
+ VALUES_CONTENT = yamlencode (local. operand_content )
93
100
}
94
101
}
95
102
}
Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ versions:
18
18
refs :
19
19
- source : github.com/cloud-native-toolkit/terraform-gitops-namespace.git
20
20
version : " >= 1.0.0"
21
- - id : gitops-cp4d-instance
21
+ - id : gitops-db2
22
22
refs :
23
- - source : github.com/cloud-native-toolkit/terraform-gitops-cp4d-instance .git
24
- version : " >= 0.0.1"
23
+ - source : github.com/cloud-native-toolkit/terraform-gitops-db2u-operator .git
24
+ version : " >= 0.0.1"
25
25
variables :
26
26
- name : gitops_config
27
27
moduleRef :
You can’t perform that action at this time.
0 commit comments