Skip to content

Commit

Permalink
Merge pull request #2471 from bcgov/fix-helm-helper-function
Browse files Browse the repository at this point in the history
Fix helm helper function naming
  • Loading branch information
Sepehr-Sobhani authored Nov 14, 2024
2 parents 33d242d + 38aeb6e commit 4801207
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions helm/cas-bciers/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ Create the name of the service account to use
{{/*
Define environment variables for the application.
*/}}
{{- define "cas-registration.backendEnvVars" -}}
{{- define "cas-bciers.backendEnvVars" -}}
- name: DJANGO_SECRET_KEY
valueFrom:
secretKeyRef:
key: django-secret-key
name: {{ include "cas-registration.fullname" . }}-backend
name: {{ include "cas-bciers.fullname" . }}-backend
- name: CHES_CLIENT_SECRET
valueFrom:
secretKeyRef:
Expand All @@ -116,27 +116,27 @@ Define environment variables for the application.
valueFrom:
secretKeyRef:
key: user
name: cas-obps-postgres-pguser-registration
name: cas-obps-postgres-pguser-bciers
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: cas-obps-postgres-pguser-registration
name: cas-obps-postgres-pguser-bciers
- name: DB_NAME
valueFrom:
secretKeyRef:
key: dbname
name: cas-obps-postgres-pguser-registration
name: cas-obps-postgres-pguser-bciers
- name: DB_PORT
valueFrom:
secretKeyRef:
key: pgbouncer-port
name: cas-obps-postgres-pguser-registration
name: cas-obps-postgres-pguser-bciers
- name: DB_HOST
valueFrom:
secretKeyRef:
key: pgbouncer-host
name: cas-obps-postgres-pguser-registration
name: cas-obps-postgres-pguser-bciers
- name: ALLOWED_HOSTS
value: '*'
- name: BACKEND_HOST
Expand All @@ -145,7 +145,7 @@ Define environment variables for the application.
valueFrom:
secretKeyRef:
key: bucket_name
name: gcp-{{ .Release.Namespace }}-registration-attach-service-account-key
name: gcp-{{ .Release.Namespace }}-bciers-attach-service-account-key
- name: GOOGLE_APPLICATION_CREDENTIALS
value: "/attachment-credentials/attachment-credentials.json"
- name: ENVIRONMENT
Expand Down
6 changes: 3 additions & 3 deletions helm/cas-registration/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ Create the name of the service account to use
{{/*
Define environment variables for the application.
*/}}
{{- define "cas-bciers.backendEnvVars" -}}
{{- define "cas-registration.backendEnvVars" -}}
- name: DJANGO_SECRET_KEY
valueFrom:
secretKeyRef:
key: django-secret-key
name: {{ include "cas-bciers.fullname" . }}-backend
name: {{ include "cas-registration.fullname" . }}-backend
- name: CHES_CLIENT_SECRET
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -144,7 +144,7 @@ Define environment variables for the application.
valueFrom:
secretKeyRef:
key: bucket_name
name: gcp-{{ .Release.Namespace }}-bciers-attach-service-account-key
name: gcp-{{ .Release.Namespace }}-registration-attach-service-account-key
- name: GOOGLE_APPLICATION_CREDENTIALS
value: "/attachment-credentials/attachment-credentials.json"
- name: ENVIRONMENT
Expand Down

0 comments on commit 4801207

Please sign in to comment.