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 namespace: mariadb-operator-system
spec: spec:
replicas: 3 replicas: 3
replication: replication:
enabled: true enabled: true
# primary: # primary:
#automaticFailover: true #automaticFailover: true
rootPasswordSecretKeyRef: rootPasswordSecretKeyRef:
name: mariadb-secrets name: mariadb-secrets
key: password key: password
storage: storage:
size: 20Gi size: 20Gi
# Optional but recommended # Optional but recommended
service: service:
type: ClusterIP type: ClusterIP
# Helps with stable operation in GitOps # Helps with stable operation in GitOps
updateStrategy: updateStrategy:
type: ReplicasFirstPrimaryLast type: ReplicasFirstPrimaryLast
# Basic resource safety # Basic resource safety
resources: resources:
requests: requests:

View file

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

View file

@ -6,3 +6,13 @@ resources:
- crds - crds
- cluster - cluster
- mariadb-clustersecrets.yaml - 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