mirror of
https://github.com/mariadb-operator/mariadb-operator.git
synced 2025-08-18 08:17:37 +00:00
Updated user and grant examples
This commit is contained in:
@ -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
|
@ -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
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: user
|
|
||||||
data:
|
|
||||||
password: dXNlcg==
|
|
@ -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
|
Reference in New Issue
Block a user