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

Jason/s28 3373/keda #792

Draft
wants to merge 12 commits into
base: S28-3373/keda
Choose a base branch
from
5 changes: 1 addition & 4 deletions charts/pre-api/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,4 @@ dependencies:
- name: function
version: 2.5.3
repository: https://hmctspublic.azurecr.io/helm/v1/repo/
- name: postgresql
version: 1.0.2
repository: 'https://hmctspublic.azurecr.io/helm/v1/repo/'
condition: postgresql.enabled
condition: java.enabled
26 changes: 19 additions & 7 deletions charts/pre-api/values.dev.template.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
global:
postgresql:
auth:
username: pre
password: testpass
database: api

java:
devmemoryLimits: '2048Mi'
postgresql:
enabled: true
environment:
RUN_DB_MIGRATION_ON_STARTUP: true
POSTGRES_HOST: "{{ .Release.Name }}-postgresql"
POSTGRES_DATABASE: "{{ .Values.global.postgresql.auth.database }}"
POSTGRES_USER: "{{ .Values.global.postgresql.auth.username }}"
POSTGRES_PASSWORD: "{{ .Values.global.postgresql.auth.password }}"
TESTING_SUPPORT_ENDPOINTS_ENABLED: true
APIM_ENABLED: false
AZURE_MEDIA_SERVICES_ACCOUNT_NAME: preamsstg
Expand All @@ -13,15 +26,10 @@ java:
MEDIA_SERVICE: MediaKind
AZURE_INGEST_SA: preingestsastg
AZURE_FINAL_SA: prefinalsastg
postgresql:
enabled: true
auth:
username: ${POSTGRES_USER}
password: ${POSTGRES_PASSWORD}
database: ${POSTGRES_DATABASE}
# Don't modify below here
image: ${IMAGE_NAME}
ingressHost: ${SERVICE_FQDN}

function:
scaleType: Job
image: ${IMAGE_NAME}
Expand All @@ -32,6 +40,10 @@ function:
scalingStrategy: accurate
environment:
RUN_DB_MIGRATION_ON_STARTUP: true
POSTGRES_HOST: "{{ .Release.Name }}-postgresql"
POSTGRES_DATABASE: "{{ .Values.global.postgresql.auth.database }}"
POSTGRES_USER: "{{ .Values.global.postgresql.auth.username }}"
POSTGRES_PASSWORD: "{{ .Values.global.postgresql.auth.password }}"
TESTING_SUPPORT_ENDPOINTS_ENABLED: true
APIM_ENABLED: false
AZURE_MEDIA_SERVICES_ACCOUNT_NAME: preamsstg
Expand All @@ -44,7 +56,7 @@ function:
AZURE_INGEST_SA: preingestsastg
AZURE_FINAL_SA: prefinalsastg
TASK_NAME: PerformEditRequest
DB_CONNECTION_STRING: "postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DATABASE}"
DB_CONNECTION_STRING: "postgresql://{{ .Values.global.postgresql.auth.username }}:{{ .Values.global.postgresql.auth.password }}@{{ .Release.Name }}-postgresql:5432/{{ .Values.global.postgresql.auth.database }}"
job:
parallelism: 1
completions: 1
Expand Down