Skip to content

Commit 6699b40

Browse files
SudhaKannaiahSudhaKannaiah
authored andcommitted
central instance migration changes
1 parent 78ab220 commit 6699b40

File tree

22 files changed

+808
-1599
lines changed

22 files changed

+808
-1599
lines changed

deploy-as-code/helm/charts/common/values.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -256,21 +256,6 @@ extraEnv:
256256
configMapKeyRef:
257257
name: egov-config
258258
key: state-level-tenantid-length
259-
- name: STATE_SCHEMA_INDEX_POSITION_TENANTID
260-
valueFrom:
261-
configMapKeyRef:
262-
name: egov-config
263-
key: state-schema-index-position-tenantid
264-
- name: IS_ENVIRONMENT_CENTRAL_INSTANCE
265-
valueFrom:
266-
configMapKeyRef:
267-
name: egov-config
268-
key: is-environment-central-instance
269-
- name: STATE_LEVEL_TENANTID_LENGTH
270-
valueFrom:
271-
configMapKeyRef:
272-
name: egov-config
273-
key: state-level-tenantid-length
274259
275260
jaeger: |
276261
- name: JAEGER_SERVICE_NAME

deploy-as-code/helm/charts/core-services/gateway/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ initContainers:
2121
- name: "INTERNAL_GATEWAY_NAMESPACE"
2222
value: "egov"
2323
- name: "INTERNAL_ROUTER_MAP"
24-
value: "inbox:internal-gateway-scg,egov-searcher:internal-gateway-scg,echallan-calculator:internal-gateway-scg,pt-calculator-v2:internal-gateway-scg,filestore:internal-gateway-scg,pdf-service:internal-gateway-scg,report:internal-gateway-scg,firenoc-calculator:internal-gateway-scg,sw-calculator:internal-gateway-scg,ws-calculator:internal-gateway-scg,dashboard-analytics:internal-gateway-scg,pg-service:internal-gateway-scg,tl-calculator:internal-gateway-scg,pt-calculator-v2:internal-gateway-scg,edcr:internal-gateway-scg,property-services:internal-gateway-scg,egov-mdms-service:internal-gateway-scg"
24+
value: "inbox:internal-gateway-scg,egov-searcher:internal-gateway-scg,echallan-calculator:internal-gateway-scg,pt-calculator-v2:internal-gateway-scg,filestore:internal-gateway-scg,pdf-service:internal-gateway-scg,report:internal-gateway-scg,firenoc-calculator:internal-gateway-scg,sw-calculator:internal-gateway-scg,ws-calculator:internal-gateway-scg,dashboard-analytics:internal-gateway-scg,pg-service:internal-gateway-scg,tl-calculator:internal-gateway-scg,pt-calculator-v2:internal-gateway-scg,edcr:internal-gateway-scg,property-services:internal-gateway-scg,egov-mdms-service:internal-gateway-scg,attendance:internal-gateway-scg,bankaccounts:internal-gateway-scg,contracts:internal-gateway-scg,egov-bff-service:internal-gateway-scg,estimates:internal-gateway-scg,expense:internal-gateway-scg,expense-calculator:internal-gateway-scg,ifms-adapter:internal-gateway-scg,loi-service:internal-gateway-scg,measurement-registry:internal-gateway-scg,measurement-service:internal-gateway-scg,muster-roll:internal-gateway-scg,organisation:internal-gateway-scg,project-management-system:internal-gateway-scg,works-inbox-service:internal-gateway-scg,works-management-service:internal-gateway-scg"
2525
volumeMounts:
2626
- name: zuul-routes
2727
mountPath: /etc/zuul

deploy-as-code/helm/charts/works/backend/attendance/values.yaml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ labels:
33
app: "attendance"
44
group: "works"
55

6-
namespace: works
6+
namespace: staging
77

