fix kustomize replace

This commit is contained in:
Joseph Hanson 2024-09-23 01:25:01 -05:00
parent fdb61f492a
commit e4a027e21d
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
3 changed files with 17 additions and 18 deletions

View file

@ -5,21 +5,3 @@ kind: Kustomization
resources: resources:
- ./externalsecret.yaml - ./externalsecret.yaml
- ./helmrelease.yaml - ./helmrelease.yaml
configMapGenerator:
- name: emqx-conf
files:
- emqx.conf=./resources/emqx.conf
replacements:
- source:
kind: ConfigMap
name: emqx-conf
targets:
- fieldPaths:
- spec.config.data
options:
create: true
select:
kind: EMQX
name: emqx
generatorOptions:
disableNameSuffixHash: true

View file

@ -5,5 +5,22 @@ resources:
- ./cluster.yaml - ./cluster.yaml
- ./ingress.yaml - ./ingress.yaml
- ./podmonitor.yaml - ./podmonitor.yaml
configMapGenerator:
- name: emqx-conf
files:
- emqx.conf=./resources/emqx.conf
replacements:
- source:
kind: ConfigMap
name: emqx-conf
fieldPath: data.emqx\.conf
targets:
- fieldPaths:
- spec.config.data
options:
create: true
select:
kind: EMQX
name: emqx
generatorOptions: generatorOptions:
disableNameSuffixHash: true disableNameSuffixHash: true