...
The DB configuration is by default provided in the common values.yml file in the helm chart and need not be edit edited in normal scenarios. Since we are injecting the multiple schema list for app-specific purposes all the DB-migration ENV variables should be overridden in the app-specific values.yml file.
...
#Values.yml of the specific service after multiple schema changes
https://github.com/egovernments/DIGIT-DevOps/blob/central-instance/deploy-as-code/helm/charts/municipal-services/property-services/values.yaml - the full updated sample file can be found here
Code Block |
---|
# Init Containers Configs initContainers: dbMigration: enabled: true schemaTable: "property_services_schema" image: repository: "property-services-db" env: | {{- if index .Values "property-ismultischema-enabled" }} - name: SCHEMA_NAME value: {{ index .Values "property-schemas" | quote }} {{- end }} - name: "DB_URL" valueFrom: configMapKeyRef: name: egov-config key: db-url - name: "SCHEMA_TABLE" value: {{ .Values.initContainers.dbMigration.schemaTable | quote }} - name: "FLYWAY_USER" valueFrom: secretKeyRef: name: db key: flyway-username - name: "FLYWAY_PASSWORD" valueFrom: secretKeyRef: name: db key: flyway-password - name: "FLYWAY_LOCATIONS" valueFrom: configMapKeyRef: name: egov-config key: flyway-locations |
...
Code Block |
---|
property-services: egov-idgen-ack-format: "PG-AC-[cy:yyyy-MM-dd]-[SEQ_EG_PT_ACK]" egov-idgen-ptid-format: "PG-PT-[cy:yyyy-MM-dd]-[SEQ_EG_PT_PTID]" egov-idgen-mutation-format: "PG-MT-[CITY]-[SEQ_EG_PT_MUTATION]" egov-idgen-assm-format: "PG-AS-[cy:yyyy-MM-dd]-[SEQ_EG_PT_ASSM]" property-schemas: "public,statea,stateb" property-ismultischema-enabled: "true" |
...