feat: replace deprecated Unifi controller with Unifi Network Application (#77)

This commit is contained in:
2024-07-13 16:18:51 +01:00
committed by GitHub
parent c3ae45852d
commit ca8620cafe
7 changed files with 150 additions and 4 deletions

View File

@ -0,0 +1,10 @@
{{- if .Values.mongodb.enabled -}}
apiVersion: v1
kind: ConfigMap
metadata:
name: initdb-scripts
data:
init-mongo.js: |
db = db.getSiblingDB("{{ include "unifi-controller.mongodb.database" . }}");
db.grantRolesToUser("{{ include "unifi-controller.mongodb.username" . }}", [{role: "dbOwner", db: "{{ include "unifi-controller.mongodb.database" . }}_stat"}])
{{- end }}