Skip to content

fix: remove enum constraint on event_type in EventList#73

Merged
fedepini merged 1 commit into
mainfrom
fix/eventlist-event-type
Jul 9, 2026
Merged

fix: remove enum constraint on event_type in EventList#73
fedepini merged 1 commit into
mainfrom
fix/eventlist-event-type

Conversation

@fedepini

@fedepini fedepini commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Closes #67

Summary

  • Removed "enum": ["Normal", "Warning"] from event_type in EventList.schema.json — Kubernetes does not enforce this constraint and non-standard types (e.g. Error) were causing validation errors
  • Updated color fallback in EventList.tsx: Normal → blue, Warning → orange, any other type → grey (previously anything non-Normal defaulted to orange)
  • Added example-eventlist-mixed-types example with all three event types to verify the fix visually
  • Regenerated all TypeScript types and CRDs; applied updated CRD and examples to cluster

Test plan

  • Open the EventList example page and check the new "Mixed event types" panel
  • Verify Normal event renders blue, Warning renders orange, Error renders grey
  • Confirm no schema validation errors when applying an EventList CR with event_type: Error

🤖 Generated with Claude Code

…tandard Kubernetes event types

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@fedepini fedepini self-assigned this Jul 9, 2026
@fedepini fedepini merged commit b74ab21 into main Jul 9, 2026
3 checks passed
@fedepini fedepini deleted the fix/eventlist-event-type branch July 9, 2026 15:47
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.

Remove enum in EventList widget for field event_type

1 participant