Skip to content

Commit

Permalink
✨ (hammond): Add dynamic port env
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Aug 7, 2023
1 parent 2fed15f commit 8137244
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/hammond/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ annotations:
artifacthub.io/changes: |-
- kind: changed
description: Change image from akhilrex/hammond to ghcr.io/alfhou/hammond
- kind: added
description: Add dynamic port env
artifacthub.io/links: |-
- name: App Source
url: https://github.com/AlfHou/hammond
Expand Down
8 changes: 8 additions & 0 deletions charts/hammond/templates/common.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
{{/* Append the dynamic settings */}}
{{- define "hammond.dynamicValues" -}}
env:
PORT: {{ quote .Values.service.main.ports.http.port }}
{{- end -}}
{{- $_ := merge .Values (include "hammond.dynamicValues" . | fromYaml) -}}

{{/* Render the templates */}}
{{ include "bjw-s.common.loader.all" . }}

0 comments on commit 8137244

Please sign in to comment.