fix(netbox) also include selectorLabels

This commit is contained in:
Tommy 2024-01-31 16:40:08 +01:00
parent e94afff689
commit b65f4ec699
No known key found for this signature in database
2 changed files with 10 additions and 2 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.2
version: 6.0.3
maintainers:
- name: Tommy Skaug
email: tommy@skaug.me

View file

@ -38,6 +38,14 @@ Get the correct image tag name
{{- .Values.image.tag | default (printf "v%s" .Chart.AppVersion) -}}
{{- end -}}
{{/*
Selector labels
*/}}
{{- define "netbox.selectorLabels" -}}
app.kubernetes.io/name: {{ include "netbox.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
{{/*
Common labels
*/}}
@ -48,4 +56,4 @@ helm.sh/chart: {{ include "netbox.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
{{- end -}}