Alloy Templating Error when alloy-metrics disabled
Received the following error when alloy-metrics.enabled
is set to false
.
CustomResourceDefinition podlogs.monitoring.grafana.com is already present. Skipping.
Warning InstallFailed 65s helm-controller Helm install failed for release monitoring/monitoring-alloy with chart k8s-monitoring@2.0.16-bb.0: template: k8s-monitoring/charts/k8s-monitoring/templates/NOTES.txt:22:59: executing "k8s-monitoring/charts
/k8s-monitoring/templates/NOTES.txt" at <include "alloy.fullname" (index $.Subcharts $collectorName)>: error calling include: template: k8s-monitoring/charts/k8s-monitoring/charts/alloy-logs/templates/_helpers.tpl:18:16: executing "alloy.fullname" at <$
name>: invalid value; expected string
If a customer wants to use alloy for logging/and or traces without metrics; they should be able to disable alloy-metrics.
This appears to be an issue with upstream, but I did not find any related open issues.
-
Investigate cause of the templating error -
Create a solution, possibly a post-render based solution. - Alternatively if a solution is unclear, create an upstream issue
Edited by Brian Jackson