88
# Ingress Configs
99
ingress:
@@ -34,18 +34,31 @@ initContainers:
3434
- name: "FLYWAY_USER"
3535
valueFrom:
3636
secretKeyRef:
37-
name: db
38-
key: flyway-username
37+
name: db
38+
key: flyway-username
3939
- name: "FLYWAY_PASSWORD"
4040
valueFrom:
4141
secretKeyRef:
42-
name: db
43-
key: flyway-password
42+
name: db
43+
key: flyway-password
4444
- name: "FLYWAY_LOCATIONS"
4545
valueFrom:
4646
configMapKeyRef:
47-
name: egov-config
48-
key: flyway-locations
47+
name: egov-config
48+
key: flyway-locations
49+
{{- if index .Values.global "is-environment-central-instance" }}
50+
- name: IS_ENVIRONMENT_CENTRAL_INSTANCE
51+
valueFrom:
52+
configMapKeyRef:
53+
name: egov-config
54+
key: is-environment-central-instance
55+
- name: STATE_LEVEL_TENANTID_LENGTH
56+
valueFrom:
57+
configMapKeyRef:
58+
name: egov-config
59+
key: state-level-tenantid-length
60+
{{- end }}
61+
4962
5063
# Container Configs
5164
image:

deploy-as-code/helm/charts/works/backend/bankaccounts/values.yaml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ labels:
33
app: "bankaccounts"
44
group: "works"
55

6-
namespace: works
6+
namespace: staging
77

88
# Ingress Configs
99
ingress:
@@ -20,9 +20,9 @@ initContainers:
2020
image:
2121
repository: "bankaccounts-db"
2222
env: |
23-
{{- if index .Values "attendance-ismultischema-enabled" }}
23+
{{- if index .Values "bankaccounts-ismultischema-enabled" }}
2424
- name: SCHEMA_NAME
25-
value: {{ index .Values "attendance-schemas" | quote }}
25+
value: {{ index .Values "bankaccounts-schemas" | quote }}
2626
{{- end }}
2727
- name: "DB_URL"
2828
valueFrom:
@@ -34,18 +34,30 @@ initContainers:
3434
- name: "FLYWAY_USER"
3535
valueFrom:
3636
secretKeyRef:
37-
name: db
38-
key: flyway-username
37+
name: db
38+
key: flyway-username
3939
- name: "FLYWAY_PASSWORD"
4040
valueFrom:
4141
secretKeyRef:
42-
name: db
43-
key: flyway-password
42+
name: db
43+
key: flyway-password
4444
- name: "FLYWAY_LOCATIONS"
4545
valueFrom:
4646
configMapKeyRef:
47-
name: egov-config
48-
key: flyway-locations
47+
name: egov-config
48+
key: flyway-locations
49+
{{- if index .Values.global "is-environment-central-instance" }}
50+
- name: IS_ENVIRONMENT_CENTRAL_INSTANCE
51+
valueFrom:
52+
configMapKeyRef:
53+
name: egov-config
54+
key: is-environment-central-instance
55+
- name: STATE_LEVEL_TENANTID_LENGTH
56+
valueFrom:
57+
configMapKeyRef:
58+
name: egov-config
59+
key: state-level-tenantid-length
60+
{{- end }}
4961
5062
# Container Configs
5163
image:

deploy-as-code/helm/charts/works/backend/contracts/values.yaml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ labels:
33
app: "contracts"
44
group: "works"
55

6-
namespace: works
6+
namespace: staging
77

88
# Ingress Configs
99
ingress:
@@ -34,18 +34,30 @@ initContainers:
3434
- name: "FLYWAY_USER"
3535
valueFrom:
3636
secretKeyRef:
37-
name: db
38-
key: flyway-username
37+
name: db
38+
key: flyway-username
3939
- name: "FLYWAY_PASSWORD"
4040
valueFrom:
4141
secretKeyRef:
42-
name: db
43-
key: flyway-password
42+
name: db
43+
key: flyway-password
4444
- name: "FLYWAY_LOCATIONS"
4545
valueFrom:
4646
configMapKeyRef:
47-
name: egov-config
48-
key: flyway-locations
47+
name: egov-config
48+
key: flyway-locations
49+
{{- if index .Values.global "is-environment-central-instance" }}
50+
- name: IS_ENVIRONMENT_CENTRAL_INSTANCE
51+
valueFrom:
52+
configMapKeyRef:
53+
name: egov-config
54+
key: is-environment-central-instance
55+
- name: STATE_LEVEL_TENANTID_LENGTH
56+
valueFrom:
57+
configMapKeyRef:
58+
name: egov-config
59+
key: state-level-tenantid-length
60+
{{- end }}
4961
5062
# Container Configs
5163
image:

