Skip to content

Commit 2dfd303

Browse files
authored
clean up variables (#14)
Clean up charts and variables
1 parent f0d4fec commit 2dfd303

File tree

6 files changed

+18
-30
lines changed

6 files changed

+18
-30
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Run this CLI and remove the finalizer value from the YAML as sometimes DB2WH ser
8080

8181
## Supported platforms
8282

83-
OCP 4.8.36
83+
- OCP 4.8.36
8484

8585
## References:
8686

charts/ibm-cpd-db2wh-instance/templates/instance.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: databases.cpd.ibm.com/v1
22
kind: Db2whService
33
metadata:
44
name: {{ .Values.name }}
5-
namespace: gitops-cp4d-instance
5+
namespace: {{ .Values.cpd_namespace }}
66
annotations:
77
argocd.argoproj.io/sync-wave: "1"
88
spec:
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
name: db2wh-cr
2-
cpd_namespace: gitops-cp4d-instance
3-
operator_namespace: cpd-operators
1+
# name: db2wh-cr
2+
# cpd_namespace: gitops-cp4d-instance
43

5-
license_accept: true
6-
license: Enterprise
4+
# license_accept: true
5+
# license: Enterprise
76

8-
db_type: db2wh
7+
# db_type: db2wh
98

109

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
license_accept: true
2-
license: Enterprise
1+
# license_accept: true
2+
# license: Enterprise
33

4-
db2wh_namespace: gitops-cp-db2wh
5-
db2wh_version: 4.0.2
6-
db2wh_channel: v1.0
4+
# db2wh_namespace: gitops-cp-db2wh
5+
# db2wh_version: 4.0.2
6+
# db2wh_channel: v1.0
7+
8+
# name: ibm-db2wh-cp4d-operator-catalog-subscription
9+
# operator_namespace: cpd-operators
710

8-
name: ibm-db2wh-cp4d-operator-catalog-subscription
9-
operator_namespace: cpd-operators
10-
common_services_namespace: ibm-common-services
11-
cpd_namespace: gitops-cp4d-instance

main.tf

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,18 @@ locals {
2828
subscription_content = {
2929
license_accept = true
3030
license = var.license
31-
3231
db2wh_namespace =var.namespace
3332
db2wh_version =var.db2_warehouse_version
3433
db2wh_channel=var.db2_warehouse_channel
35-
36-
3734
name= "ibm-db2wh-cp4d-operator-catalog-subscription"
3835
operator_namespace = var.operator_namespace
39-
common_services_namespace = var.common_services_namespace
40-
cpd_namespace = var.cpd_namespace
36+
4137
}
4238

4339
instance_content = {
4440
name = "db2wh-cr"
4541
cpd_namespace = var.cpd_namespace
46-
operator_namespace = var.operator_namespace
42+
4743
spec = {
4844
license = {
4945
accept = "true"

variables.tf

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,6 @@ variable "common_services_namespace" {
128128
default = "ibm-common-services"
129129
}
130130

131-
variable "cpd_operators" {
132-
type = string
133-
description = "Namespace where cpd is deployed"
134-
default = "cpd-operators"
135-
}
136-
137131
variable "storage_class" {
138132
type = string
139133
description = "Storage class for DB2WH instance"
@@ -158,4 +152,4 @@ variable "license" {
158152
default = "Enterprise"
159153
}
160154

161-
# db2wh = "cp4d-db2wh"
155+

0 commit comments

Comments
 (0)