Skip to content

fix(chart): a chart release rolls only the pods whose spec changed (#1363) - #1367

Merged
bpalermo merged 1 commit into
mainfrom
upgrade/chart-pod-template-labels
Oct 8, 2026
Merged

bpalermo merged 1 commit into
mainfrom
upgrade/chart-pod-template-labels

Conversation

@bpalermo

@bpalermo bpalermo commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

Closes #1363

Bottom of a stack of two (both bump charts/aether/Chart.yaml); #1368 (for #1364) is on top.

Read this first: this is half of what #1363 asks for

The chart no longer puts the release into any pod template. A deploy of a new commit still rolls every workload, for a reason the issue did not know about: every image this repository builds gets a new digest with every commit, whether or not its content changed, and the digest is part of the pod spec.

  • Measured on talos-main (helm get manifest --revision N, image lines only): all seven in-repo digests (agent, cni-install, proxy-supervisor, mesh-dns, uds-csi, registrar, controller) changed in each of the four deploys from revision 276 to 279. Revisions 276 and 277 are six commits apart that touch the registrar, tests and scripts; cni-install, uds-csi, mesh-dns and proxy-supervisor still got new digests.
  • Measured locally: two builds of this stack with no Go change between them, at two different HEADs, produced seven different digests.
  • Read in the code, not bisected: bazel/img/go_multi_arch_image.bzl stamps org.opencontainers.image.revision: <commit> into every image with stamp = "force" (Cannot determine which Envoy a running proxy contains: version gauge mismatches the pin and images carry no provenance labels #837), and the binaries carry Version = {STABLE_GIT_VERSION}.

Every workload runs at least one of those images (the proxy DaemonSet through its install-supervisor init container). So after this change the label is no longer a reason to roll, but the images still are. Making an unchanged image keep its digest is a build decision (it touches #837 and the stamped version), not a chart change; I did not attempt it. Reported separately below.

What this PR does deliver, measured on kind: an upgrade that changes the chart version and appVersion but not the images rolls nothing (before: everything).

What was on the pod templates

Rendered at two chart versions and two appVersions, the seven pod templates differed in exactly two lines each, and in nothing else (no env var, argument or annotation carries the version):

On every pod template Varies with Removed?
helm.sh/chart: aether-<version> every chart version; every commit on the commit-tagged chart yes
app.kubernetes.io/version: <appVersion> every commit on a stamped build (git describe) yes

Neither had a consumer (search below). Both stay on the DaemonSet / Deployment objects and on every other object. There were no config checksum annotations in the chart before this change.

The helpers are now three per component: selectorLabels (unchanged), podLabels (selector labels + part-of + managed-by), labels (pod labels + chart + version, for object metadata).

One thing the labels did by accident, kept on purpose

Rolling every pod on every release also restarted the two containers that read a chart-rendered ConfigMap only at start. Without a replacement, a changed config would silently not apply. They now roll through a checksum of the data they read:

Pod Annotation Why
edge checksum/edge-config (sha256 of the ConfigMap's data, not of the object, whose labels carry the chart version) plain envoy -c, nothing watches the file
proxy, only when the OPA preset is on checksum/opa-policy (sha256 of the policy text) opa run without --watch: an authorization policy that stayed the old one

The node proxy's own bootstrap gets no checksum, on purpose: the supervisor watches the file (--watch-config=true) and hot-restarts in place. The default render gains no annotation. Both checksums are tested to follow their input: aether_edge_config_checksum_changes_test renders the edge with and without edge.admin.enabled=true and requires the annotation to differ (new rule helm_template_value_changes_test, added in review; a constant hash fails it), and two policies give two pinned checksum/opa-policy values.

Side effect worth knowing: a policy or edge-bootstrap change at an unchanged chart version was never applied before (no label change, no roll). It is now.

Who reads these labels: searched, found nothing

Patterns: helm.sh/chart, helm_sh_chart, app.kubernetes.io/version, app_kubernetes_io_version, pod-label relabelling (__meta_kubernetes_pod_label, labelmap, kube_pod_labels, k8s.pod.labels), -l/--selector on chart or version.

Where Result
this repository outside the _helpers.tpl files (charts, e2e/, e2e/soak/, prober/, docs/observability/, scripts/, .github/, Go) one hit: the label paragraph in charts/README.md (updated here)
GitOps checkout k8s-talos-main (read-only; fetched 2026-10-07) only Flux's own gotk-components.yaml. kube-state-metrics has metricLabelsAllowlist: []; the log collector extracts app.kubernetes.io/name and app from pods, nothing else
~/aether-tools (deploy and soak helpers) none

Not searched: live Grafana dashboards and Prometheus series (only the files above).

Selectors are unchanged

A changed selector is an immutable-field error on upgrade. Full render of main against this branch, default values and with the edge and the authz sidecar on:

  • every selector: block (7 workloads, 3 Services) is byte-identical (default: 8 blocks; all on: 10);
  • the whole diff, certificate lines aside, is: the two labels removed from each pod template (6 / 7 times), helm.sh/chart: aether-2.4.14 -> 2.4.15 on object metadata (31 / 42 times), and the edge checksum annotation with its comment. Nothing else.

aether_selector_labels_test pins each selector to exactly its three labels.

Tests, red first

New rule helm_pod_template_version_test (bazel/helm/defs.bzl): helm template cannot override the version of a chart it is given, so the rule unpacks the packaged chart twice, rewrites version: and appVersion: in one copy, renders both with the Bazel-provided helm and compares every workload's spec.template byte for byte. It also asserts that every workload object still carries helm.sh/chart: <name>-<version>, and fails if the number of workloads it found is not the number declared.

Against the unchanged chart:

FAIL: a pod template changes with the chart version alone, so every release rolls that workload's pods:
<         helm.sh/chart: aether-2.4.14
>         helm.sh/chart: aether-999.0.0-otherversion
<         app.kubernetes.io/version: "STABLE-GIT-VERSION"
>         app.kubernetes.io/version: "other-app-version"
(workloads affected: agent, proxy, mesh-dns, uds-csi, controller, edge, registrar)
//charts/aether:aether_commit_pod_template_version_test          FAILED
//charts/aether:aether_pod_template_version_all_enabled_test     FAILED
//charts/aether:aether_pod_template_version_test                 FAILED
//charts/aether:aether_edge_config_checksum_test                 FAILED
//charts/aether:aether_opa_policy_checksum_test                  FAILED
//charts/aether:aether_opa_policy_checksum_changes_test          FAILED

After: all pass (PASS: the 7 pod templates are byte-identical at chart versions 2.4.14 and 999.0.0-otherversion). Guards that were green before and after: aether_selector_labels_test, aether_opa_policy_checksum_off_test. Mutation check: rendering the agent DaemonSet's own metadata with podLabels fails the test (carries helm.sh/chart '-' on its own metadata).

Measured on kind

Throwaway cluster (kind v0.33.0, the pinned node image, Helm 3.18.4, its own kubeconfig; deleted afterwards). Pods never started there (locally built digests are not in the registry), so this measures what the apiserver's controllers decide, not a running mesh.

Upgrade DaemonSet / Deployment generation New ControllerRevisions / ReplicaSets
this stack's chart -> the same chart with only version + appVersion changed 3 -> 3 none (12 / 6 before and after)
main's chart -> the same chart with only version + appVersion changed 4 -> 5 one per workload (12 -> 16, 6 -> 8)
2.4.14 -> 2.4.15 1 -> 2 one per workload: the last full roll

What an operator sees

  • The upgrade that crosses 2.4.15 rolls everything, as every upgrade does today: removing the labels is a pod-template change. Same for a rollback below 2.4.15.
  • Afterwards, per the first section: a new commit still rolls everything through the image digests; a re-cut chart or a values-only change rolls only what it changed.
  • On talos-main the deployed chart is X.Y.Z-<sha> and the appVersion is the commit, so today both labels change on every deploy.
  • Pods no longer show their release in their labels. Read the owner: kubectl get ds,deploy -A -l app.kubernetes.io/part-of=aether -L helm.sh/chart,app.kubernetes.io/version.
  • To see what an upgrade rolled: kubectl -n aether-system get pods -l app.kubernetes.io/part-of=aether -L controller-revision-hash,pod-template-hash --sort-by=.metadata.creationTimestamp before and after (runbook, "Which workloads a chart upgrade rolls").

Verified

bazel test //charts/... //bazel/helm/..., the Go tests that read the chart templates (//agent/internal/cmd, //agent/internal/proxy/hotrestart, //agent/internal/supervisorcmd, //agent/cmd/uds-csi/...), bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //..., make format-check.

Not verified

  • Nothing was deployed to talos-main; the roll behaviour there is inferred from the kind measurement and the release history.
  • That the proxy supervisor's in-place hot restart on a bootstrap change behaves well fleet-wide: read in the code (watchConfig), not exercised.
  • Helm 4 against a cluster (the chart tests render with Helm 4.2.0; the kind upgrades used Helm 3.18.4).

Noticed, not changed

  • Per-commit image digests (above): needs its own issue.
  • charts/prober has the same two labels on its DaemonSet's pod template (prober.labels).
  • rules_helm's template_patterns matches only the last document of a multi-document template file.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Copilot AI balanced review requested due to automatic review settings October 7, 2026 22:40
@bpalermo
bpalermo added this pull request to stack #1369 October 7, 2026 22:40
@bpalermo bpalermo changed the title upgrade/chart pod template labels fix(chart): a chart release rolls only the pods whose spec changed (#1363) Oct 7, 2026

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 new test rule cannot extract the nested pod template from CronJobs, and its edge-checksum coverage is incomplete.

3 open findings
What changed in this PR

Prevents chart/app version changes alone from rolling Aether workloads while preserving necessary configuration-triggered rollouts.

Changes:

  • Separates stable pod labels from versioned object labels.
  • Adds edge and OPA configuration checksums.
  • Adds regression tests and operator documentation.
File Description
docs/​runbook.md Documents rollout behavior and checksums.
docs/​configuration.md Documents OPA policy rollouts.
charts/​README.md Updates pod-label guidance.
charts/​aether/​templates/​uds-csi-daemonset.yaml Uses stable pod labels.
charts/​aether/​templates/​registrar-deployment.yaml Uses stable pod labels.
charts/​aether/​templates/​mesh-dns-daemonset.yaml Uses stable pod labels.
charts/​aether/​templates/​edge-deployment.yaml Adds stable labels and config checksum.
charts/​aether/​templates/​controller-deployment.yaml Uses stable pod labels.
charts/​aether/​templates/​agent-proxy-daemonset.yaml Adds stable labels and OPA checksum.
charts/​aether/​templates/​agent-daemonset.yaml Uses stable pod labels.
charts/​aether/​templates/​_helpers.tpl Splits selector, pod, and object labels.
charts/​aether/​Chart.yaml Bumps chart version to 2.4.15.
charts/​aether/​BUILD.bazel Adds rollout regression tests.
bazel/​helm/​defs.bzl Adds pod-template version-independence rule.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread bazel/helm/defs.bzl Resolved
Comment thread charts/aether/BUILD.bazel Resolved
Comment thread charts/README.md Resolved
@bpalermo
bpalermo force-pushed the upgrade/chart-pod-template-labels branch from 14249b3 to c93b4fb Compare October 7, 2026 22:53
Copilot AI balanced review requested due to automatic review settings October 7, 2026 22:53

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 README contains inaccurate rollout terminology and a namespace-scoped command that misses standard workloads.

2 open findings
3 resolved since last review

🧠 Review effort: Balanced

Comment thread charts/README.md Resolved
Comment thread charts/README.md Resolved
Copilot AI balanced review requested due to automatic review settings October 7, 2026 22:59
@bpalermo
bpalermo force-pushed the upgrade/chart-pod-template-labels branch from c93b4fb to 0b574a0 Compare October 7, 2026 22:59

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 rollout semantics are consistently implemented and covered by targeted regression tests.

0 open findings

2 resolved since last review

🧠 Review effort: Balanced

@bpalermo
bpalermo force-pushed the upgrade/chart-pod-template-labels branch from 0b574a0 to 1b02fe2 Compare October 7, 2026 23:15
Copilot AI balanced review requested due to automatic review settings October 7, 2026 23:15

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 version-independence test can miss a CronJob emitted only by its second render.

1 open finding

🧠 Review effort: Balanced

Comment thread bazel/helm/defs.bzl Resolved
Copilot AI balanced review requested due to automatic review settings October 7, 2026 23:31
@bpalermo
bpalermo force-pushed the upgrade/chart-pod-template-labels branch from 1b02fe2 to 60541ca Compare October 7, 2026 23:31

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 label split preserves selectors and object metadata while comprehensive tests guard version independence and required configuration rollouts.

0 open findings

1 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 force-pushed the upgrade/chart-pod-template-labels branch from 60541ca to 1f683a5 Compare October 7, 2026 23:48
Copilot AI balanced review requested due to automatic review settings October 7, 2026 23:48

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.

🔵 Needs a closer look

Fleet-wide rollout semantics and startup-only configuration behavior warrant final human operational review.

0 open findings

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

…1363)

Every pod template carried `helm.sh/chart: aether-<version>` and
`app.kubernetes.io/version: <appVersion>`, so a chart version bump alone
rolled the agent, the proxy (a hot restart on every node), mesh-dns,
uds-csi, the registrar, the controller and the edge. A deploy from the
commit tag changes both labels with every commit.

Pod templates now render `aether.<c>.podLabels` (selector labels, part-of,
managed-by). The workload objects keep `helm.sh/chart` and
`app.kubernetes.io/version` on their own metadata. Selectors are unchanged.

The version labels also restarted, by accident, the two containers that
read a chart-rendered ConfigMap only at start. They get a checksum of the
data they read instead: `checksum/edge-config` on the edge pod and
`checksum/opa-policy` on the proxy pod when the OPA preset is on. The
proxy's own bootstrap needs none (the supervisor watches the file).

`helm_pod_template_version_test` renders a chart at two versions and
fails when any pod template differs, or when a workload object loses its
`helm.sh/chart` label.

Chart aether 2.4.15. The upgrade that crosses it rolls everything one
last time.

This removes the chart's own share only. Every in-repo image still gets
a new digest with every commit (the revision label, the stamped
version), so a deploy of a new commit still rolls every workload; the
runbook says so.

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 rollout behavior is implemented consistently and protected by focused regression tests.

0 open findings

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

@bpalermo
bpalermo merged commit 70b6c53 into main Oct 8, 2026
31 checks passed
@bpalermo
bpalermo deleted the upgrade/chart-pod-template-labels branch October 8, 2026 00:57
bpalermo added a commit that referenced this pull request Oct 8, 2026
…e; canary objects get their own labels; the canary image is pinned by digest (#1372, #1373, #1374) (#1397)

* 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)

#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

* docs(runbook): the chart-created Namespace keeps component: prober too (#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

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
bpalermo added a commit that referenced this pull request Oct 8, 2026
…licy update no longer rolls the proxy (#1383)

The OPA preset runs `opa run --watch`, unconditionally, and the
`checksum/opa-policy` annotation (#1367) leaves the proxy pod template. A
changed policy is delivered by the kubelet's ConfigMap sync and loaded by
the running sidecar; no pod is replaced and Envoy is not hot-restarted.

No validation is added: checking a policy before applying it is the
responsibility of whoever changes it, and the docs give the commands.

Measured on kind (Kubernetes 1.35.8, OPA 1.21.1):
- a policy changed by `helm upgrade` decides 46-64 s after helm returns,
  with the same pod UID, restart counts, DaemonSet generation and Envoy
  epoch; 8,607 of 8,607 requests through a reload answered, 0 ext_authz
  errors;
- a policy that does not parse or compile is not loaded: the running
  sidecar keeps the last good one, logs the error at level info and
  exports no metric; a sidecar that STARTS with it exits 1;
- `/policy/policy.rego` is the invocation that works; given the `/policy`
  directory OPA loads the ConfigMap volume's three copies and refuses to
  start.

Tests: the #1367 checksum tests are turned around (no annotation with the
preset on; two policies render one byte-identical DaemonSet, through the
new helm_template_value_ignored_test rule), and e2e/authz.sh gains step d.

Chart 2.4.19. The first upgrade with the OPA preset on rolls the proxy
DaemonSet once.

Closes #1383

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo added a commit that referenced this pull request Oct 8, 2026
…licy update no longer rolls the proxy (#1383)

The OPA preset runs `opa run --watch`, unconditionally, and the
`checksum/opa-policy` annotation (#1367) leaves the proxy pod template. A
changed policy is delivered by the kubelet's ConfigMap sync and loaded by
the running sidecar; no pod is replaced and Envoy is not hot-restarted.

No validation is added: checking a policy before applying it is the
responsibility of whoever changes it, and the docs give the commands.

Measured on kind (Kubernetes 1.35.8, OPA 1.21.1):
- a policy changed by `helm upgrade` decides 46-64 s after helm returns,
  with the same pod UID, restart counts, DaemonSet generation and Envoy
  epoch; 8,607 of 8,607 requests through a reload answered, 0 ext_authz
  errors;
- a policy that does not parse or compile is not loaded: the running
  sidecar keeps the last good one, logs the error at level info and
  exports no metric; a sidecar that STARTS with it exits 1;
- `/policy/policy.rego` is the invocation that works; given the `/policy`
  directory OPA loads the ConfigMap volume's three copies and refuses to
  start.

Tests: the #1367 checksum tests are turned around (no annotation with the
preset on; two policies render one byte-identical DaemonSet, through the
new helm_template_value_ignored_test rule), and e2e/authz.sh gains step d.

Chart 2.4.19. The first upgrade with the OPA preset on rolls the proxy
DaemonSet once.

Closes #1383

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo added a commit that referenced this pull request Oct 8, 2026
…licy update no longer rolls the proxy (#1383)

The OPA preset runs `opa run --watch`, unconditionally, and the
`checksum/opa-policy` annotation (#1367) leaves the proxy pod template. A
changed policy is delivered by the kubelet's ConfigMap sync and loaded by
the running sidecar; no pod is replaced and Envoy is not hot-restarted.

No validation is added: checking a policy before applying it is the
responsibility of whoever changes it, and the docs give the commands.

Measured on kind (Kubernetes 1.35.8, OPA 1.21.1):
- a policy changed by `helm upgrade` decides 46-64 s after helm returns,
  with the same pod UID, restart counts, DaemonSet generation and Envoy
  epoch; 8,607 of 8,607 requests through a reload answered, 0 ext_authz
  errors;
- a policy that does not parse or compile is not loaded: the running
  sidecar keeps the last good one, logs the error at level info and
  exports no metric; a sidecar that STARTS with it exits 1;
- `/policy/policy.rego` is the invocation that works; given the `/policy`
  directory OPA loads the ConfigMap volume's three copies and refuses to
  start.

Tests: the #1367 checksum tests are turned around (no annotation with the
preset on; two policies render one byte-identical DaemonSet, through the
new helm_template_value_ignored_test rule), and e2e/authz.sh gains step d.

Chart 2.4.19. The first upgrade with the OPA preset on rolls the proxy
DaemonSet once.

Closes #1383

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo added a commit that referenced this pull request Oct 8, 2026
…licy update no longer rolls the proxy (#1383) (#1436)

* feat(chart): the OPA authz sidecar reloads its policy on change; a policy update no longer rolls the proxy (#1383)

The OPA preset runs `opa run --watch`, unconditionally, and the
`checksum/opa-policy` annotation (#1367) leaves the proxy pod template. A
changed policy is delivered by the kubelet's ConfigMap sync and loaded by
the running sidecar; no pod is replaced and Envoy is not hot-restarted.

No validation is added: checking a policy before applying it is the
responsibility of whoever changes it, and the docs give the commands.

Measured on kind (Kubernetes 1.35.8, OPA 1.21.1):
- a policy changed by `helm upgrade` decides 46-64 s after helm returns,
  with the same pod UID, restart counts, DaemonSet generation and Envoy
  epoch; 8,607 of 8,607 requests through a reload answered, 0 ext_authz
  errors;
- a policy that does not parse or compile is not loaded: the running
  sidecar keeps the last good one, logs the error at level info and
  exports no metric; a sidecar that STARTS with it exits 1;
- `/policy/policy.rego` is the invocation that works; given the `/policy`
  directory OPA loads the ConfigMap volume's three copies and refuses to
  start.

Tests: the #1367 checksum tests are turned around (no annotation with the
preset on; two policies render one byte-identical DaemonSet, through the
new helm_template_value_ignored_test rule), and e2e/authz.sh gains step d.

Chart 2.4.19. The first upgrade with the OPA preset on rolls the proxy
DaemonSet once.

Closes #1383

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

* docs: the policy check reads the OPA image from the release, not a hard-coded tag

Review on #1436.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

* docs: validate with the OPA image the sidecar runs; say what opa eval --fail catches

Review on #1436.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

* docs(chart): the OPA policy rollout is asynchronous per node; validate against a request; read watch events unfiltered (#1383)

- `opa eval --fail` is given a representative ext_authz request with
  `--input`, and the claim is narrowed to what it proves: the decision is
  defined for that one request. Without an input it rejected a correct
  policy that has no default. Checked with OPA 1.21.1 against the e2e
  policy, a policy without a default, and one that does not define the
  decision.
- 27-64 s is an observation on one node, not a bound: each kubelet
  delivers a ConfigMap update on its own schedule. The docs and the chart
  comments describe the rollout as unstaged and asynchronous, and say how
  to confirm convergence per proxy pod.
- The runbook's reload check shows the latest watch events, successes
  included, and says what a null err, a non-null err and no event mean.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

chart: every chart release rolls every pod, because helm.sh/chart: aether-<version> is on each pod template

2 participants