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

bump kubernetes version and other dependencies #198

Closed
wants to merge 5 commits into from
Closed

bump kubernetes version and other dependencies #198

wants to merge 5 commits into from

Conversation

coreydaley
Copy link
Contributor

@coreydaley coreydaley commented Aug 24, 2023

Changes

Bump kubernetes version and other associated dependencies

Submitter Checklist

  • Includes tests if functionality changed/was added
  • Includes docs if changes are user-facing
  • Set a kind label on this PR
  • Release notes block has been filled in, or marked NONE

See the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.

Release Notes

NONE

@coreydaley
Copy link
Contributor Author

/kind dependencies

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 24, 2023

@coreydaley: The label(s) kind/dependencies cannot be applied, because the repository doesn't have them.

In response to this:

/kind dependencies

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.

@coreydaley
Copy link
Contributor Author

/kind dependency-change

@openshift-ci openshift-ci bot added the kind/dependency-change Categorizes issue or PR as related to changing dependencies label Aug 24, 2023
@coreydaley
Copy link
Contributor Author

/assign @SaschaSchwarze0 @qu1queee @adambkaplan ptal

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 24, 2023

@coreydaley: GitHub didn't allow me to assign the following users: ptal.

Note that only shipwright-io members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

/assign @SaschaSchwarze0 @qu1queee @adambkaplan ptal

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.

Comment on lines 89 to 90
ctx := context.Background()
err = wait.PollUntilContextTimeout(ctx, 1*time.Second, 10*time.Second, true, func(context.Context) (done bool, err error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Curious, couldn't we use c.cmd.Context() instead of a new background context or the PollUntilContextTimeout call?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in next push

@@ -178,7 +178,7 @@ func TestStreamBuildRunFollowLogs(t *testing.T) {
cmd.Cmd().ExecuteC()
pm := genericclioptions.NewConfigFlags(true)
if len(test.to) > 0 {
pm.Timeout = &test.to
*pm.Timeout = test.to
Copy link
Contributor

Choose a reason for hiding this comment

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

Me, tired, trying to do pointer arithmetic.
image

Copy link
Contributor Author

@coreydaley coreydaley Sep 6, 2023

Choose a reason for hiding this comment

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

This is what prompted the change:

> make sanity-check                                                                                                                                              2023-08-23-bump-dependencies
golangci-lint run
pkg/shp/cmd/buildrun/logs_test.go:181:17: G601: Implicit memory aliasing in for loop. (gosec)
			pm.Timeout = &test.to
			             ^
make: *** [sanity-check] Error 1

If i interpret it correctly, memory addresses are reused in for loops.

pkg/shp/flags/build.go Show resolved Hide resolved
Comment on lines +14 to +17
k8s.io/api v0.27.3
k8s.io/apimachinery v0.27.3
k8s.io/cli-runtime v0.27.3
k8s.io/client-go v0.27.3
Copy link
Contributor

Choose a reason for hiding this comment

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

What was our plan here? Shouldn't we keep that in sync with what we have in Shipwright Build, i. e. v0.25-ish?

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 we are still working on deciding what version to use, this was just the repository that I picked to try the upgrade with. I would like to use v0.27.3 since it won't go EOM as soon and it aligns with the version that we are using in OpenShift.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 6, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from adambkaplan. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 8, 2023
@openshift-merge-robot
Copy link
Contributor

PR needs rebase.

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
kind/dependency-change Categorizes issue or PR as related to changing dependencies needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. release-note-none
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants