Skip to content

📖 Update ClusterExtensionRevision API docs - #2350

Merged
openshift-merge-bot[bot] merged 1 commit into
operator-framework:mainfrom
perdasilva:cer-docs
Nov 27, 2025
Merged

📖 Update ClusterExtensionRevision API docs#2350
openshift-merge-bot[bot] merged 1 commit into
operator-framework:mainfrom
perdasilva:cer-docs

Conversation

@perdasilva

@perdasilvaperdasilva commented Nov 19, 2025

Copy link
Copy Markdown
Contributor

Description

Update the ClusterExtensionRevision API docstrings to provide more thorough API documentation for the user.

Note: changes were generated using AI tools and manually updated

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

CopilotAI review requested due to automatic review settings November 19, 2025 10:25
@perdasilva
perdasilva requested a review from a team as a code ownerNovember 19, 2025 10:25
@netlify

netlifyBot commented Nov 19, 2025

Copy link
Copy Markdown

Deploy Preview for olmv1 ready!

NameLink
🔨 Latest commit0dd38aa
🔍 Latest deploy loghttps://app.netlify.com/projects/olmv1/deploys/69287328f7a99e000742f73d
😎 Deploy Previewhttps://deploy-preview-2350--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.

@camilamacedo86camilamacedo86 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm

@openshift-ciopenshift-ciBot added the lgtm Indicates that a PR is ready to be merged. label Nov 19, 2025

@camilamacedo86camilamacedo86 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Much better 🎉

@camilamacedo86

camilamacedo86 commented Nov 19, 2025

Copy link
Copy Markdown
Contributor

Hi @perdasilva

Can we fix the emoj for 📖 ( docs )?

@perdasilvaperdasilva changed the title 🌱 Update ClusterExtensionRevision API docs📖 : Update ClusterExtensionRevision API docsNov 19, 2025
@perdasilvaperdasilva changed the title 📖 : Update ClusterExtensionRevision API docs📖 Update ClusterExtensionRevision API docsNov 19, 2025

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request updates the ClusterExtensionRevision API documentation to provide more comprehensive and detailed descriptions for developers and users.

  • Enhanced top-level API documentation explaining the purpose and lifecycle of ClusterExtensionRevisions
  • Improved field documentation with detailed explanations of behavior for spec and status fields
  • Expanded condition documentation explaining all possible condition types, reasons, and their meanings

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.

FileDescription
api/v1/clusterextensionrevision_types.goUpdated Go API type definitions with comprehensive docstrings for ClusterExtensionRevision types, fields, and constants
manifests/experimental.yamlGenerated CRD manifest with updated OpenAPI schema descriptions matching the Go API documentation
manifests/experimental-e2e.yamlGenerated E2E CRD manifest with updated OpenAPI schema descriptions matching the Go API documentation
helm/olmv1/base/operator-controller/crd/experimental/olm.operatorframework.io_clusterextensionrevisions.yamlHelm chart CRD with updated OpenAPI schema descriptions matching the Go API documentation

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

Comment threadapi/v1/clusterextensionrevision_types.go Outdated
Comment threadmanifests/experimental.yaml Outdated
Comment threadmanifests/experimental-e2e.yaml Outdated
Comment threadapi/v1/clusterextensionrevision_types.go Outdated
Comment threadapi/v1/clusterextensionrevision_types.go Outdated
Comment threadapi/v1/clusterextensionrevision_types.go Outdated
@camilamacedo86

Copy link
Copy Markdown
Contributor

@perdasilva I think it is also valid to address the Copilot reviews. WDYT?

@codecov

codecovBot commented Nov 19, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.36%. Comparing base (5ed8cf4) to head (0dd38aa).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@## main #2350 +/- ##
==========================================
- Coverage 74.45% 74.36% -0.09% 
==========================================
Files 93 93 Lines 7300 7300 ==========================================
- Hits 5435 5429 -6 - Misses 1433 1436 +3 - Partials 432 435 +3 
FlagCoverage Δ
e2e44.47% <ø> (-0.05%)⬇️
experimental-e2e48.69% <ø> (-0.05%)⬇️
unit58.47% <ø> (ø)

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-ciopenshift-ciBot removed the lgtm Indicates that a PR is ready to be merged. label Nov 19, 2025
@perdasilva

Copy link
Copy Markdown
ContributorAuthor

