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

OCPCLOUD-2424: Bump k8s packages to v1.29 #325

Merged
merged 1 commit into from Jan 17, 2024

Conversation

racheljpg
Copy link
Contributor

Hello! This is a PR to bump the k8s packages to version 1.29. Thanks!

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jan 16, 2024
@openshift-ci-robot
Copy link

openshift-ci-robot commented Jan 16, 2024

@racheljpg: This pull request references OCPCLOUD-2424 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.16.0" version, but no target version was set.

In response to this:

Hello! This is a PR to bump the k8s packages to version 1.29. Thanks!

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 review from JoelSpeed and nrb January 16, 2024 11:02
go.mod Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
@racheljpg racheljpg force-pushed the k8s-1.29-bump branch 2 times, most recently from 22d089a to dadace1 Compare January 16, 2024 12:18
@nrb
Copy link
Contributor

nrb commented Jan 16, 2024

Looks like some imports and functions will need updating. From the CI failures:

cmd/azure-config-credentials-injector/main.go:150:3: printf: (k8s.io/klog/v2.Verbose).Info call has possible Printf formatting directive %s (govet)
		klog.V(4).Info("%s env variable is set, client secret authentication will be used", clientSecretEnvKey)
		^
pkg/config/config.go:90:3: printf: k8s.io/klog/v2.Errorf call needs 1 arg but has 2 args (govet)
		klog.Errorf("Unable to decode images file from location %s", imagesFile, err)
		^
pkg/controllers/resourceapply/resourceapply.go:157:3: printf: (k8s.io/klog/v2.Verbose).Infof does not support error-wrapping directive %w (govet)
		klog.V(3).Infof("Can not check related configs for %s/%s: %w", required.GetObjectKind(), required.GetName(), err)
		^
pkg/controllers/resourceapply/resourceapply.go:246:3: printf: (k8s.io/klog/v2.Verbose).Infof does not support error-wrapping directive %w (govet)
		klog.V(3).Infof("Can not check related configs for %s/%s: %w", required.GetObjectKind(), required.GetName(), err)
		^
cmd/config-sync-controllers/main.go:88:17: SA1019: klogr.New is deprecated: this uses a custom, out-dated output format. Use textlogger.NewLogger instead. (staticcheck)
	ctrl.SetLogger(klogr.New().WithName("CCCMOConfigSyncControllers"))
	               ^
pkg/cloud/common/substitution.go:8:2: SA1019: "k8s.io/utils/pointer" is deprecated: Use functions in k8s.io/utils/ptr instead: ptr.To to obtain a pointer, ptr.Deref to dereference a pointer, ptr.Equal to compare dereferenced pointers. (staticcheck)
	"k8s.io/utils/pointer"
	^
pkg/cloud/common/substitution_test.go:10:2: SA1019: "k8s.io/utils/pointer" is deprecated: Use functions in k8s.io/utils/ptr instead: ptr.To to obtain a pointer, ptr.Deref to dereference a pointer, ptr.Equal to compare dereferenced pointers. (staticcheck)
	"k8s.io/utils/pointer"
	^
pkg/controllers/suite_test.go:72:17: SA1019: klogr.New is deprecated: this uses a custom, out-dated output format. Use textlogger.NewLogger instead. (staticcheck)
	logf.SetLogger(klogr.New())
	               ^
pkg/controllers/cloud_config_sync_controller_test.go:15:2: SA1019: "k8s.io/utils/pointer" is deprecated: Use functions in k8s.io/utils/ptr instead: ptr.To to obtain a pointer, ptr.Deref to dereference a pointer, ptr.Equal to compare dereferenced pointers. (staticcheck)
	"k8s.io/utils/pointer"
	^ 

@racheljpg racheljpg force-pushed the k8s-1.29-bump branch 3 times, most recently from d517e56 to e4d41eb Compare January 17, 2024 14:15
Copy link
Member

@damdo damdo left a comment

Choose a reason for hiding this comment

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

/lgtm

Thanks!

@damdo
Copy link
Member

damdo commented Jan 17, 2024

This will need bumping

ENVTEST_K8S_VERSION = 1.28

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

/approve
/lgtm

Copy link
Contributor

openshift-ci bot commented Jan 17, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JoelSpeed

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 Jan 17, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit f5e793f into openshift:master Jan 17, 2024
9 of 15 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. 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.

None yet

5 participants