diff --git a/kubernetes/apps/database/emqx/app/kustomization.yaml b/kubernetes/apps/database/emqx/app/kustomization.yaml index 6cdb6c69..4eed917b 100644 --- a/kubernetes/apps/database/emqx/app/kustomization.yaml +++ b/kubernetes/apps/database/emqx/app/kustomization.yaml @@ -5,21 +5,3 @@ kind: Kustomization resources: - ./externalsecret.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 diff --git a/kubernetes/apps/database/emqx/cluster/kustomization.yaml b/kubernetes/apps/database/emqx/cluster/kustomization.yaml index 3573018f..c35ed6e2 100644 --- a/kubernetes/apps/database/emqx/cluster/kustomization.yaml +++ b/kubernetes/apps/database/emqx/cluster/kustomization.yaml @@ -5,5 +5,22 @@ resources: - ./cluster.yaml - ./ingress.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: disableNameSuffixHash: true diff --git a/kubernetes/apps/database/emqx/app/resources/emqx.conf b/kubernetes/apps/database/emqx/cluster/resources/emqx.conf similarity index 100% rename from kubernetes/apps/database/emqx/app/resources/emqx.conf rename to kubernetes/apps/database/emqx/cluster/resources/emqx.conf