You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As identified in PR #1644, the Traefik HelmChart manifest has formatting issues with the valuesContent field. While the YAML is valid, the formatting is broken, making it difficult to read and modify.
The valuesContent field in the Traefik HelmChart manifest is not properly formatted, with line breaks and indentation appearing incorrectly when viewed with kubectl get helmcharts.helm.cattle.io -n kube-system traefik -oyaml.
Example of current output:
valuesContent: "image:\n tag: \ndeployment:\n replicas: 3\nglobalArguments: []\nservice:\n\ enabled: true\n type: LoadBalancer\n annotations:\n\"load-balancer.hetzner.cloud/name\":\"staging-traefik\"\n\"load-balancer.hetzner.cloud/use-private-ip\": \"true\"\n\ \"load-balancer.hetzner.cloud/disable-private-ingress\": \"true\"\n\"load-balancer.hetzner.cloud/disable-public-network\":\"false\"\n\"load-balancer.hetzner.cloud/ipv6-disabled\": \"false\"\n\"load-balancer.hetzner.cloud/location\":\"fsn1\"\n\"load-balancer.hetzner.cloud/type\": \"lb11\"\n\"load-balancer.hetzner.cloud/uses-proxyprotocol\":\"true\"\n\"load-balancer.hetzner.cloud/algorithm-type\": \"round_robin\"\n\ \"load-balancer.hetzner.cloud/health-check-interval\": \"15s\"\n\"load-balancer.hetzner.cloud/health-check-timeout\":\"10s\"\n\"load-balancer.hetzner.cloud/health-check-retries\": \"3\"\n\"load-balancer.hetzner.cloud/hostname\":\"lb.staging.example.com\"\nports:\n web:\n redirections:\n entryPoint:\n\ to: websecure\n scheme: https\n permanent: true\n proxyProtocol:\n\ trustedIPs:\n - 127.0.0.1/32\n - 10.0.0.0/8\n forwardedHeaders:\n\ trustedIPs:\n - 127.0.0.1/32\n - 10.0.0.0/8\n websecure:\n\ proxyProtocol:\n trustedIPs:\n - 127.0.0.1/32\n - 10.0.0.0/8\n\ forwardedHeaders:\n trustedIPs:\n - 127.0.0.1/32\n - 10.0.0.0/8\n\ cnpg:\n port: 54333\n expose:\n default: true\n exposedPort: 54333\n\ protocol: TCP\n proxyProtocol:\n trustedIPs:\n - 127.0.0.1/32\n\ - 10.0.0.0/8\n forwardedHeaders:\n trustedIPs:\n - 127.0.0.1/32\n\ - 10.0.0.0/8\npodDisruptionBudget:\n enabled: true\n maxUnavailable: 33%\nadditionalArguments:\n - \"--providers.kubernetesingress.ingressendpoint.publishedservice=traefik/traefik\"\nresources:\n\ requests:\n cpu: \"100m\"\n memory: \"50Mi\"\n limits:\n cpu: \"300m\"\n\ memory: \"150Mi\"\nautoscaling:\n enabled: true\n minReplicas: 3\n maxReplicas: 10"version: 34.3.0```## Expected BehaviorThe `valuesContent` field should be properly formatted with consistent indentation and line breaks, making it easier to read and modify.## ImpactThis formatting issue makes it difficult to enable additional features like metrics for Traefik, as the configuration is hard to read and modify.## Possible SolutionReview and fix the template generation for Traefik values to ensure proper YAML formatting is preserved when the HelmChart resource is created.
The text was updated successfully, but these errors were encountered:
gthieleb
changed the title
Fix Traefik HelmChart valuesContent formatting
[Bug]: Traefik HelmChart valuesContent formatting
Mar 28, 2025
Issue Description
As identified in PR #1644, the Traefik HelmChart manifest has formatting issues with the
valuesContent
field. While the YAML is valid, the formatting is broken, making it difficult to read and modify.Tofu Version
Kube.tf file
Current Behavior
The
valuesContent
field in the Traefik HelmChart manifest is not properly formatted, with line breaks and indentation appearing incorrectly when viewed withkubectl get helmcharts.helm.cattle.io -n kube-system traefik -oyaml
.Example of current output:
The text was updated successfully, but these errors were encountered: