Skip to content

Commit

Permalink
add extra env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
unglaublicherdude committed Feb 21, 2024
1 parent ffef4c9 commit 5e5877e
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
*.log
*-locale.yaml
*.tgz
.fleet/
.fleet/
values-local.yaml
12 changes: 12 additions & 0 deletions charts/vaas/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
dependencies:
- name: redis
repository: https://charts.bitnami.com/bitnami
version: 18.13.0
- name: gdscan
repository: https://gdatasoftwareag.github.io/gdscan/
version: 1.6.0
- name: mini-identity-provider
repository: oci://ghcr.io/gdatasoftwareag
version: 0.1.17
digest: sha256:c82d0b1c806656eace4e0fad4b2e73f5b3a2f5ba497b12788e77b3a3f4488030
generated: "2024-02-21T14:56:55.183577055+01:00"
7 changes: 7 additions & 0 deletions charts/vaas/templates/gateway/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,11 @@ Create environment variables to configure gateway container.
- name: VerdictAsAService__Credentials__ClientSecret
{{ toYaml .Values.gateway.options.credentials.clientsecret }}
{{- end }}
{{- end }}

{{- define "gateway.extractEnvVars" -}}
{{- range $key, $value := .Values.gateway.extraEnvVars }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
14 changes: 13 additions & 1 deletion charts/vaas/templates/gateway/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,19 @@ spec:
- mountPath: /tmp
name: gateway-tmp
env:
{{- include "gateway.env" . | nindent 12 }}
- name: Authentication__Schemes__Bearer__Authority
value: {{.Values.gateway.authentication.authority}}
- name: Authentication__Schemes__Bearer__RequireHttpsMetadata
value: "false"
- name: Upload__Endpoint
value: {{.Values.gateway.uploadUrl}}
- name: JwtSettings__Secret
value: {{ randAlphaNum 64 }}
- name: GDScanConfiguration__Url
value: "http://gdscan:8080/scan/body"
- name: RedisConfiguration__Configuration
value: "redis-master"
{{- include "gateway.extractEnvVars" . | nindent 12 }}
ports:
- name: http
containerPort: {{ .Values.gateway.service.http.port }}
Expand Down

0 comments on commit 5e5877e

Please sign in to comment.