fix(netbox) selectors didn't match labels

This commit is contained in:
Tommy 2024-02-03 10:53:28 +01:00
parent 16044d5773
commit 972f1f3aa7
No known key found for this signature in database
4 changed files with 10 additions and 27 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.5
version: 6.0.6
maintainers:
- name: Tommy Skaug
email: tommy@skaug.me

View file

@ -6,22 +6,17 @@ metadata:
name: {{ include "netbox.fullname" . }}-housekeeping
labels:
{{- include "netbox.labels" . | nindent 4 }}
app.kubernetes.io/component: housekeeping
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: {{ include "netbox.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: housekeeping
app.kubernetes.io/component: {{ include "netbox.fullname" . }}-housekeeping
template:
metadata:
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configuration.yaml") . | sha256sum }}
labels:
app.kubernetes.io/name: {{ include "netbox.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: housekeeping
app.kubernetes.io/component: {{ include "netbox.fullname" . }}-housekeeping
spec:
containers:
- name: {{ .Chart.Name }}-housekeeping

View file

@ -5,24 +5,18 @@ kind: Deployment
metadata:
name: {{ include "netbox.fullname" . }}-worker
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 }}
spec:
replicas: {{ .Values.worker.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "netbox.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: worker
app.kubernetes.io/component: {{ include "netbox.fullname" . }}-worker
template:
metadata:
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configuration.yaml") . | sha256sum }}
labels:
{{- include "netbox.labels" . | nindent 8 }}
app.kubernetes.io/component: worker
app.kubernetes.io/component: {{ include "netbox.fullname" . }}-worker
spec:
containers:
- name: {{ .Chart.Name }}-worker

View file

@ -2,26 +2,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "netbox.fullname" . }}
name: {{ include "netbox.fullname" . }}-app
labels:
app.kubernetes.io/name: {{ include "netbox.name" . }}
helm.sh/chart: {{ include "netbox.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- include "netbox.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "netbox.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: app
app.kubernetes.io/component: {{ include "netbox.fullname" . }}-app
template:
metadata:
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configuration.yaml") . | sha256sum }}
labels:
{{- include "netbox.labels" . | nindent 8 }}
app.kubernetes.io/component: app
app.kubernetes.io/component: {{ include "netbox.fullname" . }}-app
spec:
containers:
- name: {{ .Chart.Name }}