Skip to content

🐛 Fix DNS1123 validation message to match rule semantics#2652

Merged
openshift-merge-bot[bot] merged 1 commit intooperator-framework:mainfrom
pedjak:fix-dns1123-validation-message
Apr 15, 2026
Merged

🐛 Fix DNS1123 validation message to match rule semantics#2652
openshift-merge-bot[bot] merged 1 commit intooperator-framework:mainfrom
pedjak:fix-dns1123-validation-message

Conversation

@pedjak
Copy link
Copy Markdown
Contributor

@pedjak pedjak commented Apr 15, 2026

Summary

  • The XValidation message for dns1123Label() on ClusterObjectSetPhase.Name and ObservedPhase.Name incorrectly stated 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

Test plan

  • Verify the updated validation message is accurate per RFC 1123
  • Confirm generated CRD manifests reflect the corrected message

🤖 Generated with Claude Code

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>
Copilot AI review requested due to automatic review settings April 15, 2026 14:15
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 15, 2026

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 76ee584
🔍 Latest deploy log https://app.netlify.com/projects/olmv1/deploys/69df9d9a7f8d3200073e522c
😎 Deploy Preview https://deploy-preview-2652--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@pedjak pedjak changed the title Fix DNS1123 validation message to match rule semantics 🐛 Fix DNS1123 validation message to match rule semantics Apr 15, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 XValidation message 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.

@tmshort
Copy link
Copy Markdown
Contributor

tmshort commented Apr 15, 2026

/approve

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 15, 2026
Copy link
Copy Markdown
Member

@rashmigottipati rashmigottipati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 15, 2026
@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Apr 15, 2026

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.89%. Comparing base (8ad71d4) to head (76ee584).
⚠️ Report is 1 commits behind head on main.

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     
Flag Coverage Δ
e2e 37.42% <ø> (+0.04%) ⬆️
experimental-e2e 52.49% <ø> (-0.03%) ⬇️
unit 53.62% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@openshift-merge-bot openshift-merge-bot bot merged commit 29debc7 into operator-framework:main Apr 15, 2026
36 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants