Unable to create serviceMonitor from Helm chart with Kustomize #4247
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Describe the bug
I'm trying to use
Kustomize
to inflate the Helm chart of ingress-nginx in order to add theserviceMonitor
andprometheusRule
sections, for monitoring purposes. It is disabled by default in the providedhelmChart
, but it can be overrided as a native chart values.The YAML built by
Kustomize
outputs theprometheusRule
section as expected but not theserviceMonitor
one. I tried multiple configurations and nothing output any YAML configuration forserviceMonitor
To put aside any issue from
Helm
itself, it works perfectly with a vanillaHelm
(output YAML for bothserviceMonitor
andprometheusRule
) but not when usingKustomize
ontop ofHelm
.Files that can reproduce the issue
kustomization.yaml
or
kustomization.yaml
generators.yaml
value.yaml
Expected output
Actual output
The output doesn't have any
serviceMonitor
YAML section as expected but still contains the rest of the YAML manifests (Service
,Deployment
,ClusterRole
...)Kustomize version
{Version:kustomize/v4.4.0 GitCommit:63ec6bdb3d737a7c66901828c5743656c49b60e1 BuildDate:2021-09-27T16:24:12Z GoOs:linux GoArch:amd64}
Platform
Linux
Additional context
It doesn't work for both
Kustomize
configurations provided and it works when using onlyHelm
. Sadly, there is no error and.Any help will be greatly appreciated. Thanks!
The text was updated successfully, but these errors were encountered: