Skip to content

Conversation

@Miciah
Copy link
Contributor

@Miciah Miciah commented Apr 17, 2024

Bump to github.com/openshift/api@ff84c2c732279b16baccf08c7dfc9ff8719c4807, and update the CRD generation to adapt to changes in openshift/api:

go mod edit -replace=github.com/openshift/api=github.com/openshift/api@ff84c2c732279b16baccf08c7dfc9ff8719c4807
go mod tidy
go mod vendor
make update

Previously, the IngressController and DNSRecord CRD yaml manifests were located directly under operator/v1/ and operatoringress/v1/ in the openshift/api repository, and cluster-ingress-operator had .go files that imported the "github.com/openshift/api/operator/v1" and "github.com/openshift/api/operatoringress/v1" packages, which caused go mod to vendor the yaml manifests. Recent changes in openshift/api moved the yaml manifests under zz_generated.crd-manifests directories; consequently, the existing import statements no longer cause go mod to vendor the yaml manifests. In order to ensure that go mod does vendor them, it is necessary to add explicit import statements for "github.com/openshift/api/operator/v1/zz_generated.crd-manifests" and "github.com/openshift/api/operatoringress/v1/zz_generated.crd-manifests". This PR adds these import statements to tools/tool.go (which was previously removed in #905).

This PR also updates the CRD generation scripts to use the new file paths under vendor/.

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 17, 2024
@openshift-ci openshift-ci bot requested review from frobware and gcs278 April 17, 2024 16:27
@Miciah Miciah force-pushed the bump-openshift-slash-api-and-update-CRD-generation branch from fab6fe6 to 0471dbb Compare April 17, 2024 16:28
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 17, 2024
@Miciah
Copy link
Contributor Author

Miciah commented Apr 17, 2024

@Miciah Miciah force-pushed the bump-openshift-slash-api-and-update-CRD-generation branch from 0471dbb to 0f316a4 Compare April 17, 2024 16:29
@alebedev87
Copy link
Contributor

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 17, 2024
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 17, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alebedev87

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-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 17, 2024
Bump to github.com/openshift/api@ff84c2c732279b16baccf08c7dfc9ff8719c4807,
and update the CRD generation to adapt to changes in openshift/api:

    go mod edit -replace=github.com/openshift/api=github.com/openshift/api@ff84c2c732279b16baccf08c7dfc9ff8719c4807
    go mod tidy
    go mod vendor
    make update

Previously, the IngressController and DNSRecord CRD yaml manifests were
located directly under operator/v1/ and operatoringress/v1/ in the
openshift/api repository, and cluster-ingress-operator had .go files
that imported the "github.com/openshift/api/operator/v1" and
"github.com/openshift/api/operatoringress/v1" packages, which caused go
mod to vendor the yaml manifests.  Recent changes in openshift/api moved
the yaml manifests under "zz_generated.crd-manifests" directories;
consequently, the existing import statements no longer cause go mod to
vendor the yaml manifests.  In order to ensure that go mod does vendor
them, it is necessary to add explicit import statements for
"github.com/openshift/api/operator/v1/zz_generated.crd-manifests" and
"github.com/openshift/api/operatoringress/v1/zz_generated.crd-manifests".
This commit adds these import statements to tools/tool.go (which was
previously removed in commit 0b761da).

This commit also updates the CRD generation scripts to use the new
file paths under vendor/.

This commit fixes OCPBUGS-32371.

https://issues.redhat.com/browse/OCPBUGS-32371

* go.mod: Bump.
* hack/update-generated-crd.sh:
* hack/verify-generated-crd.sh: Update to use the new file paths under
vendor/.
* tools/tools.go: Add explicit imports for
"github.com/openshift/api/operator/v1/zz_generated.crd-manifests" and
"github.com/openshift/api/operatoringress/v1/zz_generated.crd-manifests".
* go.sum:
* manifests/00-custom-resource-definition-internal.yaml:
* manifests/00-custom-resource-definition.yaml:
* vendor/*: Regenerate.
@Miciah Miciah force-pushed the bump-openshift-slash-api-and-update-CRD-generation branch from 0f316a4 to 65dcb3f Compare April 17, 2024 17:09
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Apr 17, 2024
@Miciah Miciah changed the title Bump openshift/api, and update CRD generation OCPBUGS-32371: Bump openshift/api, and update CRD generation Apr 17, 2024
@openshift-ci-robot openshift-ci-robot added jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. labels Apr 17, 2024
@openshift-ci-robot
Copy link
Contributor

@Miciah: This pull request references Jira Issue OCPBUGS-32371, which is invalid:

  • expected the bug to target the "4.16.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

Bump to github.com/openshift/api@ff84c2c732279b16baccf08c7dfc9ff8719c4807, and update the CRD generation to adapt to changes in openshift/api:

go mod edit -replace=github.com/openshift/api=github.com/openshift/api@ff84c2c732279b16baccf08c7dfc9ff8719c4807
go mod tidy
go mod vendor
make update

Previously, the IngressController and DNSRecord CRD yaml manifests were located directly under operator/v1/ and operatoringress/v1/ in the openshift/api repository, and cluster-ingress-operator had .go files that imported the "github.com/openshift/api/operator/v1" and "github.com/openshift/api/operatoringress/v1" packages, which caused go mod to vendor the yaml manifests. Recent changes in openshift/api moved the yaml manifests under zz_generated.crd-manifests directories; consequently, the existing import statements no longer cause go mod to vendor the yaml manifests. In order to ensure that go mod does vendor them, it is necessary to add explicit import statements for "github.com/openshift/api/operator/v1/zz_generated.crd-manifests" and "github.com/openshift/api/operatoringress/v1/zz_generated.crd-manifests". This PR adds these import statements to tools/tool.go (which was previously removed in #905).

This PR also updates the CRD generation scripts to use the new file paths under vendor/.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label Apr 17, 2024
@Miciah
Copy link
Contributor Author

Miciah commented Apr 17, 2024

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Apr 17, 2024
@openshift-ci-robot
Copy link
Contributor

@Miciah: This pull request references Jira Issue OCPBUGS-32371, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.16.0) matches configured target version for branch (4.16.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @lihongan

Details

In response to this:

/jira refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested a review from lihongan April 17, 2024 17:10
@alebedev87
Copy link
Contributor

/retest

@alebedev87
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 18, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit d27fc3f into openshift:master Apr 18, 2024
@openshift-ci-robot
Copy link
Contributor

@Miciah: Jira Issue OCPBUGS-32371: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-32371 has been moved to the MODIFIED state.

Details

In response to this:

Bump to github.com/openshift/api@ff84c2c732279b16baccf08c7dfc9ff8719c4807, and update the CRD generation to adapt to changes in openshift/api:

go mod edit -replace=github.com/openshift/api=github.com/openshift/api@ff84c2c732279b16baccf08c7dfc9ff8719c4807
go mod tidy
go mod vendor
make update

Previously, the IngressController and DNSRecord CRD yaml manifests were located directly under operator/v1/ and operatoringress/v1/ in the openshift/api repository, and cluster-ingress-operator had .go files that imported the "github.com/openshift/api/operator/v1" and "github.com/openshift/api/operatoringress/v1" packages, which caused go mod to vendor the yaml manifests. Recent changes in openshift/api moved the yaml manifests under zz_generated.crd-manifests directories; consequently, the existing import statements no longer cause go mod to vendor the yaml manifests. In order to ensure that go mod does vendor them, it is necessary to add explicit import statements for "github.com/openshift/api/operator/v1/zz_generated.crd-manifests" and "github.com/openshift/api/operatoringress/v1/zz_generated.crd-manifests". This PR adds these import statements to tools/tool.go (which was previously removed in #905).

This PR also updates the CRD generation scripts to use the new file paths under vendor/.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-bot
Copy link
Contributor

[ART PR BUILD NOTIFIER]

This PR has been included in build ose-cluster-ingress-operator-container-v4.16.0-202404181209.p0.gd27fc3f.assembly.stream.el9 for distgit ose-cluster-ingress-operator.
All builds following this will include this PR.

@openshift-merge-robot
Copy link
Contributor

Fix included in accepted release 4.16.0-0.nightly-2024-04-21-123502

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. jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants