Skip to content

Commit

Permalink
feat: add helm helpers to deal with app tags
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosthe19916 committed Nov 13, 2024
1 parent 6350930 commit de69434
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 68 deletions.
67 changes: 0 additions & 67 deletions .github/workflows/helm-build.yaml

This file was deleted.

7 changes: 7 additions & 0 deletions helm/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{{- define "app.tag" -}}
{{- if eq .Chart.AppVersion "latest" }}
{{- "latest" }}
{{- else }}
{{- printf "v%s" .Chart.AppVersion }}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
value: "quay.io/sclorg/postgresql-15-c9s:latest"
- name: "QUARKUS_OPERATOR_SDK_CONTROLLERS_TRUSTIFY_NAMESPACES"
value: {{ .Values.watchNamespaces }}
image: "ghcr.io/runner/trustify-operator:{{ .Chart.AppVersion }}"
image: "ghcr.io/trustification/trustify-operator:{{ include "app.tag" . }}"
imagePullPolicy: "Always"
livenessProbe:
failureThreshold: 3
Expand Down

0 comments on commit de69434

Please sign in to comment.