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

OCPBUGS-13978: bump k8s modules to 0.27.4 #194

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

alebedev87
Copy link
Contributor

@alebedev87 alebedev87 commented Jun 8, 2023

Bump of k8s.io/[email protected]. [email protected] bump was mandatory as it's the first version supporting k8s api >=0.27.x.

Changes related to [email protected]:

  • Manager options changed:
    • NewClient changed the signature and the cache handling
    • Namespace and MultiNamespaceCacheBuilder are deprecated now, Cache field was used instead
  • WithStatusSubresource method has to be used in the fake client if the status is expected to be updated
  • source.Kind is not public anymore
  • sigs.k8s.io/controller-runtime/pkg/envtest/printer package has been removed
  • webhook.Validator interface changed the signature of its methods

Also golangci-lint (part of verify job) has been updated with the staticcheck and gosimple linters which are suggested to be default. The staticcheck found some deprecated methods:

  • https://pkg.go.dev/k8s.io/apimachinery/pkg/util/wait deprecated a lot of PollX methods in favor of the context aware alternatives.
  • k8s.io/utils/pointer deprecated all the methods with Ptr in the name in favor of the methods without it

@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. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Jun 8, 2023
@openshift-ci-robot
Copy link

@alebedev87: This pull request references Jira Issue OCPBUGS-13978, 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.14.0) matches configured target version for branch (4.14.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @ShudiLi

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

In response to this:

Bump of k8s.io/[email protected]. [email protected] bump was mandatory as it's the first version supporting k8s api >=0.27.x.

Changes related to [email protected]:

  • Manager options changed:
  • NewClient changed the signature and the cache handling
  • Namespace and MultiNamespaceCacheBuilder are deprecated now, Cache field was used instead
  • WithStatusSubresource method has to be used in the fake client if the status is expected to be updated
  • source.Kind is not public anymore
  • sigs.k8s.io/controller-runtime/pkg/envtest/printer package has been removed
  • webhook.Validator interface changed the signature of its methods

Also golangci-lint (part of verify job) has been updated with the staticcheck and gosimple linters which are suggested to be default. The staticcheck found some deprecated methods:

  • https://pkg.go.dev/k8s.io/apimachinery/pkg/util/wait deprecated a lot of PollX methods in favor of the context aware alternatives.
  • k8s.io/utils/pointer deprecated all the methods with Ptr in the name in favor of the methods without it

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 kubernetes/test-infra repository.

@openshift-ci openshift-ci bot requested review from ShudiLi, Miciah and miheer June 8, 2023 08:56
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 8, 2023

[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

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 Jun 8, 2023
@alebedev87
Copy link
Contributor Author

/assign @gcs278

@gcs278
Copy link
Contributor

gcs278 commented Jul 19, 2023

Reviewed and have no issues.
/lgtm

@gcs278
Copy link
Contributor

gcs278 commented Jul 19, 2023

/lgtm cancel
actually, I have one comment...sorry.

go.mod Outdated
k8s.io/client-go v0.25.3
k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed
sigs.k8s.io/controller-runtime v0.13.0
k8s.io/api v0.27.2
Copy link
Contributor

Choose a reason for hiding this comment

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

0.27.3 is out, https://pkg.go.dev/k8s.io/api?tab=versions

Should we use the latest?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Meantime they released 0.27.4, so I bumped to it. Hope they'll not release any new before we decide to merge the PR :)

@openshift-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. and removed lgtm Indicates that a PR is ready to be merged. labels Jul 19, 2023
@alebedev87 alebedev87 changed the title OCPBUGS-13978: bump k8s modules to 0.27.2 OCPBUGS-13978: bump k8s modules to 0.27.4 Jul 20, 2023
@openshift-ci-robot
Copy link

@alebedev87: This pull request references Jira Issue OCPBUGS-13978, which is valid.

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

Requesting review from QA contact:
/cc @ShudiLi

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

In response to this:

Bump of k8s.io/[email protected]. [email protected] bump was mandatory as it's the first version supporting k8s api >=0.27.x.

Changes related to [email protected]:

  • Manager options changed:
  • NewClient changed the signature and the cache handling
  • Namespace and MultiNamespaceCacheBuilder are deprecated now, Cache field was used instead
  • WithStatusSubresource method has to be used in the fake client if the status is expected to be updated
  • source.Kind is not public anymore
  • sigs.k8s.io/controller-runtime/pkg/envtest/printer package has been removed
  • webhook.Validator interface changed the signature of its methods

Also golangci-lint (part of verify job) has been updated with the staticcheck and gosimple linters which are suggested to be default. The staticcheck found some deprecated methods:

  • https://pkg.go.dev/k8s.io/apimachinery/pkg/util/wait deprecated a lot of PollX methods in favor of the context aware alternatives.
  • k8s.io/utils/pointer deprecated all the methods with Ptr in the name in favor of the methods without it

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 kubernetes/test-infra repository.

go.mod Outdated
sigs.k8s.io/controller-runtime v0.13.0
k8s.io/api v0.27.4
k8s.io/apimachinery v0.27.4
k8s.io/client-go v0.27.2
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be bumped to 0.27.4 too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think so, weird it wasn't bumped as a dependency.

go.mod Outdated
k8s.io/apimachinery v0.27.4
k8s.io/client-go v0.27.4
k8s.io/utils v0.0.0-20230209194617-a36077c30491
sigs.k8s.io/controller-runtime v0.15.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 feel bad for commenting this...https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.15.1

Thnk we should bump?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems to be a bug fix release, let me try.

@openshift-ci-robot
Copy link

@alebedev87: This pull request references Jira Issue OCPBUGS-13978, which is valid.

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

Requesting review from QA contact:
/cc @ShudiLi

In response to this:

Bump of k8s.io/[email protected]. [email protected] bump was mandatory as it's the first version supporting k8s api >=0.27.x.

Changes related to [email protected]:

  • Manager options changed:
  • NewClient changed the signature and the cache handling
  • Namespace and MultiNamespaceCacheBuilder are deprecated now, Cache field was used instead
  • WithStatusSubresource method has to be used in the fake client if the status is expected to be updated
  • source.Kind is not public anymore
  • sigs.k8s.io/controller-runtime/pkg/envtest/printer package has been removed
  • webhook.Validator interface changed the signature of its methods

Also golangci-lint (part of verify job) has been updated with the staticcheck and gosimple linters which are suggested to be default. The staticcheck found some deprecated methods:

  • https://pkg.go.dev/k8s.io/apimachinery/pkg/util/wait deprecated a lot of PollX methods in favor of the context aware alternatives.
  • k8s.io/utils/pointer deprecated all the methods with Ptr in the name in favor of the methods without it

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 kubernetes/test-infra repository.

@gcs278
Copy link
Contributor

gcs278 commented Aug 8, 2023

Sorry for the delays.
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 8, 2023
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 0cd8bee and 2 for PR HEAD cc366fc in total

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 8, 2023

@alebedev87: all tests passed!

Full PR test history. Your PR dashboard.

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 kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit 72053a8 into openshift:main Aug 8, 2023
@openshift-ci-robot
Copy link

@alebedev87: Jira Issue OCPBUGS-13978: All pull requests linked via external trackers have merged:

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

In response to this:

Bump of k8s.io/[email protected]. [email protected] bump was mandatory as it's the first version supporting k8s api >=0.27.x.

Changes related to [email protected]:

  • Manager options changed:
  • NewClient changed the signature and the cache handling
  • Namespace and MultiNamespaceCacheBuilder are deprecated now, Cache field was used instead
  • WithStatusSubresource method has to be used in the fake client if the status is expected to be updated
  • source.Kind is not public anymore
  • sigs.k8s.io/controller-runtime/pkg/envtest/printer package has been removed
  • webhook.Validator interface changed the signature of its methods

Also golangci-lint (part of verify job) has been updated with the staticcheck and gosimple linters which are suggested to be default. The staticcheck found some deprecated methods:

  • https://pkg.go.dev/k8s.io/apimachinery/pkg/util/wait deprecated a lot of PollX methods in favor of the context aware alternatives.
  • k8s.io/utils/pointer deprecated all the methods with Ptr in the name in favor of the methods without it

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 kubernetes/test-infra repository.

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.

4 participants