@perdasilva I think it is also valid to address the Copilot reviews. WDYT?

Done =D

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

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


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

Comment threadapi/v1/clusterextensionrevision_types.go Outdated

@rashmigottipatirashmigottipati left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@openshift-ciopenshift-ciBot added the lgtm Indicates that a PR is ready to be merged. label Nov 19, 2025
@tmshort

Copy link
Copy Markdown
Contributor

/hold
@perdasilva: To allow other people to give it a look while I throw on an approval. Please remove when you think we've had enough eyes on it.

@openshift-ciopenshift-ciBot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 19, 2025
@openshift-ciopenshift-ciBot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 19, 2025
@perdasilva

Copy link
Copy Markdown
ContributorAuthor

/hold @perdasilva: To allow other people to give it a look while I throw on an approval. Please remove when you think we've had enough eyes on it.

good thinking! thank you!!

@michaelryanpetermichaelryanpeter left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

So I've looked it over, and I think it is pretty good overall, but I find the way that the LLM described the fields to be really confusing. For example, "phases is an optional, immutable list of phases..." or "objects is...". I think that something like "the phases property/field specifies an optional, immutaable list of phases. A phase is a ..." would be easier to grok. But I don't think this is a blocker and I know time is tight. Since it is tech preview, we can update these comments right?

@openshift-ciopenshift-ciBot removed the lgtm Indicates that a PR is ready to be merged. label Nov 24, 2025
@perdasilva

Copy link
Copy Markdown
ContributorAuthor

/unhold

@openshift-ciopenshift-ciBot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 24, 2025
CopilotAI review requested due to automatic review settings November 26, 2025 15:31

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


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

Comment threadapi/v1/clusterextensionrevision_types.go Outdated
Comment threadapi/v1/clusterextensionrevision_types.go Outdated
Comment on lines +51 to +54
// A ClusterExtensionRevision represents a specific immutable snapshot of the objects
// to be installed for a ClusterExtension. Each revision is rolled out in phases,
// with objects organized by their Group-Kind into well-known phases such as namespaces,
// rbac, crds, and deploy.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This doc refers ClusterExtensionRevision, thus it should be placed on type ClusterExtensionRevision struct

Comment threadapi/v1/clusterextensionrevision_types.go Outdated
Comment threadapi/v1/clusterextensionrevision_types.go Outdated
Comment threadapi/v1/clusterextensionrevision_types.go Outdated
Comment threadapi/v1/clusterextensionrevision_types.go Outdated
//
// The revision rollout uses a phased approach where objects apply in a defined order based
// on type (for example: namespaces, then RBAC, then CRDs, then deployments). All objects
// in a phase apply simultaneously and must pass readiness probes before rollout continues

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

see earlier comments on "simultaneously"

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

I'm having trouble finding the early comment. But, I've gone ahead and removed this for now as it speaks to implementation. Having said that, I think we're still a bit fuzzy on how we want to present this API to the user and how much that phased approach with progression checks are implementation detail vs a first class mental model that the user should have in their heads.

Comment threadapi/v1/clusterextensionrevision_types.go Outdated
Comment threadapi/v1/clusterextensionrevision_types.go Outdated
Comment threadapi/v1/clusterextensionrevision_types.go Outdated

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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


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

Comment threadapi/v1/clusterextensionrevision_types.go Outdated
Comment threadmanifests/experimental.yaml Outdated
Comment threadmanifests/experimental-e2e.yaml Outdated
Comment threadapi/v1/clusterextensionrevision_types.go
Comment threadapi/v1/clusterextensionrevision_types.go

@rashmigottipatirashmigottipati left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/approve

@openshift-ciopenshift-ciBot added the lgtm Indicates that a PR is ready to be merged. label Nov 27, 2025
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
@openshift-ciopenshift-ciBot removed the lgtm Indicates that a PR is ready to be merged. label Nov 27, 2025

@pedjakpedjak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm nice work!

@openshift-ciopenshift-ciBot added the lgtm Indicates that a PR is ready to be merged. label Nov 27, 2025
@openshift-ci

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86, pedjak, 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

@openshift-merge-bot
openshift-merge-botBot merged commit 4355cde into operator-framework:mainNov 27, 2025
27 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@perdasilva@camilamacedo86@tmshort@pedjak@rashmigottipati@michaelryanpeter