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. 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.3 version: 6.0.4
maintainers: maintainers:
- name: Tommy Skaug - name: Tommy Skaug
email: tommy@skaug.me email: tommy@skaug.me

View file

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

View file

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

View file

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