loki icon indicating copy to clipboard operation
loki copied to clipboard

Helm chart values YAML should quote date

Open whatnick opened this issue 1 year ago • 2 comments

Describe the bug The documented values in for Helm use an unquoted string as date. Some deployment tooling such as flux can roundtrip this into an ISO formatted string which Loki cannot parse from the config.

Mitigation would be quote the string in the sample YAML values or Loki config parser modified to support ISO time.

To Reproduce Steps to reproduce the behavior:

  1. Deploy Loki using stock values on cluster running flux Gitops using a Helm Release resource.

Expected behavior Chart deploys and Loki pods start

Environment:

  • Infrastructure: EKS
  • Deployment tool: helm + flux

Screenshots, Promtail config, or terminal output

failed parsing config: /etc/loki/config/config.yaml: parsing time "2024-04-01T00:00:00Z": extra text: "T00:00:00Z". Use -config.expand-env=true flag if you want to expand environment variables in your file

whatnick avatar Sep 12 '24 10:09 whatnick