Repository navigation
fix(storage/minio): empty share.policies/users render as [], not null (v0.1.2) - #577
Merged
Merged
Conversation
… (v0.1.2)
A MinioBucket without access entries, or with only 'user: false' ones,
rendered status.share.users (and, without access, .policies) as a bare key,
i.e. null. The API server rejected the XR's status update
('share.users ... must be of type array: "null"'), so the XR stayed at
Ready=False forever although bucket and policy were Available. Found with
tofu-state on machinery-labul (crossplane-configurations#482), the first
policy-only bucket in the fleet; every LabDA bucket has a user, which is why
nothing showed it.
Both lists are now built first and emitted with toJson. New observed
fixtures xr-min--applied (empty lists) and xr-max--applied (3 policies,
2 users, the user: false entry left out) cover status.share, which no golden
rendered before (CLAUDE.md gotcha 6). crossplane resource validate: the
rendered XRs pass; the old null shape fails with the cluster's message.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
patrick-hermann-sva
had a problem deploying
to
linting
November 25, 2026 14:58 — with
GitHub Actions
Failure
Contributor
📦 ttl.sh preview packagesPreview OCI packages for the Configurations changed in this PR, pushed to the public, ephemeral ttl.sh registry. No auth required — install on any Crossplane v2 cluster: 📦
|
This branch had an error being deployed
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.
Bug
A
MinioBucketwithout access entries, or with onlyuser: falseones, renderedstatus.share.users(and without access also.policies) as a bare key →null. The XR's status update is then rejected:and the XR sits at
Ready=False(Unready resources: bucket, policy-writer) forever, although bucket and policy areAvailable. Found withtofu-stateon machinery-labul (#482, stuttgart-things#4951) — the first policy-only bucket in the fleet; every LabDA bucket has a user, which is why nothing showed it. Functionally harmless (bucket and policy exist), but the XR never goes green.Fix
Both lists are built first and emitted with
toJson, so empty is[].Tests
The
status.sharebranch only renders once the bucket is observed Ready, and no golden covered it (CLAUDE.md gotcha 6). New observed fixtures:xr-min--applied:policies: [],users: []— reproducednullbefore the fixxr-max--applied: 3 policies, 2 users, theuser: falseentry correctly left outcrossplane resource validateagainst the XRD: both rendered XRs pass; the old shape (users: null) fails with exactly the cluster's message. Existing goldens unchanged. Lint 0 errors.Rollout
v0.1.2. The machinery clusters run v0.1.0 from the catalog — needs a catalog pin bump to reach them.
🤖 Generated with Claude Code