Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

digit exchange helms charts #2338

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions deploy-as-code/helm/charts/ifix/digit-exchange/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: v2
name: digit-exchange
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.1

# 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" . -}}
104 changes: 104 additions & 0 deletions deploy-as-code/helm/charts/ifix/digit-exchange/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# Common Labels
labels:
app: "digit-exchange"
group: "ifix"

namespace: ifix

# Ingress Configs
ingress:
namespace: egov
enabled: true
zuul: true
context: "exchange"

# Init Containers Configs
initContainers:
dbMigration:
enabled: false

# Container Configs
image:
repository: "digit-exchange"
replicas: "1"
healthChecks:
enabled: true
livenessProbePath: "/exchange/health"
readinessProbePath: "/exchange/health"
appType: "java-spring"
tracing-enabled: true
heap: "-Xmx192m -Xms192m"
java-args: ""

# Additional Container Envs
env: |
- name: SERVER_PORT
value: "8080"
- name: JAVA_OPTS
value: {{ index .Values "heap" | quote }}
- name: JAVA_ARGS
value: {{ index .Values "java-args" | quote }}
{{- if index .Values "tracing-enabled" }}
- name: TRACER_OPENTRACING_ENABLED
value: "true"
{{- end }}
- name: SERVER_CONTEXT_PATH
value: /exchange
- name: SERVER_SERVLET_CONTEXT-PATH
value: /exchange
{{- if index .Values "java-enable-debug" }}
- name: JAVA_ENABLE_DEBUG
value: "true"
{{- end }}
- name: DIGIT_EXCHANGE_TOPIC
value: "exchange-topic"
- name: DIGIT_EXCHANGE_ERROR_QUEUE
value: "exchange-error-queue"
- name: SPRING_KAFKA_CONSUMER_GROUP_ID
value: "digit-exchange"
- name: KAFKA_CONFIG_BOOTSTRAP_SERVER_CONFIG
valueFrom:
configMapKeyRef:
name: egov-config
key: kafka-brokers
{{- if index .Values "app-domain" }}
- name: APP_DOMAIN
value: {{ index .Values "app-domain" | quote }}
{{- end }}
{{- if index .Values "app-path" }}
- name: APP_PATH
value: {{ index .Values "app-path" | quote }}
{{- end }}
{{- if index .Values "app-routes-program" }}
- name: APP_ROUTES_PROGRAM
value: {{ index .Values "app-routes-program" | quote }}
{{- end }}
{{- if index .Values "app-routes-on-program" }}
- name: APP_ROUTES_ON-PROGRAM
value: {{ index .Values "app-routes-on-program" | quote }}
{{- end }}
{{- if index .Values "app-routes-sanction" }}
- name: APP_ROUTES_SANCTION
value: {{ index .Values "app-routes-sanction" | quote }}
{{- end }}
{{- if index .Values "app-routes-on-sanction" }}
- name: APP_ROUTES_ON-SANCTION
value: {{ index .Values "app-routes-on-sanction" | quote }}
{{- end }}
{{- if index .Values "app-routes-allocation" }}
- name: APP_ROUTES_ALLOCATION
value: {{ index .Values "app-routes-allocation" | quote }}
{{- end }}
{{- if index .Values "app-routes-on-allocation" }}
- name: APP_ROUTES_ON-ALLOCATION
value: {{ index .Values "app-routes-on-allocation" | quote }}
{{- end }}
{{- if index .Values "app-routes-disburse" }}
- name: APP_ROUTES_DISBURSE
value: {{ index .Values "app-routes-disburse" | quote }}
{{- end }}
{{- if index .Values "app-routes-on-disburse" }}
- name: APP_ROUTES_ON-DISBURSE
value: {{ index .Values "app-routes-on-disburse" | quote }}
{{- end }}

14 changes: 14 additions & 0 deletions deploy-as-code/helm/environments/unified-ifix-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,20 @@ zuul:

# <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

# ifix >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

digit-exchange:
app-domain: "https://unified-dev.digit.org"
app-path: "/program-service/v1"
app-routes-program: "/program"
app-routes-on-program: "/on-program"
app-routes-sanction: "/sanction"
app-routes-on-sanction: "/on-sanction"
app-routes-allocation: "/allocation"
app-routes-on-allocation: "/on-allocation"
app-routes-disburse: "/disburse"
app-routes-on-disburse: "/on-disburse"

collection-services:
receiptnumber-servicebased: "true"
receipt-search-paginate: "true"
Expand Down