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 name: grant
spec: spec:
mariaDbRef: mariaDbRef:
name: mariadb name: mariadb-galera
privileges: privileges:
- "SELECT" - "SELECT"
- "INSERT" - "INSERT"
- "UPDATE" - "UPDATE"
# - "ALL PRIVILEGES"
database: "*" database: "*"
table: "*" table: "*"
username: user username: user
grantOption: true grantOption: true
host: "%" host: "%"
requeueInterval: 30s
retryInterval: 5s retryInterval: 5s

View File

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