Skip to content

Commit

Permalink
Improve common image template (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb authored Aug 21, 2024
1 parent 7e8a26a commit bf318aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/netbox/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: netbox
version: 5.0.0-beta.79
version: 5.0.0-beta.80
appVersion: "v4.0.9"
type: application
kubeVersion: ^1.25.0-0
Expand Down
7 changes: 1 addition & 6 deletions charts/netbox/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
Return the proper image name
*/}}
{{- define "netbox.image" -}}
{{- $imageRoot := .Values.image -}}
{{- if not .Values.image.tag }}
{{- $tag := (dict "tag" .Chart.AppVersion) -}}
{{- $imageRoot := merge .Values.image $tag -}}
{{- end -}}
{{- include "common.images.image" (dict "imageRoot" $imageRoot "global" .Values.global) -}}
{{- include "common.images.image" (dict "imageRoot" .Values.image "global" .Values.global "chart" .Chart) -}}
{{- end -}}

{{/*
Expand Down

0 comments on commit bf318aa

Please sign in to comment.