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

update k8s libs to 1.26. #2687

Merged
merged 3 commits into from
Apr 18, 2023
Merged

update k8s libs to 1.26. #2687

merged 3 commits into from
Apr 18, 2023

Conversation

mhenriks
Copy link
Member

What this PR does / why we need it:

Been awhile since we updated libs!

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Couple thinks that came along with this that may be interesting...

PVC spec.dataSourceRef has namespace field now but we will not allow it.

ConfigMap based leaderelection is gone, fortunately we were doing configmap + leases for awhile, so we should be good.

Release note:

k8s 1.26.1 libs

@kubevirt-bot kubevirt-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. size/XXL labels Apr 11, 2023
@awels
Copy link
Member

awels commented Apr 12, 2023

hmm looks like they changed the quota message format again, and the tests are failing because the string isn't being matched.

@mhenriks
Copy link
Member Author

hmm looks like they changed the quota message format again, and the tests are failing because the string isn't being matched.

Yeah controller runtime added an additional field to the log, those checks are redundant IMO so removed them

@mhenriks
Copy link
Member Author

@awels how do we deal with the fossa fails?

@awels
Copy link
Member

awels commented Apr 12, 2023

I usually have to go into the fossa tool to mark whatever is the problem, as not a problem because reasons.

@awels
Copy link
Member

awels commented Apr 12, 2023

/test pull-containerized-data-importer-fossa
Fixed the fossa issues.

@mhenriks
Copy link
Member Author

/retest-required

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
… has changed

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
@@ -2235,14 +2235,6 @@ var _ = Describe("all clone tests", func() {

f.ForceBindPvcIfDvIsWaitForFirstConsumer(dataVolume)

By("Verify Quota was exceeded in logs")
matchString := strings.Trim(fmt.Sprintf("\"namespace\": \"%s\", \"error\": \"pods \\\"cdi-upload-target-dv\\\" is forbidden: exceeded quota: test-quota, requested", targetNs.Name), " ")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we know if the new quota message still matches the ErrQuotaExceeded function that we use in the dv controllers?

Copy link
Member Author

Choose a reason for hiding this comment

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

If you look at the file we still verify a condition and an event contain ErrExceededQuota

k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed
k8s.io/cluster-bootstrap v0.26.1
k8s.io/code-generator v0.26.1
k8s.io/component-helpers v0.26.1
Copy link
Collaborator

Choose a reason for hiding this comment

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

can swap the copied funcs like

// TODO - later versions of k8s.io/component-helpers have this function

Copy link
Member Author

Choose a reason for hiding this comment

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

all set

Copy link
Collaborator

Choose a reason for hiding this comment

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

we also copied CheckAccessModes :donthateme:

Copy link
Member Author

Choose a reason for hiding this comment

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

lol good call, just updated

@mhenriks
Copy link
Member Author

/retest-required

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
@akalenyu
Copy link
Collaborator

/lgtm
/retest

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Apr 18, 2023
Copy link
Member

@awels awels left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: awels

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

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 18, 2023
@kubevirt-bot kubevirt-bot merged commit 8cb11f5 into kubevirt:main Apr 18, 2023
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. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants