Skip to content

Commit

Permalink
[GHA] Update go-monorepo chart
Browse files Browse the repository at this point in the history
  • Loading branch information
krzwiatrzyk committed Aug 20, 2024
1 parent 1ddabab commit 70b40f8
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/go-monorepo/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
apiVersion: v2
name: go-monorepo
version: 0.0.13
version: 0.0.14
2 changes: 1 addition & 1 deletion charts/go-monorepo/templates/lib/containers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
- containerPort: {{ .Values.port }}
name: http
{{ end }}
{{ end }}
{{ end }}
19 changes: 19 additions & 0 deletions charts/go-monorepo/templates/lib/initContainers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{ define "common.initContainers" }}
- name: init
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
resources: {{ .Values.resources | toYaml | nindent 4 }}
command: {{ .Values.init.command | toYaml | nindent 4 }}
args: {{ .Values.init.args | toYaml | nindent 4 }}
envFrom:
{{ if .Values.secrets.enabled }}
- secretRef:
name: {{ .Release.Name }}-envs
{{ end }}
{{ if .Values.envs }}
- configMapRef:
name: {{ .Release.Name }}-envs
{{ end }}
{{ if .Values.env }}
env: {{ .Values.env | toYaml | nindent 2 }}
{{ end }}
{{ end }}
1 change: 1 addition & 0 deletions charts/go-monorepo/templates/lib/pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
imagePullSecrets: {{ .Values.imagePullSecrets | toYaml | nindent 2 }}
{{ end }}
containers: {{ include "common.containers" . | nindent 2 }}
initContainers: {{ include "common.initContainers" . | nindent 2 }}
{{ end }}
11 changes: 10 additions & 1 deletion charts/go-monorepo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,13 @@ rabbitmq:
# create: true
# cluster:
# name:
# namespace:
# namespace:

init:
enabled: false
command:
- river
args:
- migrate-up
- --database-url
- "$DATABASE_URL"

0 comments on commit 70b40f8

Please sign in to comment.