🐛 Fix DNS1123 validation message to match rule semantics#2652
Conversation
The XValidation message for dns1123Label() incorrectly stated that values "must start with an alphabetic character". DNS1123 labels allow starting with a digit, so the message now reads "must start and end with an alphanumeric character" to match the actual rule. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
✅ Deploy Preview for olmv1 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
Updates the user-facing XValidation error message for dns1123Label() validations on ClusterObjectSetPhase.Name and ObservedPhase.Name so it matches DNS1123 label semantics (labels may start with a digit).
Changes:
- Adjusted kubebuilder
XValidationmessage text in the Go API types to say “must start and end with an alphanumeric character.” - Regenerated/updated CRD YAML outputs (manifests and Helm CRD) to carry the corrected message.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
api/v1/clusterobjectset_types.go |
Updates the source-of-truth kubebuilder validation message for phase names. |
manifests/experimental.yaml |
Updates generated CRD manifest validation message to match the API type annotation. |
manifests/experimental-e2e.yaml |
Updates generated e2e CRD manifest validation message to match the API type annotation. |
helm/olmv1/base/operator-controller/crd/experimental/olm.operatorframework.io_clusterobjectsets.yaml |
Updates Helm-packaged CRD with the corrected validation message. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rashmigottipati, tmshort The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2652 +/- ##
==========================================
- Coverage 68.91% 68.89% -0.02%
==========================================
Files 141 141
Lines 10009 10009
==========================================
- Hits 6898 6896 -2
- Misses 2595 2596 +1
- Partials 516 517 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
29debc7
into
operator-framework:main
Summary
XValidationmessage fordns1123Label()onClusterObjectSetPhase.NameandObservedPhase.Nameincorrectly stated values "must start with an alphabetic character"Test plan
🤖 Generated with Claude Code