Updated user and grant examples

This commit is contained in:
Martin Montes
2024-04-25 18:50:32 +02:00
parent 00b8c1c450
commit 35925a08b1
4 changed files with 5 additions and 10 deletions

View File

@ -4,14 +4,16 @@ metadata:
name: grant
spec:
mariaDbRef:
name: mariadb
name: mariadb-galera
privileges:
- "SELECT"
- "INSERT"
- "UPDATE"
# - "ALL PRIVILEGES"
database: "*"
table: "*"
username: user
grantOption: true
host: "%"
requeueInterval: 30s
retryInterval: 5s

View File

@ -8,7 +8,7 @@ spec:
mariaDbRef:
name: mariadb
passwordSecretKeyRef:
name: user
name: mariadb
key: password
# This field is immutable and defaults to 10
maxUserConnections: 20

View File

@ -1,6 +0,0 @@
apiVersion: v1
kind: Secret
metadata:
name: user
data:
password: dXNlcg==

View File

@ -8,10 +8,9 @@ spec:
mariaDbRef:
name: mariadb
passwordSecretKeyRef:
name: user
name: mariadb
key: password
# This field is immutable and defaults to 10
maxUserConnections: 20
host: "%"
requeueInterval: 30s
retryInterval: 5s