Skip to content

Auto-generate OpenAPIModelName() via openapi-gen#3769

Merged
openshift-merge-bot[bot] merged 1 commit intooperator-framework:masterfrom
tmshort:add-openapi-model-names
Feb 16, 2026
Merged

Auto-generate OpenAPIModelName() via openapi-gen#3769
openshift-merge-bot[bot] merged 1 commit intooperator-framework:masterfrom
tmshort:add-openapi-model-names

Conversation

@tmshort
Copy link
Contributor

@tmshort tmshort commented Feb 13, 2026

Replace hand-written model_name.go with generated zz_generated.model_name.go by adding +k8s:openapi-model-package marker to doc.go and running openapi-gen in update_codegen.sh.

Assisted-By: Claude

Updates to #3755, #3765, #3767

@openshift-ci openshift-ci bot requested review from anik120 and grokspawn February 13, 2026 20:28
// +k8s:conversion-gen=github.com/operator-framework/operator-lifecycle-manager/pkg/package-server/apis/operators
// +k8s:defaulter-gen=TypeMeta
// +k8s:openapi-gen=true
// +k8s:openapi-model-package=com.github.operator-framework.operator-lifecycle-manager.pkg.package-server.apis.operators.v1
Copy link
Contributor

Choose a reason for hiding this comment

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

So I think we do not need to revert: #3765

That solves all :-)

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We're not reverting it, but this deletes the original file and moves the file to the generated filename.

camilamacedo86
camilamacedo86 previously approved these changes Feb 13, 2026
Copy link
Contributor

@camilamacedo86 camilamacedo86 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 Feb 13, 2026
@grokspawn
Copy link
Contributor

/hold
Please remove the boilerplate.go.txt from the repo root, and regenerate.

@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 Feb 13, 2026
@tmshort
Copy link
Contributor Author

tmshort commented Feb 16, 2026

Please remove the boilerplate.go.txt from the repo root, and regenerate.

That will impact other generation as well that already includes that boilerplate. Are you sure you want to do that?

Replace hand-written model_name.go with generated zz_generated.model_name.go
by adding +k8s:openapi-model-package marker to doc.go and running openapi-gen
in update_codegen.sh.

Update boilerplate.go.txt to remove Red Hat copyright.

Signed-off-by: Todd Short <todd.short@me.com>
Assisted-By: Claude
@tmshort tmshort force-pushed the add-openapi-model-names branch from d27c6b4 to 0c96283 Compare February 16, 2026 15:30
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Feb 16, 2026
@tmshort
Copy link
Contributor Author

tmshort commented Feb 16, 2026

I removed the Red Hat copyright, and this updated a number of file headers.

@grokspawn
Copy link
Contributor

/approve
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 16, 2026
@grokspawn grokspawn removed lgtm Indicates that a PR is ready to be merged. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Feb 16, 2026
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 16, 2026
Copy link
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 Feb 16, 2026
@openshift-ci
Copy link

openshift-ci bot commented Feb 16, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86, grokspawn, rashmigottipati

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-bot bot merged commit 68059b8 into operator-framework:master Feb 16, 2026
14 checks passed
@tmshort tmshort deleted the add-openapi-model-names branch February 16, 2026 21:53
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