deploy-as-code/helm/charts/works/backend/egov-bff-service/values.yaml

Lines changed: 13 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ labels:
33
app: "egov-bff-service"
44
group: "works"
55

6-
namespace: works
6+
namespace: egov
77

88
# Ingress Configs
99
ingress:
@@ -15,32 +15,18 @@ image:
1515
repository: "egov-bff-service"
1616
replicas: '1'
1717
env: |
18-
{{- if index .Values "egov-bff-service-ismultischema-enabled" }}
19-
- name: SCHEMA_NAME
20-
value: {{ index .Values "egov-bff-service-schemas" | quote }}
21-
{{- end }}
22-
- name: "DB_URL"
23-
valueFrom:
24-
configMapKeyRef:
25-
name: egov-config
26-
key: db-url
27-
- name: "SCHEMA_TABLE"
28-
value: {{ .Values.initContainers.dbMigration.schemaTable | quote }}
29-
- name: "FLYWAY_USER"
30-
valueFrom:
31-
secretKeyRef:
32-
name: db
33-
key: flyway-username
34-
- name: "FLYWAY_PASSWORD"
35-
valueFrom:
36-
secretKeyRef:
37-
name: db
38-
key: flyway-password
39-
- name: "FLYWAY_LOCATIONS"
40-
valueFrom:
41-
configMapKeyRef:
42-
name: egov-config
43-
key: flyway-locations
18+
{{- if index .Values.global "is-environment-central-instance" }}
19+
- name: IS_ENVIRONMENT_CENTRAL_INSTANCE
20+
valueFrom:
21+
configMapKeyRef:
22+
name: egov-config
23+
key: is-environment-central-instance
24+
- name: STATE_LEVEL_TENANTID_LENGTH
25+
valueFrom:
26+
configMapKeyRef:
27+
name: egov-config
28+
key: state-level-tenantid-length
29+
{{- end }}
4430
- name: EGOV_MDMS_HOST
4531
valueFrom:
4632
configMapKeyRef:

deploy-as-code/helm/charts/works/backend/estimates/values.yaml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ labels:
33
app: "estimates"
44
group: "works"
55

6-
namespace: works
6+
namespace: staging
77

88
# Ingress Configs
99
ingress:
@@ -20,9 +20,9 @@ initContainers:
2020
image:
2121
repository: "estimates-db"
2222
env: |
23-
{{- if index .Values "estimate-ismultischema-enabled" }}
23+
{{- if index .Values "estimates-ismultischema-enabled" }}
2424
- name: SCHEMA_NAME
25-
value: {{ index .Values "estimate-schemas" | quote }}
25+
value: {{ index .Values "estimates-schemas" | quote }}
2626
{{- end }}
2727
- name: "DB_URL"
2828
valueFrom:
@@ -34,18 +34,30 @@ initContainers:
3434
- name: "FLYWAY_USER"
3535
valueFrom:
3636
secretKeyRef:
37-
name: db
38-
key: flyway-username
37+
name: db
38+
key: flyway-username
3939
- name: "FLYWAY_PASSWORD"
4040
valueFrom:
4141
secretKeyRef:
42-
name: db
43-
key: flyway-password
42+
name: db
43+
key: flyway-password
4444
- name: "FLYWAY_LOCATIONS"
4545
valueFrom:
4646
configMapKeyRef:
47-
name: egov-config
48-
key: flyway-locations
47+
name: egov-config
48+
key: flyway-locations
49+
{{- if index .Values.global "is-environment-central-instance" }}
50+
- name: IS_ENVIRONMENT_CENTRAL_INSTANCE
51+
valueFrom:
52+
configMapKeyRef:
53+
name: egov-config
54+
key: is-environment-central-instance
55+
- name: STATE_LEVEL_TENANTID_LENGTH
56+
valueFrom:
57+
configMapKeyRef:
58+
name: egov-config
59+
key: state-level-tenantid-length
60+
{{- end }}
4961
5062
# Container Configs
5163
image:

