fix(netbox): make labels consistent. Service didn't reference the right pod.

This commit is contained in:
Tommy 2024-02-03 15:52:53 +01:00
parent a5afffec8b
commit b66049b6e3
No known key found for this signature in database
4 changed files with 7 additions and 24 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.8
version: 6.0.9
maintainers:
- name: Tommy Skaug
email: tommy@skaug.me

View file

@ -4,10 +4,7 @@ kind: ConfigMap
metadata:
name: {{ .Chart.Name }}-extra
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 }}
data:
extra.py: |
{{- .Values.extraConfiguration | nindent 4 }}
@ -18,10 +15,7 @@ kind: ConfigMap
metadata:
name: {{ .Chart.Name }}-plugins
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 }}
data:
plugins.py: |
{{- .Values.extraPlugins | nindent 4 }}
@ -32,10 +26,7 @@ kind: ConfigMap
metadata:
name: {{ include "netbox.fullname" . }}
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 }}
data:
tmp: "test"
{{- range $key, $value := .Values.extraEnv }}

View file

@ -4,10 +4,7 @@ apiVersion: v1
metadata:
name: {{ template "netbox.fullname" . }}
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:
accessModes:
- {{ .Values.persistence.accessMode | quote }}

View file

@ -3,10 +3,7 @@ kind: Service
metadata:
name: {{ include "netbox.fullname" . }}
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:
type: {{ .Values.service.type }}
ports:
@ -15,6 +12,4 @@ spec:
protocol: TCP
name: http
selector:
app.kubernetes.io/name: {{ include "netbox.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
component: app
app: {{ include "netbox.fullname" . }}-app