Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break dependency on k/k and remove replace statements in go.mod file #932

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

amacaskill
Copy link
Member

@amacaskill amacaskill commented Aug 14, 2024

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind api-change
/kind bug

/kind cleanup

/kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake

What this PR does / why we need it:
This PR allows us to remove most of the replace statements in go.mod. The client-go replace statement was still needed in order for go mod tidy to succeed. See details here

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

Break dependency on k/k and remove replace statements in go.mod file.

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. labels Aug 14, 2024
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Aug 14, 2024
@amacaskill amacaskill force-pushed the break-dep branch 2 times, most recently from d7bded9 to 0bd90c1 Compare August 14, 2024 19:25
@amacaskill
Copy link
Member Author

/assign @msau42

@amacaskill
Copy link
Member Author

/test pull-gcp-filestore-csi-driver-e2e

2 similar comments
@amacaskill
Copy link
Member Author

/test pull-gcp-filestore-csi-driver-e2e

@amacaskill
Copy link
Member Author

/test pull-gcp-filestore-csi-driver-e2e

k8s.io/sample-cli-plugin => k8s.io/sample-cli-plugin v0.26.0
k8s.io/sample-controller => k8s.io/sample-controller v0.26.0
)
replace k8s.io/client-go => k8s.io/client-go v0.26.0
Copy link
Contributor

Choose a reason for hiding this comment

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

I think even this can be removed

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think it can. I was running into this issue

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you try setting 0.26.0 in L32?

Copy link
Member Author

Choose a reason for hiding this comment

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

Changing to 0.26.0 and removing the replace statement results in

go: sigs.k8s.io/gcp-filestore-csi-driver/pkg/client/clientset/versioned imports
        k8s.io/client-go/util/flowcontrol imports
        k8s.io/apimachinery/pkg/util/clock: module k8s.io/apimachinery@latest found (v0.31.0), but does not contain package k8s.io/apimachinery/pkg/util/clock
go: sigs.k8s.io/gcp-filestore-csi-driver/pkg/csi_driver imports
        k8s.io/client-go/informers imports
        k8s.io/api/auditregistration/v1alpha1: module k8s.io/api@latest found (v0.31.0), but does not contain package k8s.io/api/auditregistration/v1alpha1
go: sigs.k8s.io/gcp-filestore-csi-driver/pkg/csi_driver imports
        k8s.io/client-go/informers imports
        k8s.io/api/batch/v2alpha1: module k8s.io/api@latest found (v0.31.0), but does not contain package k8s.io/api/batch/v2alpha1
go: sigs.k8s.io/gcp-filestore-csi-driver/pkg/csi_driver imports
        k8s.io/client-go/informers imports
        k8s.io/api/settings/v1alpha1: module k8s.io/api@latest found (v0.31.0), but does not contain package k8s.io/api/settings/v1alpha1
go: sigs.k8s.io/gcp-filestore-csi-driver/pkg/webhook imports
        sigs.k8s.io/controller-runtime/pkg/certwatcher tested by
        sigs.k8s.io/controller-runtime/pkg/certwatcher.test imports
        sigs.k8s.io/controller-runtime imports
        sigs.k8s.io/controller-runtime/pkg/builder imports
        sigs.k8s.io/controller-runtime/pkg/client imports
        k8s.io/client-go/metadata: package k8s.io/client-go/metadata provided by k8s.io/client-go at latest version v0.31.0 but not at required version v11.0.1-0.20190805182717-6502b5e7b1b5+incompatible

I also tried v0.31.0, but it keeps saying it wants k8s.io/client-go/metadata at v11.0.1-0.20190805182717-6502b5e7b1b5+incompatible

Copy link
Contributor

Choose a reason for hiding this comment

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

bummer, this is still a good improvement though so let's go with what we have for now

@msau42
Copy link
Contributor

msau42 commented Aug 15, 2024

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 15, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: amacaskill, msau42

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 15, 2024
@k8s-ci-robot k8s-ci-robot merged commit 47e2dbe into kubernetes-sigs:master Aug 15, 2024
7 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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants