fix(netbox) add support for labels
This commit is contained in:
parent
ba9d67cef3
commit
e94afff689
2 changed files with 13 additions and 1 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.1
|
version: 6.0.2
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: Tommy Skaug
|
- name: Tommy Skaug
|
||||||
email: tommy@skaug.me
|
email: tommy@skaug.me
|
||||||
|
|
|
@ -37,3 +37,15 @@ Get the correct image tag name
|
||||||
{{- define "netbox.imageTag" -}}
|
{{- define "netbox.imageTag" -}}
|
||||||
{{- .Values.image.tag | default (printf "v%s" .Chart.AppVersion) -}}
|
{{- .Values.image.tag | default (printf "v%s" .Chart.AppVersion) -}}
|
||||||
{{- end -}}
|
{{- 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 -}}
|
Loading…
Reference in a new issue