fix(netbox) add support for labels

This commit is contained in:
Tommy 2024-01-31 16:34:08 +01:00
parent ba9d67cef3
commit e94afff689
No known key found for this signature in database
2 changed files with 13 additions and 1 deletions

View file

@ -4,7 +4,7 @@ description: |
An IP address management (IPAM) and data center infrastructure management (DCIM) tool.
appVersion: v3.7.1
type: application
version: 6.0.1
version: 6.0.2
maintainers:
- name: Tommy Skaug
email: tommy@skaug.me

View file

@ -37,3 +37,15 @@ Get the correct image tag name
{{- define "netbox.imageTag" -}}
{{- .Values.image.tag | default (printf "v%s" .Chart.AppVersion) -}}
{{- end -}}
{{/*
Common labels
*/}}
{{- define "netbox.labels" -}}
helm.sh/chart: {{ include "netbox.chart" . }}
{{ include "netbox.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}