Skip to content

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
bpalermo merged 2 commits into
mainfrom
fix/prober-chart-labels-1372
Oct 8, 2026

Conversation

@bpalermo

@bpalermo bpalermo commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Closes #1372
Closes #1373
Closes #1374

Chart prober 1.0.4 -> 1.0.5. charts/udsecho was checked and is not changed (below). charts/aether and bazel/helm/defs.bzl are not touched; the tests use the rules already on main.

What an upgrade to 1.0.5 does

Workload Rolls? Why
DaemonSet prober yes, one last time the two labels leave its pod template
Deployment authz-canary (1 replica; only with authzCanary.enabled) yes, once its image string changes from the tag to the digest
Deployment authz-echo (the canary's target) no its pod template is byte-identical

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-canary pod reports imageID docker.io/curlimages/curl@sha256:58adaa4e…6777, the digest this PR pins (read-only kubectl 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.labels put helm.sh/chart: prober-<version> and app.kubernetes.io/version on the DaemonSet's pod template. The chart is deployed as 1.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 HTTPFilter used prober.labels, so they carried app.kubernetes.io/component: prober. They now use prober.authzCanary.labels: the same labels with component: authz-canary. name and instance are unchanged.

It is object metadata only. The canary Deployments select on app: authz-echo / app: authz-canary, and their pod templates carry app and aether.io/managed and nothing else, before and after.

Measured on talos-main before the change (read-only): -l app.kubernetes.io/component=prober in aether-test returns 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

Where Result
the chart no Service, no NetworkPolicy, no PodDisruptionBudget; the only selectors are the three workloads' own and authz-echo's topology spread (app: authz-echo)
this repository (e2e/, e2e/soak/, docs/observability/, docs/runbook.md, scripts/, .github/, Go) no selector on component=prober, name=prober or instance=prober. e2e/authz.sh deploys its own authz-echo by hand and selects app=
GitOps checkout k8s-talos-main (read-only, fetched 2026-10-07) none. The canary's two alerts read envoy_http_capture_http_ext_authz_*; kube-state-metrics has metricLabelsAllowlist: []; the log collector reads the pod labels app.kubernetes.io/name and app, which do not change on any pod here
~/aether-tools none

Not searched: live Grafana dashboards and ad-hoc queries.

#1374: the canary image is pinned by digest

authzCanary.image is now curlimages/curl@sha256:58adaa4e8dca9c988bae2aba4ab3434a0bb2da16bbe3f92dec39ec7785166777, with the tag (8.22.0) in the comment above it.

  • The digest is the multi-arch index of curlimages/curl:8.22.0, read anonymously from registry-1.docker.io: the docker-content-digest header and the sha256 of the manifest-list body agree, and the list holds linux/amd64 and linux/arm64 (plus 386, arm/v7, ppc64le).
  • Nothing keeps this pin fresh. The repository has no Renovate configuration, and .github/dependabot.yml covers 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 curl container, on purpose, which closes the second half of the issue without a change: the canary's silence already shows up as a missing metric (the ext_authz counters stop increasing, and the platform alerts on no allowed request).

charts/udsecho: checked, does not have #1372

Its templates use no label helper: the render contains no helm.sh/chart and no app.kubernetes.io/* label at all. Measured: the whole render of the packaged chart is byte-identical with version and appVersion rewritten (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 from main and 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).

## DaemonSet
  selector:
    matchLabels:
      app.kubernetes.io/name: prober
      app.kubernetes.io/instance: release
      app.kubernetes.io/component: prober
## Deployment authz-echo
  selector:
    matchLabels: {app: authz-echo}
## Deployment authz-canary
  selector:
    matchLabels: {app: authz-canary}

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) and app.kubernetes.io/component: prober -> authz-canary on the five canary objects. With default values (canary off) the render differs from main only 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:

FAIL: a pod template changes with the chart version alone, so every release rolls that workload's pods:
<         helm.sh/chart: prober-1.0.4-GIT-COMMIT
>         helm.sh/chart: prober-999.0.0-otherversion
<         app.kubernetes.io/version: "STABLE-GIT-VERSION"
>         app.kubernetes.io/version: "other-app-version"
(workloads affected:
  DaemonSet/release-prober
)
//charts/prober:prober_pod_template_version_test                 FAILED
//charts/prober:prober_pod_template_version_authz_canary_test    FAILED
//charts/prober:prober_pod_labels_test                           FAILED
//charts/prober:prober_authz_canary_labels_test                  FAILED
//charts/prober:prober_authz_canary_image_digest_test            FAILED
//charts/prober:prober_selector_labels_test                      PASSED   (guard)
//charts/prober:prober_authz_canary_selectors_test               PASSED   (guard)
//charts/prober:prober_authz_canary_off_test                     PASSED   (guard)
//charts/prober:prober_authz_canary_image_override_test          PASSED   (guard)

After: all 25 prober chart tests pass.

Test Asserts
prober_pod_template_version_test, …_authz_canary_test helm_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 carries helm.sh/chart: prober-<version>
prober_pod_labels_test the prober pod template's labels are exactly the selector labels, part-of, managed-by, aether.io/managed
prober_selector_labels_test the DaemonSet selector is exactly its three labels; the prober's own objects keep component: prober
prober_authz_canary_selectors_test both canary Deployments select on app alone and their pods carry app + aether.io/managed only
prober_authz_canary_labels_test each of the five canary objects, by kind and name, carries component: authz-canary
prober_authz_canary_off_test canary off (the default): none of its objects render
prober_authz_canary_image_digest_test, …_image_override_test the default image is curlimages/curl@sha256:<64 hex>; an image the operator sets renders as given

What an operator does

Nothing is required. To see what the upgrade rolled, run this before and after (runbook, "The prober chart"):

NS=aether-test
kubectl -n "$NS" get pods -l 'app in (authz-canary,authz-echo)' -L pod-template-hash --sort-by=.metadata.creationTimestamp
kubectl -n "$NS" get pods -l app.kubernetes.io/component=prober -L controller-revision-hash
kubectl -n "$NS" get ds,deploy -l app.kubernetes.io/instance=prober -L helm.sh/chart,app.kubernetes.io/component

Expected after 1.0.5: new prober pods and a new authz-canary pod, the two authz-echo pods unchanged in name and age; component=prober no longer lists the canary's objects (component=authz-canary does). Anything that listed the canary through component=prober has 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

  • No upgrade was run on any cluster (no kind run either). Which workloads roll is inferred from the pod-template diff above: a workload whose spec.template is byte-identical is not rolled.
  • That every node can pull curlimages/curl by this digest: the registry served the index anonymously and talos-main already runs this digest, but no pull by digest was made.
  • Live Grafana dashboards were not searched for component="prober".

Noticed, not changed

  • charts/udsecho client.image is curlimages/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; several e2e/ scripts and manifests use the same tag.
  • charts/udsecho puts no labels at all on its objects (no helm.sh/chart, no app.kubernetes.io/*), so -l app.kubernetes.io/part-of=aether does not find them, and helm_pod_template_version_test cannot be used on it as a guard (it requires the chart label on each workload object).
  • No tool refreshes third-party image digests in chart values (authzCanary.image, authzCanary.echo.image).

An agent wrote this pull request.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

…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
Copilot AI balanced review requested due to automatic review settings October 8, 2026 10:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.

Comment thread charts/prober/values.yaml Resolved
Comment thread docs/runbook.md Resolved
#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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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.

@bpalermo
bpalermo merged commit 683579a into main Oct 8, 2026
31 checks passed
@bpalermo
bpalermo deleted the fix/prober-chart-labels-1372 branch October 8, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants