netbox: Update chart dependencies

This commit is contained in:
Alexander "Ace" Olofsson 2022-12-20 19:46:54 +01:00
parent 548cd901bc
commit da60d37679
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
7 changed files with 20 additions and 18 deletions

View file

@ -10,16 +10,16 @@ icon: https://raw.githubusercontent.com/digitalocean/netbox/develop/netbox/proje
appVersion: 3.4.1 appVersion: 3.4.1
type: application type: application
version: 4.3.14 version: 5.0.0
maintainers: maintainers:
- name: Alexander Olofsson - name: Alexander Olofsson
email: ace@haxalot.com email: ace@haxalot.com
dependencies: dependencies:
- name: postgresql - name: postgresql
version: ^10.6.0 version: ^12.1.4
repository: https://charts.bitnami.com/bitnami repository: https://charts.bitnami.com/bitnami
condition: postgresql.enabled condition: postgresql.enabled
- name: redis - name: redis
version: ^15.7.0 version: ^17.3.17
repository: https://charts.bitnami.com/bitnami repository: https://charts.bitnami.com/bitnami

View file

@ -23,8 +23,8 @@ metadata:
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "netbox.chart" . }} helm.sh/chart: {{ include "netbox.chart" . }}
data: data:
DB_NAME: {{ .Values.postgresql.postgresqlDatabase | quote }} DB_NAME: {{ .Values.postgresql.auth.database | quote }}
DB_USER: {{ .Values.postgresql.postgresqlUsername | quote }} DB_USER: {{ .Values.postgresql.auth.username | quote }}
DB_HOST: {{ .Values.postgresql.postgresqlHost | default (include "netbox.postgresql.fullname" .) }} DB_HOST: {{ .Values.postgresql.postgresqlHost | default (include "netbox.postgresql.fullname" .) }}
DB_PORT: {{ .Values.postgresql.postgresqlPort | default 5432 | quote }} DB_PORT: {{ .Values.postgresql.postgresqlPort | default 5432 | quote }}

View file

@ -44,10 +44,10 @@ spec:
secretKeyRef: secretKeyRef:
{{- if .Values.postgresql.existingSecret }} {{- if .Values.postgresql.existingSecret }}
name: {{ .Values.postgresql.existingSecret }} name: {{ .Values.postgresql.existingSecret }}
key: {{ .Values.postgresql.existingSecretKey }} key: password
{{- else }} {{- else }}
name: {{ include "netbox.postgresql.fullname" . }} name: {{ include "netbox.postgresql.fullname" . }}
key: postgresql-password key: password
{{- end }} {{- end }}
{{- end }} {{- end }}
envFrom: envFrom:

View file

@ -46,10 +46,10 @@ spec:
secretKeyRef: secretKeyRef:
{{- if .Values.postgresql.existingSecret }} {{- if .Values.postgresql.existingSecret }}
name: {{ .Values.postgresql.existingSecret }} name: {{ .Values.postgresql.existingSecret }}
key: {{ .Values.postgresql.existingSecretKey }} key: password
{{- else }} {{- else }}
name: {{ include "netbox.postgresql.fullname" . }} name: {{ include "netbox.postgresql.fullname" . }}
key: postgresql-password key: password
{{- end }} {{- end }}
{{- end }} {{- end }}
envFrom: envFrom:

View file

@ -60,7 +60,7 @@ spec:
key: {{ .Values.postgresql.existingSecretKey }} key: {{ .Values.postgresql.existingSecretKey }}
{{- else }} {{- else }}
name: {{ include "netbox.postgresql.fullname" . }} name: {{ include "netbox.postgresql.fullname" . }}
key: postgresql-password key: password
{{- end }} {{- end }}
{{- end }} {{- end }}
envFrom: envFrom:

View file

@ -9,8 +9,8 @@ metadata:
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "netbox.chart" . }} helm.sh/chart: {{ include "netbox.chart" . }}
data: data:
{{- if and (.Values.postgresql.postgresqlPassword) (not .Values.postgresql.enabled) }} {{- if and (.Values.postgresql.auth.password) (not .Values.postgresql.enabled) }}
DB_PASSWORD: {{ .Values.postgresql.postgresqlPassword | b64enc }} DB_PASSWORD: {{ .Values.postgresql.auth.password | b64enc }}
{{- end }} {{- end }}
{{- if .Values.djangoSecret }} {{- if .Values.djangoSecret }}
SECRET_KEY: {{ .Values.djangoSecret | b64enc }} SECRET_KEY: {{ .Values.djangoSecret | b64enc }}

View file

@ -44,16 +44,17 @@ ingress:
postgresql: postgresql:
enabled: true enabled: true
postgresqlDatabase: netbox auth:
postgresqlUsername: netbox database: netbox
username: netbox
# password: postgres
## When defined the `password` field is ignored
## Refer to https://github.com/bitnami/charts/blob/d839514d4ea3072a816097493e74cf583d40e3cb/bitnami/postgresql/values.yaml#L143
# existingSecret: secret-name
# The following variables are only used when internal PG is disabled # The following variables are only used when internal PG is disabled
# postgresqlHost: postgres # postgresqlHost: postgres
# postgresqlPassword: postgres
# postgresqlPort: 5432 # postgresqlPort: 5432
# When defined the `postgresqlPassword` field is ignored
# existingSecret: secret-name
# existingSecretKey: postgresql-password
redis: redis:
architecture: standalone architecture: standalone
@ -62,6 +63,7 @@ redis:
# password: netbox # password: netbox
master: master:
kind: Deployment
persistence: persistence:
enabled: false enabled: false
service: service: