Skip to content

Commit ca1d3f2

Browse files
committed
feat(openstack): allow mariadb root pwd and storage config changes
Allow someone to override the root password settings and the storage config for mariadb.
1 parent 7666932 commit ca1d3f2

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

components/openstack/templates/mariadb-instance.yaml.tpl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,14 @@ metadata:
77
# do not allow ArgoCD to delete our DB
88
argocd.argoproj.io/sync-options: Delete=false
99
spec:
10-
rootPasswordSecretKeyRef:
11-
name: mariadb
12-
key: root-password
13-
generate: true
10+
rootPasswordSecretKeyRef: {{ .Values.mariadb.rootPasswordSecretKeyRef | toJson }}
1411

1512
# renovate: datasource=docker
1613
image: docker-registry1.mariadb.com/library/mariadb:11.4.4
1714
imagePullPolicy: IfNotPresent
1815

1916
port: 3306
20-
storage:
21-
size: 10Gi
22-
resizeInUseVolumes: true
23-
waitForVolumeResize: true
17+
storage: {{ .Values.mariadb.storage | toJson }}
2418

2519
service:
2620
type: ClusterIP

components/openstack/values.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
---
22

3+
# -- OpenStack mariadb instance settings
4+
mariadb:
5+
# -- root password settings
6+
rootPasswordSecretKeyRef:
7+
name: mariadb
8+
key: root-password
9+
generate: true
10+
11+
# -- storage settings
12+
storage:
13+
size: 10Gi
14+
resizeInUseVolumes: true
15+
waitForVolumeResize: true
16+
317
# -- Array of extra Kubernetes manifests to deploy
418
extraObjects: []
519
# - apiVersion: external-secrets.io/v1beta1

0 commit comments

Comments
 (0)