Skip to content

Commit

Permalink
Merge pull request mercedes-benz#3428 from mercedes-benz/feature-3427…
Browse files Browse the repository at this point in the history
…-webui-env-via-helmchart

helm chart extended by env variables mercedes-benz#3427
  • Loading branch information
sven-dmlr authored Sep 19, 2024
2 parents d35616d + 2d7f65a commit e59b5fa
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sechub-webui-solution/helm/sechub-webui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ maintainers:
# This version number should be incremented each time you make changes to the chart and its templates.
# Versions are expected to follow Semantic Versioning (https://semver.org/)

version: 0.2.0
version: 0.3.0
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ spec:
# Spring profiles definition
- name: SPRING_PROFILES_ACTIVE
value: "{{ .Values.webui.spring.profiles }}"
{{- if .Values.env }}
# ------------------------------------------------------------------------#
# Scope: Additional environment variables for the SecHub web-ui container
# ----------------------------------------------------------------------- #
{{ .Values.env | indent 8 | trim }}
{{- end }}
{{- if .Values.deploymentComment }}
# Setting DEPLOYMENT_COMMENT to a different value every time forces k8s to spin up a new container.
# This way, you can force deployments e.g. when secrets have changed.
Expand Down
12 changes: 12 additions & 0 deletions sechub-webui-solution/helm/sechub-webui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,18 @@ service:
# prometheus.io/port: "10250"
# prometheus.io/path: "/actuator/prometheus"

# ----------------------------------------------------------------------------------------------#
# Optional: Additional environment variables for the SecHub web-ui container
# --------------------------------------------------------------------------------------------- #
# env: |-
# - name: SECHUB_EXAMPLE_VAR1
# value: "value1"
# - name: SECHUB_EXAMPLE_VAR2
# valueFrom:
# secretKeyRef:
# name: secret-webui-example
# key: password

go_mmproxy:
# Log the real client IP addresses via a go-mmproxy sidecar container
# Otherwise one sees only the loadbalancer's IP in the logs.
Expand Down

0 comments on commit e59b5fa

Please sign in to comment.