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

View file

@ -4,10 +4,7 @@ kind: ConfigMap
metadata: metadata:
name: {{ .Chart.Name }}-extra name: {{ .Chart.Name }}-extra
labels: labels:
app.kubernetes.io/name: {{ include "netbox.name" . }} {{- include "netbox.labels" . | nindent 4 }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "netbox.chart" . }}
data: data:
extra.py: | extra.py: |
{{- .Values.extraConfiguration | nindent 4 }} {{- .Values.extraConfiguration | nindent 4 }}
@ -18,10 +15,7 @@ kind: ConfigMap
metadata: metadata:
name: {{ .Chart.Name }}-plugins name: {{ .Chart.Name }}-plugins
labels: labels:
app.kubernetes.io/name: {{ include "netbox.name" . }} {{- include "netbox.labels" . | nindent 4 }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "netbox.chart" . }}
data: data:
plugins.py: | plugins.py: |
{{- .Values.extraPlugins | nindent 4 }} {{- .Values.extraPlugins | nindent 4 }}
@ -32,10 +26,7 @@ kind: ConfigMap
metadata: metadata:
name: {{ include "netbox.fullname" . }} name: {{ include "netbox.fullname" . }}
labels: labels:
app.kubernetes.io/name: {{ include "netbox.name" . }} {{- include "netbox.labels" . | nindent 4 }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "netbox.chart" . }}
data: data:
tmp: "test" tmp: "test"
{{- range $key, $value := .Values.extraEnv }} {{- range $key, $value := .Values.extraEnv }}

View file

@ -4,10 +4,7 @@ apiVersion: v1
metadata: metadata:
name: {{ template "netbox.fullname" . }} name: {{ template "netbox.fullname" . }}
labels: labels:
app.kubernetes.io/name: {{ include "netbox.name" . }} {{- include "netbox.labels" . | nindent 4 }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "netbox.chart" . }}
spec: spec:
accessModes: accessModes:
- {{ .Values.persistence.accessMode | quote }} - {{ .Values.persistence.accessMode | quote }}

View file

@ -3,10 +3,7 @@ kind: Service
metadata: metadata:
name: {{ include "netbox.fullname" . }} name: {{ include "netbox.fullname" . }}
labels: labels:
app.kubernetes.io/name: {{ include "netbox.name" . }} {{- include "netbox.labels" . | nindent 4 }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "netbox.chart" . }}
spec: spec:
type: {{ .Values.service.type }} type: {{ .Values.service.type }}
ports: ports:
@ -15,6 +12,4 @@ spec:
protocol: TCP protocol: TCP
name: http name: http
selector: selector:
app.kubernetes.io/name: {{ include "netbox.name" . }} app: {{ include "netbox.fullname" . }}-app
app.kubernetes.io/instance: {{ .Release.Name }}
component: app