Skip to content

Commit

Permalink
MicroplanUI/Resources-Gen/Egov-HRMS Updated (#278)
Browse files Browse the repository at this point in the history
* MicroplanUI/Resources-Gen/Egov-HRMS Updated

* updedtedHCM-demo yaml

* Removed the e gov-hrms
  • Loading branch information
Satya-egov authored Jan 3, 2025
1 parent fa53531 commit 0dd8df0
Show file tree
Hide file tree
Showing 12 changed files with 235 additions and 1 deletion.
26 changes: 26 additions & 0 deletions config-as-code/helm/charts/frontend/microplan-ui/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: v2
name: microplan-ui
description: A Helm chart for Kubernetes

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 1.16.0

dependencies:
- name: common
version: 0.0.5
repository: file://../../common
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# deployment.yaml
{{- template "common.deployment" . -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ingress.yaml
{{- template "common.ingress" . -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# service.yaml
{{- template "common.service" . -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{- $envOverrides := index .Values (tpl .Chart.Name .) -}}
{{- $_ := set . "Values" (merge .Values $envOverrides) -}}
{{- if index .Values "custom-js-injection" -}}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Chart.Name }}-js-injection
namespace: {{ .Values.namespace }}
data:
{{- index .Values "custom-js-injection" | nindent 2 }}
{{- end -}}
34 changes: 34 additions & 0 deletions config-as-code/helm/charts/frontend/microplan-ui/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Common Labels
labels:
app: "microplan-ui"
group: "web"

namespace: egov

# Ingress Configs
ingress:
enabled: true
context: "microplan-ui"

# Init Containers Configs
initContainers: {}

# Container Configs
image:
repository: "microplan-ui"
replicas: "1"
httpPort: 80
healthChecks:
enabled: true
livenessProbePath: "/microplan-ui/"
readinessProbePath: "/microplan-ui/"

extraVolumes: |
- name: js-injection
configMap:
name: microplan-ui-js-injection
extraVolumeMounts: |
- mountPath: /etc/nginx/conf.d/sub_filter.conf
name: js-injection
subPath: sub_filter.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: v2
name: resource-generator
description: A Helm chart for Kubernetes

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 1.0.0

dependencies:
- name: common
version: 0.0.5
repository: file://../../common
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# deployment.yaml
{{- template "common.deployment" . -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ingress.yaml
{{- template "common.ingress" . -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# service.yaml
{{- template "common.service" . -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# Common Labels
labels:
app: "resource-generator"
group: "egov"

namespace: egov

# Ingress Configs
ingress:
namespace: egov
enabled: false
zuul: false
context: "resource-generator"

# Container Configs
image:
repository: "resource-generator"
replicas: "1"
healthChecks:
enabled: true
livenessProbePath: "/resource-generator/health"
readinessProbePath: "/resource-generator/health"
appType: "java-spring"
tracing-enabled: true
memory_limits: 512Mi
heap: "-Xmx256m -Xms256m"
java-args: ""
egov-mdms-service-host-key: "mdms-service-v2"
egov-mdms-service-endpoint-key: "/mdms-v2/v1/_search"
egov-mdms-service-v2-endpoint-key: "/mdms-v2/v2/_search"

# Additional Container Envs
env: |
- name: SPRING_KAFKA_CONSUMER_GROUP_ID
value: resource-generator
- name: SPRING_KAFKA_PRODUCER_KEY_SERIALIZER
value: org.apache.kafka.common.serialization.StringSerializer
{{- if index .Values "global" "tracer-errors-provideexceptionindetails" }}
- name: TRACER_ERRORS_PROVIDEEXCEPTIONINDETAILS
valueFrom:
configMapKeyRef:
name: egov-config
key: tracer-errors-provideexceptionindetails
{{- end }}
- name: EGOV_MDMS_HOST
valueFrom:
configMapKeyRef:
name: egov-service-host
key: {{ index .Values "egov-mdms-service-host-key" | quote }}
- name: EGOV_MDMS_SEARCH_ENDPOINT
value: {{ index .Values "egov-mdms-service-endpoint-key" | quote }}
- name: EGOV_MDMS_SEARCH_V2_ENDPOINT
value: {{ index .Values "egov-mdms-service-v2-endpoint-key" | quote }}
- name: EGOV_MDMS_INTEGRATION_ENABLED
value: "true"
- name: EGOV_FILESTORE_SERVICE_HOST
valueFrom:
configMapKeyRef:
name: egov-service-host
key: egov-filestore
- name: EGOV_FILESTORE_UPLOAD_ENDPOINT
value: /filestore/v1/files
- name: EGOV_PLAN_CONFIG_HOST
valueFrom:
configMapKeyRef:
name: egov-service-host
key: plan-service
- name: EGOV_PLAN_CREATE_ENDPOINT
value: /plan-service/plan/_create
- name: EGOV_PROJECT_FACTORY_HOST
valueFrom:
configMapKeyRef:
name: egov-service-host
key: project-factory
- name: EGOV_BOUNDARY_SERVICE_HOST
valueFrom:
configMapKeyRef:
name: egov-service-host
key: boundary-service
- name: EGOV_LOCALE_SERVICE_HOST
valueFrom:
configMapKeyRef:
name: egov-service-host
key: egov-localization
- name: EGOV_PROJECT_FACTORY_SEARCH_ENDPOINT
value: /project-factory/v1/project-type/search
- name: EGOV_PROJECT_FACTORY_UPDATE_ENDPOINT
value: /project-factory/v1/project-type/update
- name: EGOV_CENSUS_HOST
valueFrom:
configMapKeyRef:
name: egov-service-host
key: census-service
- name: JAVA_OPTS
value: {{ index .Values "heap" | quote }}
- name: JAVA_ARGS
value: {{ index .Values "java-args" | quote }}
- name: SERVER_PORT
value: "8080"
- name: SECURITY_BASIC_ENABLED
value: "false"
- name: MANAGEMENT_SECURITY_ENABLED
value: "false"
- name: RESOURCE_MICROPLAN_CREATE_TOPIC
value: "resource-microplan-create-topic"
- name: INTEGRATE_WITH_ADMIN_CONSOLE
value: "true"
20 changes: 19 additions & 1 deletion config-as-code/helm/environments/hcm-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ cluster-configs:
plan-service: 'http://plan-service.health:8080/'
census-service: 'http://census-service.health:8080/'
project-factory: 'http://project-factory.egov:8080/'
mdms-service-v2: 'http://mdms-v2.egov:8080/'

employee:
dashboard-url: "https://dashboard-pbuat.egovernments.org/s/w---s/app/kibana#/dashboard/4e687470-f3c7-11e8-8d09-b151e2b1cf8e?embed=true&_g=(refreshInterval%3A(pause%3A!f%2Cvalue%3A300000)%2Ctime%3A(from%3Anow-15m%2Cmode%3Aquick%2Cto%3Anow))"
custom-js-injection: |
Expand All @@ -130,7 +132,15 @@ workbench-ui:
<script src=https://egov-dev-assets.s3.ap-south-1.amazonaws.com/analytics/analytics.js type=text/javascript></script>
<script src=https://egov-dev-assets.s3.ap-south-1.amazonaws.com/globalConfigsWorkbenchHCMMZ.js type=text/javascript></script>
';"
microplan-ui:
custom-js-injection: |
sub_filter.conf: "
sub_filter '<head>' '<head>
<script src=https://egov-dev-assets.s3.ap-south-1.amazonaws.com/analytics/analytics.js type=text/javascript></script>
<script src=https://egov-dev-assets.s3.ap-south-1.amazonaws.com/globalConfigsMicroplan.js type=text/javascript></script>
';"
digit-ui:
custom-js-injection: |
sub_filter.conf: "
Expand Down Expand Up @@ -470,6 +480,8 @@ egov-accesscontrol:
replicas : 1
heap: "-Xmx512m -Xms256m"



# <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Health Services

facility:
Expand Down Expand Up @@ -499,6 +511,7 @@ project-factory:
splitBoundariesOn: 'CAMPAIGN_DISTRICT'
replicas: 2
namespace: 'egov'
egov-mdms-service-host-key: 'mdms-service-v2'
mdmsV2SearchEndpoint: 'mdms-v2/v2/_search'
mdmsV1SearchEndpoint: 'mdms-v2/v2/_search'

Expand All @@ -512,6 +525,11 @@ resource-estimation-service:
egov-mdms-service-endpoint-key: "/mdms-v2/v1/_search"
egov-mdms-service-v2-endpoint-key: "/mdms-v2/v2/_search"

resource-generator:
egov-mdms-service-host-key: 'mdms-service-v2'
egov-mdms-service-endpoint-key: "/mdms-v2/v1/_search"
egov-mdms-service-v2-endpoint-key: "/mdms-v2/v2/_search"

# <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
kafka-config:
topics: "egov.pgr.validated:1:1,egov.pgr.locationupdated:1:1,egov.pgr.workflowupdated:1:1,egov.pgr.saved:1:1,egov.pgr.indexing:1:1,egov.core.notification.email:1:1,egov.core.notification.sms:1:1,attendance-save-db:1:1,egov.employee:1:1,save-asset-db:1:1,update-asset-db:1:1,save-assetcategory-db:1:1,agreement-save-db:1:1,agreement-update-db:1:1,lams-workflow-start:1:1,lams-workflow-update:1:1,egov-common-holiday:1:1,egov.leaveopeningbalance-create:1:1,egov.leaveopeningbalance-update:1:1,egov-hr-leavetype:1:1,egov.leaveallotment-create:1:1,egov.leaveallotment-update:1:1,egov.designation-create:1:1,egov.designation-update:1:1,egov.position-create:1:1,egov.position-update:1:1,egov.egf.masters.validated.topic:1:1,egov.egf.masters.completed:1:1,egov.wcms.category-create:1:1,property-create-validated:1:1,property-create-tax-calculated:1:1,property-create-user-validated:1:1,property-create-workflow-started:1:1,property-create-workflow-updated:1:1,save-bill-db:1:1,update-bill-db:1:1,save-bill:1:1,update-bill:1:1,save-demand:1:1,update-demand:1:1,egov.collection.receipt-create:1:1,save-taxHeadMaster-db:1:1,update-taxHeadMaster:1:1,save-glCodeMaster-db:1:1,save-glCodeMaster:1:1,update-glCodeMaster-db:1:1,update-glCodeMaster:1:1,save-taxperiod-db:1:1,save-taxperiod:1:1,update-taxperiod-db:1:1,update-taxperiod:1:1,save-businessservicedetail-db:1:1,save-businessservicedetail:1:1,update-businessservicedetail-db:1:1,update-businessservicedetail:1:1,property-update-workflow-approved:1:1,property-update-user-validated:1:1,property-update-workflow-started:1:1,property-titletransfer-create-user-validated:1:1,property-titletransfer-update-user-validated:1:1,property-titletransfer-create-workflow-started:1:1,property-titletransfer-approved:1:1,property-titletransfer-workflow-updated:1:1,property-update-tax-calculated:1:1,property-update-validated:1:1,property-titletransfer-cretae-validated:1:1,property-titletransfer-update-validated:1:1,property-create-tax-generated:1:1,create-legacy-tradelicense-validated:1:1,egov.pgr.servicedefinition-create:1:1,demand-bill-update:1:1,egov.pgr.servicedefinition-update:1:1,egov-common-department-create:1:1,egov-common-department-update:1:1,egov.services.tl-services.create.legacy.tradelicense.validated:1:1,save-service-db:1:1,update-service-db:1:1,update-legacy-tradelicense-validated:1:1,tradelicense-validated:1:1,tradelicense-persisted:1:1,tradelicense-workflow-populated:1:1,demand-bill-update:1:1,egov.wcms.newconnection-create:1:1,egov.wcms.newconnection-update:1:1,update-newconn-workflow:1:1,initiated-newconn-workflow:1:1,works-offlinestatus-create-validated:1:1,works-offlinestatus-update-validated:1:1,works-contractor-create-validated:1:1,works-contractor-update-validated:1:1,works-letterofacceptance-create-validated:1:1,works-letterofacceptance-update-validated:1:1,works-measurementbook-create-update:1:1,works-revision-detailed-estimate-create-update:1:1,works-workorder-createupdate-validated:1:1,lcms-create-summon-validated:1:1,lcms-create-case:1:1,lcms-create-vakalatnama:1:1,lcms-parawisecomment-create:1:1,lcms-parawisecomment-update:1:1,lcms-assign-advocate:1:1,lcms-update-assign-advocate:1:1,lcms-advocate-create:1:1,lcms-advocate-update:1:1,advocate-payment-create:1:1,advocate-payment-update:1:1,lcms-opinion-create:1:1,lcms-opinion-update:1:1,legacy-case-create:1:1,legacy-hearing-create:1:1,legacy-case-voucher-create:1:1,legacy-case-advocate-create:1:1,lcms-hearingdetails-create:1:1,lcms-hearingdetails-update:1:1,lcms-notice-create:1:1,lcms-notice-update:1:1,lcms-register-create:1:1,lcms-register-update:1:1,lcms-evidence-create:1:1,lcms-evidence-update:1:1,lcms-agency-create:1:1,lcms-agency-update:1:1,lcms-personal-details-create:1:1,Lcms-event-create:1:1,lcms-create-summon-indexer:1:1,lcms-legacy-casecreate-indexer:1:1,works-abstract-estimate-createandupdate:1:1,works-detailed-estimate-createandupdate:1:1,works-revision-loa-create-update:1:1,works-sorrate-saveorupdate-validated:1:1,works-estimatetemplate-saveorupdate-validated:1:1,lcms-update-summon-validated:1:1,mdms.create.gitpushprocess:1:1,works-contractoradvance-saveorupdate-validated:1:1,works-qualitytesting-createandupdate:1:1,works-abstract-estimate-backupdate:1:1,works-detailedestimate-backupdate:1:1,works-abstract-estimate-backupdate-oncreate-detailedestimate:1:1,works-abstract-estimate-backupdate-oncancel-detailedestimate:1:1,works-detailedestimate-backupdate-oncreate-loa:1:1,works-detailedestimate-backupdate-oncancel-loa:1:1,swm-vehicleschedule-save-topic:1:1,works-projectcode-create:1:1,works-projectcode-update:1:1,works-masters-remarks-createandupdate:1:1,works-milestonetemplate-saveorupdate-validated:1:1,works-contractorbill-create-update:1:1,works-measurementbook-backupdate-for-billstatus:1:1,works-notice-createupdate-validated:1:1,works-milestone-saveorupdate-validated:1:1,works-trackmilestone-saveorupdate-validated:1:1,swm-shift-save-topic:1:1,swm-shift-update-topic:1:1,swm-shift-indexer-topic:1:1,works-letterofacceptance-backupdate-oncreate-workorder:1:1,works-letterofacceptance-backupdate-oncancel-workorder:1:1,works-loa-backupdate-oncreate-milestone:1:1,works-loa-backupdate-oncancel-milestone:1:1,works-loa-backupdate-oncreate-contractoradvance:1:1,works-loa-backupdate-oncancel-contractoradvance:1:1,works-loa-backupdate-onupdate-withallofflinestatusandworkorder:1:1,works-workorder-backupdate-oncreate-milestone:1:1,works-workorder-backupdate-oncancel-contractoradvance:1:1,works-loa-backupdate-onupdate-offlinestatus:1:1,works-workorder-backupdate-onupdate-offlinestatus:1:1,works-loa-backupdate-onupdate-withallofflinestatus:1:1,works-workorder-backupdate-onupdate-withallofflinestatus:1:1,works-loa-backupdate-oncreate-bill:1:1,works-loa-backupdate-oncancel-bill:1:1,works-loa-backupdate-oncreatemb:1:1,works-loa-backupdate-oncancelmb:1:1,works-loa-backupdate-oncreatembandnobill:1:1,works-loa-backupdate-oncreatembandbill:1:1,works-workorder-backupdate-oncreate-bill:1:1,works-workorder-backupdate-oncancel-bill:1:1,works-workorder-backupdate-oncreatembandnobill:1:1,works-workorder-backupdate-oncreatembandbill:1:1,egov.error:1:1,save-pt-property:1:1,update-pt-property:1:1,save-pt-billingslab:1:1,update-pt-billingslab:1:1,save-pg-txns:1:1,update-pg-txns:1:1,save-pg-txns-dump:1:1,update-pg-txns-dump:1:1,save-pt-drafts:1:1,update-pt-drafts:1:1,egov.collectionmasters.bankaccountservicemapping-create:1:1,bankaccountservicemapping-create:1:1,update-pt-property-index:1:1"
Expand Down

0 comments on commit 0dd8df0

Please sign in to comment.