mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-03-21 15:41:17 +00:00
Signed-off-by: Andrei Kvapil <kvapss@gmail.com> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced database user management with role definitions for `admin` and `readonly` users. - Introduced support for additional environment variables in the MariaDB operator deployment. - Added new RBAC roles for viewing and editing MariaDB resources. - **Changes** - Updated configuration structure for database and user management, shifting from arrays to objects. - Improved webhook certificate management with revision history control. - Updated image repository for the MariaDB operator. - **Bug Fixes** - Adjusted permissions in RBAC configuration for better security and resource management. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
19 lines
448 B
YAML
19 lines
448 B
YAML
{{- range $name, $u := .Values.users }}
|
|
{{ if not (eq $name "root") }}
|
|
{{ $dnsName := replace "_" "-" $name }}
|
|
---
|
|
apiVersion: k8s.mariadb.com/v1alpha1
|
|
kind: User
|
|
metadata:
|
|
name: {{ $.Release.Name }}-{{ $dnsName }}
|
|
spec:
|
|
name: {{ $name }}
|
|
mariaDbRef:
|
|
name: {{ $.Release.Name }}
|
|
passwordSecretKeyRef:
|
|
name: {{ $.Release.Name }}-credentials
|
|
key: {{ $name }}
|
|
maxUserConnections: {{ $u.maxUserConnections }}
|
|
{{- end }}
|
|
{{- end }}
|