fix kustomize replace
This commit is contained in:
parent
73596fbb49
commit
fdb61f492a
3 changed files with 12 additions and 19 deletions
|
@ -9,5 +9,17 @@ 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
|
||||
|
|
|
@ -8,8 +8,6 @@ spec:
|
|||
image: public.ecr.aws/emqx/emqx:5.8.0
|
||||
config:
|
||||
mode: Merge
|
||||
data: |
|
||||
$(emqx-conf)
|
||||
coreTemplate:
|
||||
metadata:
|
||||
annotations:
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
@ -6,21 +5,5 @@ resources:
|
|||
- ./cluster.yaml
|
||||
- ./ingress.yaml
|
||||
- ./podmonitor.yaml
|
||||
patchesStrategicMerge:
|
||||
- cluster.yaml
|
||||
replacements:
|
||||
- source:
|
||||
kind: ConfigMap
|
||||
name: emqx-conf
|
||||
namespace: database
|
||||
fieldPath: data.emqx.conf
|
||||
targets:
|
||||
- select:
|
||||
kind: EMQX
|
||||
name: emqx
|
||||
fieldPaths:
|
||||
- spec.config.data
|
||||
options:
|
||||
delimiter: |
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
|
Loading…
Reference in a new issue