Skip to content

fix(api): guard Queue description CEL with has() - #23

Merged
konih merged 1 commit into
mainfrom
feat/fix-cel-description-e2e
Jun 14, 2026
Merged

konih merged 1 commit into
mainfrom
feat/fix-cel-description-e2e

Conversation

@konih

@konih konih commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Fixes CEL mutual-exclusion rule on Queue.spec introduced in PR feat(api): add typed description field to Queue spec #22: self.description.size() was evaluated when description is omitted, causing admission failure (no such key: description) for Queues that only set attributes.descr (e2e e2e-orders-n1, chart samples).
  • Aligns with the existing maxDepth rule pattern: !has(self.description) || self.description.size() == 0 || ….
  • Extends webhook envtest allow-case to cover attributes.descr without typed description.

Root cause

PR #22 added XValidation rule self.description.size() == 0 || … but optional string fields are absent from the CEL object when omitted; direct access errors before short-circuit.

Test plan

  • task verify
  • task lint
  • task test:run (91.3% internal coverage)
  • task test:schema
  • CI E2E (kustomize + helm)

PR #22 mutual-exclusion rule accessed self.description without has(),
breaking admission when only attributes.descr is set (e2e-orders-n1).
@konih
konih merged commit 27acadd into main Jun 14, 2026
14 checks passed
@konih
konih deleted the feat/fix-cel-description-e2e branch June 14, 2026 01:07
konih added a commit that referenced this pull request Jun 14, 2026
Phase 8a typed Queue/Topic/Channel fields and CEL has() fix (#23)
since v0.9.0.
konih added a commit that referenced this pull request Jul 10, 2026
PR #22 mutual-exclusion rule accessed self.description without has(),
breaking admission when only attributes.descr is set (e2e-orders-n1).
konih added a commit that referenced this pull request Jul 10, 2026
Phase 8a typed Queue/Topic/Channel fields and CEL has() fix (#23)
since v0.9.0.
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