fix(netbox): refactor labels in _helpers.tpl
This commit is contained in:
parent
1477eb716f
commit
a5afffec8b
2 changed files with 6 additions and 14 deletions
|
@ -4,7 +4,7 @@ description: |
|
||||||
An IP address management (IPAM) and data center infrastructure management (DCIM) tool.
|
An IP address management (IPAM) and data center infrastructure management (DCIM) tool.
|
||||||
appVersion: v3.7.1
|
appVersion: v3.7.1
|
||||||
type: application
|
type: application
|
||||||
version: 6.0.7
|
version: 6.0.8
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: Tommy Skaug
|
- name: Tommy Skaug
|
||||||
email: tommy@skaug.me
|
email: tommy@skaug.me
|
||||||
|
|
|
@ -38,22 +38,14 @@ Get the correct image tag name
|
||||||
{{- .Values.image.tag | default (printf "v%s" .Chart.AppVersion) -}}
|
{{- .Values.image.tag | default (printf "v%s" .Chart.AppVersion) -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
# Define a template for standard labels.
|
||||||
Selector labels
|
|
||||||
*/}}
|
|
||||||
{{- define "netbox.selectorLabels" -}}
|
|
||||||
app.kubernetes.io/name: {{ include "netbox.name" . }}
|
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Common labels
|
Common labels
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "netbox.labels" -}}
|
{{- define "netbox.labels" -}}
|
||||||
helm.sh/chart: {{ include "netbox.chart" . }}
|
helm.sh/chart: {{ include "netbox.chart" . }}
|
||||||
{{ include "netbox.selectorLabels" . }}
|
app.kubernetes.io/name: {{ include "netbox.fullname" . }}
|
||||||
{{- if .Chart.AppVersion }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
app.kubernetes.io/version: {{ .Chart.Version | quote }}
|
||||||
{{- end }}
|
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
{{- end -}}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in a new issue