-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tracking pull request to merge release-1.6.0 to main (#228)
* update to 1.6.0 * add search field to GER application admin console (#230) * itvr-357--scan-uploaded-files (#229) * helm clamav (#231) * reorg chat folder and start to add app charts (#232) * Itvr 340 missing bcsc fields (#233) * initial commit * add prop from spouseForm * disable submit button * disable submit button for spouseForm * itvr-367--small-fixes (#234) * itvr-293--accessibility (#237) * Itvr 361 (#236) * initial commit * update cancellation email body * send email * implement CR suggestions * send email after status is updated * save queryset to list for iteration * tracker-update (#238) * itvr-375--cleanup-tasks (#240) * small fix (#241) * snowplow link tracking (#242) * add CORS_ORIGIN_WHITELIST * add helm for frontend and backend (#243) Co-authored-by: vibhiquartech <[email protected]> Co-authored-by: tim738745 <[email protected]>
- Loading branch information
1 parent
7bcfc26
commit dd2aa2e
Showing
112 changed files
with
2,943 additions
and
157 deletions.
There are no files selected for viewing
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
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
Empty file.
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,24 @@ | ||
apiVersion: v2 | ||
name: itvr-backend | ||
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. | ||
# Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
version: 1.0.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. Versions are not expected to | ||
# follow Semantic Versioning. They should reflect the version the application is using. | ||
# It is recommended to use it with quotes. | ||
appVersion: "1.6.0" |
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,22 @@ | ||
1. Get the application URL by running these commands: | ||
{{- if .Values.ingress.enabled }} | ||
{{- range $host := .Values.ingress.hosts }} | ||
{{- range .paths }} | ||
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }} | ||
{{- end }} | ||
{{- end }} | ||
{{- else if contains "NodePort" .Values.service.type }} | ||
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "itvr-backend.fullname" . }}) | ||
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") | ||
echo http://$NODE_IP:$NODE_PORT | ||
{{- else if contains "LoadBalancer" .Values.service.type }} | ||
NOTE: It may take a few minutes for the LoadBalancer IP to be available. | ||
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "itvr-backend.fullname" . }}' | ||
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "itvr-backend.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") | ||
echo http://$SERVICE_IP:{{ .Values.service.port }} | ||
{{- else if contains "ClusterIP" .Values.service.type }} | ||
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "itvr-backend.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") | ||
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") | ||
echo "Visit http://127.0.0.1:8080 to use your application" | ||
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT | ||
{{- end }} |
150 changes: 150 additions & 0 deletions
150
chart/itvr-apps/charts/itvr-backend/templates/_helpers.tpl
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,150 @@ | ||
{{/* | ||
version: 1.0.0 | ||
appVersion: "1.6.0" | ||
nameOverride: "" | ||
fullnameOverride: "" | ||
1. deploy PR based | ||
pr225 is the .Release.Name | ||
Set below to to be empty string in values file | ||
nameOverride: "" | ||
fullnameOverride: "" | ||
imageTools value should be the build PR image in tools project | ||
Run the below command | ||
helm template -f ./values-dev.yaml pr225 . | ||
name: pr225-itvr-backend | ||
labels: | ||
helm.sh/chart: itvr-backend-1.0.0 | ||
app.kubernetes.io/name: itvr-backend | ||
app.kubernetes.io/instance: pr225 | ||
app.kubernetes.io/version: "1.6.0" | ||
app.kubernetes.io/managed-by: Helm | ||
2. only build racking PR | ||
helm template -f ./values-dev.yaml itvr-backend . | ||
name: itvr-backend | ||
labels: | ||
helm.sh/chart: itvr-backend-1.0.0 | ||
app.kubernetes.io/name: itvr-backend | ||
app.kubernetes.io/instance: itvr-backend | ||
app.kubernetes.io/version: "1.6.0" | ||
app.kubernetes.io/managed-by: Helm | ||
it makes PR based pipeline possible for dev environment | ||
At this moment, when deploy on Dev, Test and Prod, set the value for nameOverride and fullnameOverride to be itvr-backend | ||
*/}} | ||
|
||
|
||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "itvr-backend.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
If release name contains chart name it will be used as a full name. | ||
The .Release.Name is the first parameter of command helm install itvr-backend | ||
*/}} | ||
{{- define "itvr-backend.fullname" -}} | ||
{{- if .Values.fullnameOverride }} | ||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- $name := default .Chart.Name .Values.nameOverride }} | ||
{{- if contains $name .Release.Name }} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "itvr-backend.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Common labels: | ||
app.kubernetes.io/managed-by would be Helm | ||
*/}} | ||
{{- define "itvr-backend.labels" -}} | ||
helm.sh/chart: {{ include "itvr-backend.chart" . }} | ||
{{ include "itvr-backend.selectorLabels" . }} | ||
{{- if .Chart.AppVersion }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
|
||
{{/* | ||
Selector labels | ||
*/}} | ||
{{- define "itvr-backend.selectorLabels" -}} | ||
app.kubernetes.io/name: {{ include "itvr-backend.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end }} | ||
|
||
{{/* | ||
Define the deploymentconfig name | ||
*/}} | ||
{{- define "itvr-backend.deploymentconfigName" -}} | ||
{{- include "itvr-backend.fullname" . }} | ||
{{- end }} | ||
|
||
{{/* | ||
Define the deploymentconfig name | ||
*/}} | ||
{{- define "itvr-backend.imagestreamName" -}} | ||
{{- include "itvr-backend.fullname" . }} | ||
{{- end }} | ||
|
||
{{/* | ||
Define the service name | ||
*/}} | ||
{{- define "itvr-backend.serviceName" -}} | ||
{{- include "itvr-backend.fullname" . }} | ||
{{- end }} | ||
|
||
|
||
{{/* | ||
Define the route name | ||
*/}} | ||
{{- define "itvr-backend.routeName" -}} | ||
{{- include "itvr-backend.fullname" . }} | ||
{{- end }} | ||
|
||
{{/* | ||
Define the djangoSecretKey | ||
*/}} | ||
{{- define "itvr-backend.djangoSecretKey" -}} | ||
{{- randAlphaNum 50 | nospace | b64enc }} | ||
{{- end }} | ||
|
||
{{/* | ||
Define the djangoSaltKey | ||
*/}} | ||
{{- define "itvr-backend.djangoSaltKey" -}} | ||
{{- randAlphaNum 50 | nospace | b64enc }} | ||
{{- end }} | ||
|
||
{{/* | ||
Define the django-secret name | ||
*/}} | ||
{{- define "itvr-backend.django-secret" -}} | ||
itvr-django-secret-{{ .Values.envName }} | ||
{{- end }} | ||
|
||
{{/* | ||
Define the django-salt name | ||
*/}} | ||
{{- define "itvr-backend.django-salt" -}} | ||
itvr-django-salt-{{ .Values.envName }} | ||
{{- end }} |
Oops, something went wrong.