-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
Summary
Update bpfman-operator CRD API types to comply with new Kubernetes API conventions as outlined in kubernetes/community#8486 and OpenShift API linter requirements.
Context
Recent updates to Kubernetes API conventions require:
- All fields must have
omitemptytags - Optional fields in aggregated APIs (those with protobuf tags) must use pointers
- Complete validation rules for all string and list fields
omitzerotags for struct fields where appropriate
Current State
Our APIs are partially compliant but need systematic updates across:
apis/v1alpha1/shared_types.goapis/v1alpha1/*_types.go(all program type files)- Validation rules are incomplete for many fields
Proposed Changes
- Field Tags: Add
omitemptyto all fields - Pointer Usage: Convert optional fields to pointers in aggregated APIs
- Validation: Add MinLength/MaxLength to strings, MinItems/MaxItems to arrays
- Struct Validation: Add MinProperties for structs with all optional fields
References
- Kubernetes API Conventions PR #8486
- OpenShift API linter enforcement
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
π New