Skip to content

Commit

Permalink
🔧(helm) add ai setting to environments
Browse files Browse the repository at this point in the history
Add the ai setting to the environments.
  • Loading branch information
AntoLC authored and sampaccoud committed Oct 16, 2024
1 parent fe13fa4 commit 4c5c8d6
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
11 changes: 10 additions & 1 deletion src/helm/env.d/preprod/values.impress.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ backend:
argocd.argoproj.io/hook: PreSync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
envVars:
AI_API_KEY:
secretKeyRef:
name: backend
key: AI_API_KEY
AI_BASE_URL:
secretKeyRef:
name: backend
key: AI_BASE_URL
AI_MODEL: meta-llama/Meta-Llama-3.1-70B-Instruct
DJANGO_CSRF_TRUSTED_ORIGINS: http://impress-preprod.beta.numerique.gouv.fr,https://impress-preprod.beta.numerique.gouv.fr
DJANGO_CONFIGURATION: Production
DJANGO_ALLOWED_HOSTS: "*"
Expand Down Expand Up @@ -171,4 +180,4 @@ ingressMedia:

serviceMedia:
host: s3.margaret-hamilton.indiehosters.net
port: 443
port: 443
11 changes: 10 additions & 1 deletion src/helm/env.d/production/values.impress.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ backend:
argocd.argoproj.io/hook: PostSync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
envVars:
AI_API_KEY:
secretKeyRef:
name: backend
key: AI_API_KEY
AI_BASE_URL:
secretKeyRef:
name: backend
key: AI_BASE_URL
AI_MODEL: meta-llama/Meta-Llama-3.1-70B-Instruct
DJANGO_CSRF_TRUSTED_ORIGINS: https://docs.numerique.gouv.fr
DJANGO_CONFIGURATION: Production
DJANGO_ALLOWED_HOSTS: "*"
Expand Down Expand Up @@ -171,4 +180,4 @@ ingressMedia:

serviceMedia:
host: s3.hedy-lamarr.indiehosters.net
port: 443
port: 443
9 changes: 9 additions & 0 deletions src/helm/env.d/staging/values.impress.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ backend:
argocd.argoproj.io/hook: PreSync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
envVars:
AI_API_KEY:
secretKeyRef:
name: backend
key: AI_API_KEY
AI_BASE_URL:
secretKeyRef:
name: backend
key: AI_BASE_URL
AI_MODEL: meta-llama/Meta-Llama-3.1-70B-Instruct
DJANGO_CSRF_TRUSTED_ORIGINS: http://impress-staging.beta.numerique.gouv.fr,https://impress-staging.beta.numerique.gouv.fr
DJANGO_CONFIGURATION: Production
DJANGO_ALLOWED_HOSTS: "*"
Expand Down
2 changes: 2 additions & 0 deletions src/helm/impress/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ stringData:
{{- end }}
OIDC_RP_CLIENT_ID: {{ .Values.oidc.clientId }}
OIDC_RP_CLIENT_SECRET: {{ .Values.oidc.clientSecret }}
AI_API_KEY: {{ .Values.aiApiKey }}
AI_BASE_URL: {{ .Values.aiBaseUrl }}

0 comments on commit 4c5c8d6

Please sign in to comment.