Skip to content

fix(chart): render string-typed values as strings, check the chart in CI - #24

Merged
den-vasyliev merged 2 commits into
mainfrom
fix/chart-toleration-value-string
Nov 18, 2026
Merged

den-vasyliev merged 2 commits into
mainfrom
fix/chart-toleration-value-string

Conversation

@den-vasyliev

@den-vasyliev den-vasyliev commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

A value that YAML or --set types as a boolean or a number reached the pod template as typed and the API server refused it, for example cannot unmarshal bool into Go struct field Toleration.spec.template.spec.tolerations.value of type string.

  • Toleration values, node selectors, pod annotations and affinity label values of the controller, the OTLP sensor and the eBPF DaemonSet are rendered as strings. An affinity weight and tolerationSeconds stay numbers.
  • A chart-only change ran no CI job. The new chart job lints the chart and validates every rendered object against the Kubernetes schemas (kubeconform), with the defaults and with hack/chart-test/typed-values.yaml. The unfixed chart fails it with the boolean toleration, node selector and annotation errors; the fixed chart passes all 24 objects.

A value that YAML or --set types as a boolean or a number reached the
API server as one and the DaemonSet or Deployment was refused. The
controller, the OTLP sensor and the eBPF DaemonSet now stringify it.
… strings, and check the chart in CI

The same boolean-for-string refusal as a toleration value applied to a
node selector, a pod annotation and an affinity label value. A chart-only
change ran no CI job, so nothing rendered the chart. The chart job lints
it and validates every object against the Kubernetes schemas with typed
values.
@den-vasyliev den-vasyliev changed the title fix(chart): render a toleration value as a string fix(chart): render string-typed values as strings, check the chart in CI Nov 18, 2026
@den-vasyliev
den-vasyliev merged commit d9b0301 into main Nov 18, 2026
8 checks passed
@den-vasyliev
den-vasyliev deleted the fix/chart-toleration-value-string branch November 18, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant