Skip to content

Conversation

@camilamacedo86
Copy link
Contributor

@camilamacedo86 camilamacedo86 commented Dec 23, 2025

The redundante marker should no longer be used.
More info: kubernetes-sigs/controller-tools#1241

Motivation
kube-api-linter only recognize // +required and not the kubebuilder marker

Copilot AI review requested due to automatic review settings December 23, 2025 15:27
@camilamacedo86 camilamacedo86 requested a review from a team as a code owner December 23, 2025 15:27
@netlify
Copy link

netlify bot commented Dec 23, 2025

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit fe4bc7e
🔍 Latest deploy log https://app.netlify.com/projects/olmv1/deploys/694ab4d9700ffb00081dad51
😎 Deploy Preview https://deploy-preview-2407--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.

@openshift-ci openshift-ci bot requested review from bentito and trgeiger December 23, 2025 15:27
@openshift-ci
Copy link

openshift-ci bot commented Dec 23, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign camilamacedo86, michaelryanpeter, thetechnick for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

Copy link

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

This PR modernizes the API type definitions by replacing the deprecated +kubebuilder:validation:Required marker with the newer +required marker across all API types. The change is purely a marker update with no functional impact on the generated CRDs.

  • Replaces +kubebuilder:validation:Required with +required in all API type definitions
  • Updates auto-generated API reference documentation to reflect the new marker format
  • Applies the change consistently across ClusterExtension, ClusterExtensionRevision, and ClusterCatalog types

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
hack/tools/crd-generator/testdata/api/v1/clusterextension_types.go Updates test data for CRD generator with new required field marker
api/v1/clusterextension_types.go Replaces deprecated required marker in ClusterExtension type definitions
api/v1/clusterextensionrevision_types.go Replaces deprecated required marker in ClusterExtensionRevision type definitions
api/v1/clustercatalog_types.go Replaces deprecated required marker in ClusterCatalog type definitions
docs/api-reference/olmv1-api-reference.md Updates auto-generated API documentation to reflect new marker format

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Dec 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.82%. Comparing base (578dc33) to head (fe4bc7e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2407   +/-   ##
=======================================
  Coverage   68.82%   68.82%           
=======================================
  Files         100      100           
  Lines        7641     7641           
=======================================
  Hits         5259     5259           
  Misses       1947     1947           
  Partials      435      435           
Flag Coverage Δ
e2e 43.93% <ø> (ø)
experimental-e2e 13.68% <ø> (ø)
unit 57.11% <ø> (ø)

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.

@camilamacedo86 camilamacedo86 changed the title 🌱 Replace deprecated marker for required fields WIP 🌱 Replace deprecated marker for required fields Dec 23, 2025
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 23, 2025
@camilamacedo86 camilamacedo86 changed the title WIP 🌱 Replace deprecated marker for required fields 🌱 Replace deprecated marker for required fields Dec 23, 2025
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 23, 2025
@camilamacedo86 camilamacedo86 changed the title 🌱 Replace deprecated marker for required fields WIP 🌱 Replace deprecated marker for required fields Dec 23, 2025
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 23, 2025
| --- | --- | --- | --- |
| `name` _string_ | name is required and follows the DNS subdomain standard as defined in [RFC 1123].<br />It must contain only lowercase alphanumeric characters, hyphens (-) or periods (.),<br />start and end with an alphanumeric character, and be no longer than 253 characters. | | Required: \{\} <br /> |
| `version` _string_ | version is required and references the version that this bundle represents.<br />It follows the semantic versioning standard as defined in https://semver.org/. | | Required: \{\} <br /> |
| `name` _string_ | name is required and follows the DNS subdomain standard as defined in [RFC 1123].<br />It must contain only lowercase alphanumeric characters, hyphens (-) or periods (.),<br />start and end with an alphanumeric character, and be no longer than 253 characters. | | |
Copy link
Contributor Author

Choose a reason for hiding this comment

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

/hold

github.com/elastic/crd-ref-docs
need to recognize the required field too.

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 23, 2025
@camilamacedo86 camilamacedo86 changed the title WIP 🌱 Replace deprecated marker for required fields (Blocked by https://github.com/elastic/crd-ref-docs/pull/192) 🌱 Replace deprecated marker for required fields Dec 24, 2025
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant