Repository navigation
fix(chart): the prober chart no longer rolls its pods on every release; canary objects get their own labels; the canary image is pinned by digest (#1372, #1373, #1374) - #1397
Merged
Conversation
…e; canary objects get their own labels; the canary image is pinned by digest (#1372, #1373, #1374) #1372: the prober DaemonSet's pod template carried helm.sh/chart and app.kubernetes.io/version (prober.labels), and the chart version carries the commit, so every release rolled every prober pod. The helpers are now selectorLabels / podLabels / labels, as in charts/aether (#1367): the pod template uses podLabels, the objects keep labels. The selector is unchanged. #1373: the authz-canary objects (two ServiceAccounts, two Deployments, the HTTPFilter) used prober.labels and so carried component: prober. They now use prober.authzCanary.labels (component: authz-canary). Object metadata only: the canary Deployments' selectors and pod labels are untouched. #1374: authzCanary.image is curlimages/curl@sha256:58adaa4e... (the multi-arch index of 8.22.0) instead of the tag. No liveness probe is added: a canary that stops already shows as the ext_authz counters no longer increasing. charts/udsecho was checked for #1372 and does not have it: it renders no helm.sh/chart or app.kubernetes.io label at all, and its render is byte-identical at two chart versions. Not changed. Chart prober 1.0.4 -> 1.0.5. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
There was a problem hiding this comment.
🟡 Changes recommended
The promised automated digest-refresh path remains unimplemented, and the runbook omits the labeled Namespace.
2 open findings
What changed in this PR
Updates prober chart 1.0.5 to avoid release-only pod rolls, distinguish canary resources, and pin the canary image.
Changes:
- Separates object, pod, selector, and canary labels.
- Pins the authz canary image by digest.
- Adds chart tests and operator documentation.
| File | Description |
|---|---|
charts/prober/Chart.yaml |
Bumps chart to 1.0.5. |
charts/prober/values.yaml |
Pins the canary image digest. |
charts/prober/templates/_helpers.tpl |
Defines separate label sets. |
charts/prober/templates/daemonset.yaml |
Removes release labels from pods. |
charts/prober/templates/authz-canary.yaml |
Applies canary-specific object labels. |
charts/prober/BUILD.bazel |
Adds rendering regression tests. |
charts/README.md |
Documents chart label behavior. |
docs/configuration.md |
Documents image and label defaults. |
docs/runbook.md |
Adds upgrade guidance. |
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
#1373) Review: the list of what -l app.kubernetes.io/component=prober returns left out the Namespace the chart renders with namespace.create. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
This was referenced Oct 8, 2026
Closed
There was a problem hiding this comment.
🟢 Approval recommended
The scoped label changes, immutable selectors, digest pin, chart bump, tests, and documentation are consistent and complete.
0 open findings
2 resolved since last review
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Closes #1372
Closes #1373
Closes #1374
Chart
prober1.0.4 -> 1.0.5.charts/udsechowas checked and is not changed (below).charts/aetherandbazel/helm/defs.bzlare not touched; the tests use the rules already onmain.What an upgrade to 1.0.5 does
proberauthz-canary(1 replica; only withauthzCanary.enabled)authz-echo(the canary's target)No selector changes. A rollback below 1.0.5 rolls the same two workloads again. After 1.0.5, a prober release still rolls the DaemonSet when it carries a new prober image digest, which today is every commit (see #1367); what this removes is the chart's own share.
On talos-main the canary roll changes no image content: the running
authz-canarypod reportsimageID docker.io/curlimages/curl@sha256:58adaa4e…6777, the digest this PR pins (read-onlykubectl get, 2026-10-08).This is read from the rendered pod templates, not measured on a cluster (see "Not verified").
#1372: the release no longer sits on the prober's pod template
prober.labelsputhelm.sh/chart: prober-<version>andapp.kubernetes.io/versionon the DaemonSet's pod template. The chart is deployed as1.0.4-<full sha>with the commit as appVersion, so both changed with every release and every release replaced all prober pods.Same approach as #1367: three helpers,
prober.selectorLabels(unchanged),prober.podLabels(selector labels +part-of+managed-by, used by the pod template),prober.labels(pod labels + chart + version, used by object metadata). The DaemonSet, ServiceAccount and Namespace objects keep both labels.No checksum annotation was needed: the chart renders no ConfigMap or Secret, and no container reads chart-rendered configuration from a file (the prober takes flags, the canary's script is its
args). Nothing was relying on the label to be restarted.#1373: the canary objects have their own component
The two ServiceAccounts, two Deployments and the
HTTPFilterusedprober.labels, so they carriedapp.kubernetes.io/component: prober. They now useprober.authzCanary.labels: the same labels withcomponent: authz-canary.nameandinstanceare unchanged.It is object metadata only. The canary Deployments select on
app: authz-echo/app: authz-canary, and their pod templates carryappandaether.io/managedand nothing else, before and after.Measured on talos-main before the change (read-only):
-l app.kubernetes.io/component=proberinaether-testreturns the prober DaemonSet and ServiceAccount and both canary Deployments, both canary ServiceAccounts and the HTTPFilter. It returns 5 pods, all prober pods, as the issue says.Who selects the canary objects by the prober's labels: nobody found
authz-echo's topology spread (app: authz-echo)e2e/,e2e/soak/,docs/observability/,docs/runbook.md,scripts/,.github/, Go)component=prober,name=proberorinstance=prober.e2e/authz.shdeploys its ownauthz-echoby hand and selectsapp=k8s-talos-main(read-only, fetched 2026-10-07)envoy_http_capture_http_ext_authz_*; kube-state-metrics hasmetricLabelsAllowlist: []; the log collector reads the pod labelsapp.kubernetes.io/nameandapp, which do not change on any pod here~/aether-toolsNot searched: live Grafana dashboards and ad-hoc queries.
#1374: the canary image is pinned by digest
authzCanary.imageis nowcurlimages/curl@sha256:58adaa4e8dca9c988bae2aba4ab3434a0bb2da16bbe3f92dec39ec7785166777, with the tag (8.22.0) in the comment above it.curlimages/curl:8.22.0, read anonymously fromregistry-1.docker.io: thedocker-content-digestheader and the sha256 of the manifest-list body agree, and the list holdslinux/amd64andlinux/arm64(plus 386, arm/v7, ppc64le)..github/dependabot.ymlcovers only the website's pip lock with pull requests switched off. The other third-party digest in this chart (authzCanary.echo.image) is in the same position. The values comment and the runbook say how to move the pin by hand.No liveness probe is added to the
curlcontainer, on purpose, which closes the second half of the issue without a change: the canary's silence already shows up as a missing metric (theext_authzcounters stop increasing, and the platform alerts on no allowed request).charts/udsecho: checked, does not have #1372Its templates use no label helper: the render contains no
helm.sh/chartand noapp.kubernetes.io/*label at all. Measured: the whole render of the packaged chart is byte-identical withversionandappVersionrewritten (3 Deployments). So a udsecho release does not roll its pods through the chart. Not changed, no chart bump.Before and after
helm template(Helm 4.2.0, the Bazel toolchain's) of the packaged chart frommainand from this branch.Selectors are byte-identical: default values, 1 block (the DaemonSet's); with the canary on, 4 blocks (the DaemonSet's, the two Deployments', the topology spread's).
Pod templates, the whole diff over the three workloads with the canary on:
### DaemonSet prober labels: - helm.sh/chart: prober-1.0.4-GIT-COMMIT app.kubernetes.io/name: prober app.kubernetes.io/instance: release app.kubernetes.io/component: prober app.kubernetes.io/part-of: aether app.kubernetes.io/managed-by: Helm - app.kubernetes.io/version: "STABLE-GIT-VERSION" aether.io/managed: "true" ### Deployment authz-canary - image: "curlimages/curl:8.22.0" + image: "curlimages/curl@sha256:58adaa4e8dca9c988bae2aba4ab3434a0bb2da16bbe3f92dec39ec7785166777"Everything else in the full render diff is object metadata:
helm.sh/chart: prober-1.0.4-…->1.0.5-…(2 objects by default, 7 with the canary on) andapp.kubernetes.io/component: prober->authz-canaryon the five canary objects. With default values (canary off) the render differs frommainonly by the two removed pod labels and the chart version.Tests, red first
Against the unchanged chart, 5 new tests failed and the 4 new guards passed:
After: all 25 prober chart tests pass.
prober_pod_template_version_test,…_authz_canary_testhelm_pod_template_version_test: every pod template (1, and 3 with the canary) is byte-identical at two chart versions and appVersions, and every workload object still carrieshelm.sh/chart: prober-<version>prober_pod_labels_testpart-of,managed-by,aether.io/managedprober_selector_labels_testcomponent: proberprober_authz_canary_selectors_testappalone and their pods carryapp+aether.io/managedonlyprober_authz_canary_labels_testcomponent: authz-canaryprober_authz_canary_off_testprober_authz_canary_image_digest_test,…_image_override_testcurlimages/curl@sha256:<64 hex>; an image the operator sets renders as givenWhat an operator does
Nothing is required. To see what the upgrade rolled, run this before and after (runbook, "The prober chart"):
Expected after 1.0.5: new prober pods and a new
authz-canarypod, the twoauthz-echopods unchanged in name and age;component=proberno longer lists the canary's objects (component=authz-canarydoes). Anything that listed the canary throughcomponent=proberhas to switch; I found nothing that does.Verified
bazel test //charts/... //bazel/helm/...(151 pass),bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //...,make format-check.Not verified
spec.templateis byte-identical is not rolled.curlimages/curlby this digest: the registry served the index anonymously and talos-main already runs this digest, but no pull by digest was made.component="prober".Noticed, not changed
charts/udsechoclient.imageiscurlimages/curl:8.22.0, a tag, as chart(prober): the authz-canary curl image is pinned by tag, and its container has no liveness signal #1374 describes for the prober; severale2e/scripts and manifests use the same tag.charts/udsechoputs no labels at all on its objects (nohelm.sh/chart, noapp.kubernetes.io/*), so-l app.kubernetes.io/part-of=aetherdoes not find them, andhelm_pod_template_version_testcannot be used on it as a guard (it requires the chart label on each workload object).authzCanary.image,authzCanary.echo.image).An agent wrote this pull request.
🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr