Skip to content

fix(networking): correct what disabledPackages does to ouroboros - #683

Open
Aleksei Sviridkin (lexfrei) wants to merge 1 commit into
mainfrom
fix/disabled-packages-ouroboros
Open

fix(networking): correct what disabledPackages does to ouroboros#683
Aleksei Sviridkin (lexfrei) wants to merge 1 commit into
mainfrom
fix/disabled-packages-ouroboros

Conversation

@lexfrei

Copy link
Copy Markdown
Contributor

The disable sequence said an operator reaches the ouroboros cleanup hook either by deleting the Package CR or by putting the name in bundles.disabledPackages. The second one does not work.

bundles.disabledPackages is read in one place, the platform chart's package helper, and all it does there is decide whether the Package document gets emitted. Every emitted Package carries an unconditional helm.sh/resource-policy: keep, so Helm leaves behind a Package it has stopped rendering. The Package stays, so does the HelmRelease it owns, ouroboros keeps running, and the pre-delete hook that strips the rewrite block from kube-system/coredns never fires. Follow the old wording and the disable looks clean while the rewrite is still live.

That annotation landed in v1.1.5 so that disabling a package stops deleting it, several releases before the oldest version this page exists in.

cozystack/cozystack#4098 fixes the same claim in the platform values and the render guard message.

hugo --gc --minify builds clean. hack/check-i18n.sh exits 1, but the four stale-translation errors are on content/{de,hi,ru,zh-cn}/_index.md and are already on main, so i18n-lint will be red for something this PR did not touch.

@netlify

netlify Bot commented Sep 6, 2026

Copy link
Copy Markdown

Deploy Preview for cozystack ready!

Name Link
🔨 Latest commit f7df68a
🔍 Latest deploy log https://app.netlify.com/projects/cozystack/deploys/6a9deebd9fea6600080a40c4
😎 Deploy Preview https://deploy-preview-683--cozystack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: eeac7331-afaf-4093-a1d0-c08823540c5f


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

The host disable sequence offered bundles.disabledPackages as an
alternative to `kubectl delete package.cozystack.io
cozystack.ouroboros` and promised it reached the same place: helm
uninstall, the chart's pre-delete hook, a patched
kube-system/coredns.

Neither half holds. The list is read in exactly one place, the
platform chart's package helper, where it gates whether the Package
document gets emitted at all. Every Package that is emitted carries
an unconditional helm.sh/resource-policy: keep, so Helm leaves
behind a Package it has stopped rendering. The live Package keeps
the HelmRelease it owns, ouroboros keeps running, and the pre-delete
hook never fires. The keep annotation was added in v1.1.5 precisely
so that disabling a package stops deleting it, so the sentence
described behaviour that had been gone for several releases.

Deleting the Package CR remains the only step that reaches the hook,
which the page already told operators to run.

Same line in next, v1.4, v1.5 and v1.6.

Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
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