fix(netbox) adjust labels in deployment templates

This commit is contained in:
Tommy 2024-01-31 17:28:40 +01:00
parent b65f4ec699
commit 3bfeab316a
No known key found for this signature in database
4 changed files with 7 additions and 11 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.3
version: 6.0.4
maintainers:
- name: Tommy Skaug
email: tommy@skaug.me

View file

@ -5,10 +5,8 @@ kind: Deployment
metadata:
name: {{ include "netbox.fullname" . }}-housekeeping
labels:
app.kubernetes.io/name: {{ include "netbox.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "netbox.chart" . }}
{{- include "netbox.labels" . | nindent 4 }}
app.kubernetes.io/component: housekeeping
spec:
replicas: 1
selector:

View file

@ -21,9 +21,8 @@ spec:
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configuration.yaml") . | sha256sum }}
labels:
app.kubernetes.io/name: {{ include "netbox.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
component: worker
{{- include "netbox.labels" . | nindent 8 }}
app.kubernetes.io/component: worker
spec:
containers:
- name: {{ .Chart.Name }}-worker

View file

@ -20,9 +20,8 @@ spec:
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configuration.yaml") . | sha256sum }}
labels:
app.kubernetes.io/name: {{ include "netbox.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
component: app
{{- include "netbox.labels" . | nindent 8 }}
app.kubernetes.io/component: app
spec:
containers:
- name: {{ .Chart.Name }}