deploy-as-code/helm/charts/works/backend/expense-calculator/values.yaml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ labels:
33
app: "expense-calculator"
44
group: "works"
55

6-
namespace: works
6+
namespace: staging
77

88
# Ingress Configs
99
ingress:
@@ -20,9 +20,9 @@ initContainers:
2020
image:
2121
repository: "expense-calculator-db"
2222
env: |
23-
{{- if index .Values "expense_calculator-ismultischema-enabled" }}
23+
{{- if index .Values "expense-calculator-ismultischema-enabled" }}
2424
- name: SCHEMA_NAME
25-
value: {{ index .Values "expense_calculator-schemas" | quote }}
25+
value: {{ index .Values "expense-calculator-schemas" | quote }}
2626
{{- end }}
2727
- name: "DB_URL"
2828
valueFrom:
@@ -34,18 +34,30 @@ initContainers:
3434
- name: "FLYWAY_USER"
3535
valueFrom:
3636
secretKeyRef:
37-
name: db
38-
key: flyway-username
37+
name: db
38+
key: flyway-username
3939
- name: "FLYWAY_PASSWORD"
4040
valueFrom:
4141
secretKeyRef:
42-
name: db
43-
key: flyway-password
42+
name: db
43+
key: flyway-password
4444
- name: "FLYWAY_LOCATIONS"
4545
valueFrom:
4646
configMapKeyRef:
47-
name: egov-config
48-
key: flyway-locations
47+
name: egov-config
48+
key: flyway-locations
49+
{{- if index .Values.global "is-environment-central-instance" }}
50+
- name: IS_ENVIRONMENT_CENTRAL_INSTANCE
51+
valueFrom:
52+
configMapKeyRef:
53+
name: egov-config
54+
key: is-environment-central-instance
55+
- name: STATE_LEVEL_TENANTID_LENGTH
56+
valueFrom:
57+
configMapKeyRef:
58+
name: egov-config
59+
key: state-level-tenantid-length
60+
{{- end }}
4961
5062
# Container Configs
5163
image:

deploy-as-code/helm/charts/works/backend/expense/values.yaml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ labels:
33
app: "expense"
44
group: "works"
55

6-
namespace: works
6+
namespace: staging
77

88
# Ingress Configs
99
ingress:
@@ -34,18 +34,30 @@ initContainers:
3434
- name: "FLYWAY_USER"
3535
valueFrom:
3636
secretKeyRef:
37-
name: db
38-
key: flyway-username
37+
name: db
38+
key: flyway-username
3939
- name: "FLYWAY_PASSWORD"
4040
valueFrom:
4141
secretKeyRef:
42-
name: db
43-
key: flyway-password
42+
name: db
43+
key: flyway-password
4444
- name: "FLYWAY_LOCATIONS"
4545
valueFrom:
4646
configMapKeyRef:
47-
name: egov-config
48-
key: flyway-locations
47+
name: egov-config
48+
key: flyway-locations
49+
{{- if index .Values.global "is-environment-central-instance" }}
50+
- name: IS_ENVIRONMENT_CENTRAL_INSTANCE
51+
valueFrom:
52+
configMapKeyRef:
53+
name: egov-config
54+
key: is-environment-central-instance
55+
- name: STATE_LEVEL_TENANTID_LENGTH
56+
valueFrom:
57+
configMapKeyRef:
58+
name: egov-config
59+
key: state-level-tenantid-length
60+
{{- end }}
4961
5062
# Container Configs
5163
image:

0 commit comments

Comments
 (0)