adding values to helmrelease to specify image name

This commit is contained in:
j37hr0 2026-04-21 19:31:47 +12:00
parent 06b508fc59
commit ded7421159
4 changed files with 17 additions and 6 deletions

View file

@ -5,27 +5,21 @@ metadata:
namespace: mariadb-operator-system
spec:
replicas: 3
replication:
enabled: true
# primary:
#automaticFailover: true
rootPasswordSecretKeyRef:
name: mariadb-secrets
key: password
storage:
size: 20Gi
# Optional but recommended
service:
type: ClusterIP
# Helps with stable operation in GitOps
updateStrategy:
type: ReplicasFirstPrimaryLast
# Basic resource safety
resources:
requests:

View file

@ -14,3 +14,7 @@ spec:
kind: HelmRepository
name: mariadb-operator
namespace: flux-system
valuesFrom:
- kind: ConfigMap
name: mariadb-operator-values
valuesKey: values.yaml

View file

@ -6,3 +6,13 @@ resources:
- crds
- cluster
- mariadb-clustersecrets.yaml
namespace: mariadb-operator-system
configMapGenerator:
- name: mariadb-operator-values
files:
- values.yaml
generatorOptions:
disableNameSuffixHash: true

View file

@ -0,0 +1,3 @@
image:
repository: docker-registry3.mariadb.com/mariadb-operator/mariadb-operator
pullPolicy: IfNotPresent