mirror of
https://github.com/dat515-2025/Group-8.git
synced 2026-03-22 15:12:08 +01:00
feat(infrastructure): update database deployment
This commit is contained in:
@@ -4,7 +4,8 @@ metadata:
|
|||||||
name: grant
|
name: grant
|
||||||
spec:
|
spec:
|
||||||
mariaDbRef:
|
mariaDbRef:
|
||||||
name: mariadb
|
name: mariadb-repl
|
||||||
|
namespace: mariadb-operator
|
||||||
privileges:
|
privileges:
|
||||||
- "ALL PRIVILEGES"
|
- "ALL PRIVILEGES"
|
||||||
database: "app-demo-database"
|
database: "app-demo-database"
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ spec:
|
|||||||
# If you want the user to be created with a different name than the resource name
|
# If you want the user to be created with a different name than the resource name
|
||||||
# name: user-custom
|
# name: user-custom
|
||||||
mariaDbRef:
|
mariaDbRef:
|
||||||
name: mariadb
|
name: mariadb-repl
|
||||||
|
namespace: mariadb-operator
|
||||||
passwordSecretKeyRef:
|
passwordSecretKeyRef:
|
||||||
name: app-demo-database-secret
|
name: app-demo-database-secret
|
||||||
key: password
|
key: password
|
||||||
|
|||||||
@@ -4,7 +4,8 @@ metadata:
|
|||||||
name: app-demo-database
|
name: app-demo-database
|
||||||
spec:
|
spec:
|
||||||
mariaDbRef:
|
mariaDbRef:
|
||||||
name: mariadb
|
name: mariadb-repl
|
||||||
|
namespace: mariadb-operator
|
||||||
characterSet: utf8
|
characterSet: utf8
|
||||||
collate: utf8_general_ci
|
collate: utf8_general_ci
|
||||||
# Delete the resource in the database whenever the CR gets deleted.
|
# Delete the resource in the database whenever the CR gets deleted.
|
||||||
|
|||||||
Reference in New Issue
Block a user