Skip to content

Commit

Permalink
charts/snowplow-iglu-server: Allow passing of arbitrary environment v…
Browse files Browse the repository at this point in the history
…ariables (closes #156)
  • Loading branch information
jparavisini committed Jan 25, 2024
1 parent 5dbfb04 commit 0ee90e2
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: helm repo add snowplow-devops https://snowplow-devops.github.io/helm-charts

- name: Set up chart-testing
uses: helm/chart-testing-action@v2.2.1
uses: helm/chart-testing-action@v2.6.1

- name: Run chart-testing (list-changed)
id: list-changed
Expand All @@ -42,4 +42,4 @@ jobs:
if: steps.list-changed.outputs.changed == 'true'

- name: Run chart-testing (install)
run: ct install --target-branch ${{ github.event.repository.default_branch }}
run: ct install --target-branch ${{ github.event.repository.default_branch }}
4 changes: 4 additions & 0 deletions charts/snowplow-iglu-server/ci/ct-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
service:
config:
env:
ACCEPT_LIMITED_USE_LICENSE: "yes"
4 changes: 4 additions & 0 deletions charts/snowplow-iglu-server/templates/iglu-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ spec:
protocol: TCP

env:
{{- range $k, $v := .Values.service.config.env }}
- name: "{{ $k }}"
value: "{{ $v }}"
{{- end }}
- name : "CONFIG_FORCE_iglu_repoServer_port"
value: "{{ .Values.service.port }}"
- name : "CONFIG_FORCE_iglu_repoServer_maxConnections"
Expand Down
4 changes: 4 additions & 0 deletions charts/snowplow-iglu-server/templates/iglu-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ spec:
- "setup"

env:
{{- range $k, $v := .Values.service.config.env }}
- name: "{{ $k }}"
value: "{{ $v }}"
{{- end }}
- name: "JDK_JAVA_OPTIONS"
value: "-Dconfig.override_with_env_vars=true"
{{- if .Values.service.gcp.deployProxy }}
Expand Down
3 changes: 3 additions & 0 deletions charts/snowplow-iglu-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ service:
memory: 512Mi

config:
# -- Map of additional environment variables to use within the deployment
env:
ACCEPT_LIMITED_USE_LICENSE: "no"
secrets:
# -- Lowercase uuidv4 to use as admin apikey of the service (default: auto-generated)
superApiKey: ""
Expand Down

0 comments on commit 0ee90e2

Please sign in to comment.