fix kustomize replace
This commit is contained in:
parent
fdb61f492a
commit
e4a027e21d
3 changed files with 17 additions and 18 deletions
|
@ -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
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue