-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added deployment config for digit ui flutter components (#2340)
Co-authored-by: rachana-egov <rachana.singh@egovernment.org>
- Loading branch information
1 parent
9513897
commit ad38598
Showing
6 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
deploy-as-code/helm/charts/frontend/digit-ui-flutter/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apiVersion: v2 | ||
name: digit-ui-flutter | ||
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 |
2 changes: 2 additions & 0 deletions
2
deploy-as-code/helm/charts/frontend/digit-ui-flutter/templates/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# deployment.yaml | ||
{{- template "common.deployment" . -}} |
2 changes: 2 additions & 0 deletions
2
deploy-as-code/helm/charts/frontend/digit-ui-flutter/templates/ingress.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# ingress.yaml | ||
{{- template "common.ingress" . -}} |
2 changes: 2 additions & 0 deletions
2
deploy-as-code/helm/charts/frontend/digit-ui-flutter/templates/service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# service.yaml | ||
{{- template "common.service" . -}} |
15 changes: 15 additions & 0 deletions
15
...s-code/helm/charts/frontend/digit-ui-flutter/templates/subfilter-injection-configmap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{- $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 | ||
{{- if .Values.global.namespace }} | ||
namespace: {{ .Values.global.namespace }} | ||
{{- else }} | ||
namespace: {{ .Values.namespace }} | ||
{{- end }} | ||
data: | ||
{{- index .Values "custom-js-injection" | nindent 2 }} | ||
{{- end -}} |
32 changes: 32 additions & 0 deletions
32
deploy-as-code/helm/charts/frontend/digit-ui-flutter/values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Common Labels | ||
labels: | ||
app: "digit-ui-flutter" | ||
group: "web" | ||
|
||
# Ingress Configs | ||
ingress: | ||
enabled: true | ||
context: "digit-ui-flutter" | ||
|
||
# Init Containers Configs | ||
initContainers: {} | ||
|
||
# Container Configs | ||
image: | ||
repository: "digit-ui-flutter" | ||
replicas: "1" | ||
httpPort: 80 | ||
healthChecks: | ||
enabled: true | ||
livenessProbePath: "/digit-ui-flutter/" | ||
readinessProbePath: "/digit-ui-flutter/" | ||
|
||
namespace: egov | ||
extraVolumes: | | ||
- name: js-injection | ||
configMap: | ||
name: digit-ui-flutter-js-injection | ||
extraVolumeMounts: | | ||
- mountPath: /etc/nginx/conf.d/sub_filter.conf | ||
name: js-injection | ||
subPath: sub_filter.conf |