netbox: Clean up labels

This commit is contained in:
Alexander Olofsson 2020-04-08 21:22:46 +02:00
parent 42b94b3aff
commit d975960704
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
8 changed files with 8 additions and 9 deletions

View file

@ -4,4 +4,4 @@ appVersion: "2.7.12"
description: An IP address management (IPAM) and data center infrastructure management (DCIM) tool.
icon: https://raw.githubusercontent.com/digitalocean/netbox/develop/netbox/project-static/img/netbox.ico
name: netbox
version: 0.4.7
version: 0.5.0

View file

@ -5,9 +5,9 @@ metadata:
name: {{ include "netbox.fullname" . }}
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 }}
helm.sh/chart: {{ include "netbox.chart" . }}
data:
DB_NAME: {{ .Values.database.database }}
DB_USER: {{ .Values.database.user }}

View file

@ -6,9 +6,9 @@ metadata:
name: {{ include "netbox.fullname" . }}-worker
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 }}
helm.sh/chart: {{ include "netbox.chart" . }}
spec:
replicas: {{ .Values.worker.replicaCount }}
selector:

View file

@ -10,9 +10,9 @@ metadata:
name: {{ $fullName }}
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 }}
helm.sh/chart: {{ include "netbox.chart" . }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}

View file

@ -5,9 +5,9 @@ metadata:
name: {{ .Chart.Name }}-config-files
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 }}
helm.sh/chart: {{ include "netbox.chart" . }}
data:
gunicorn_config.py: |-
command = '/usr/bin/gunicorn'

View file

@ -5,9 +5,9 @@ metadata:
name: {{ template "netbox.fullname" . }}
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 }}
helm.sh/chart: {{ include "netbox.chart" . }}
spec:
accessModes:
- {{ .Values.persistence.accessMode | quote }}

View file

@ -4,9 +4,9 @@ metadata:
name: {{ include "netbox.fullname" . }}
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 }}
helm.sh/chart: {{ include "netbox.chart" . }}
data:
DB_PASSWORD: {{ .Values.database.password | b64enc }}
REDIS_PASSWORD: {{ .Values.redis.password | b64enc }}

View file

@ -4,10 +4,9 @@ metadata:
name: {{ include "netbox.fullname" . }}
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 }}
com.digitalocean.netbox/component: front
helm.sh/chart: {{ include "netbox.chart" . }}
spec:
type: {{ .Values.service.type }}
ports: