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 everything #111

Merged
merged 14 commits into from
Nov 7, 2022
Merged

Update everything #111

merged 14 commits into from
Nov 7, 2022

Conversation

voelzmo
Copy link
Member

@voelzmo voelzmo commented Nov 4, 2022

What this PR does / why we need it:

  • Bump api module golang dependency to 1.18 as well
  • Bump k8s.io/api, k8s.io/apimachinery, k8s.io/client-go, k8s.io/controller-runtime, k8s.io/controller-tools
  • This required updating to k8s.io/klog/v2 and changing how to handle klogr
  • Adapted to API changes in zap, controller-runtime and ginkgo
  • Updated integration test CRDs to have valid openapiV3Schema definitions
  • re-generated CRDs with controller-gen 0.9.2
  • Fixed a test by changing how it updates the Pod status

Special notes for your reviewer:

Release note:

Bump api module golang dep to 1.18
Update k8s.io dependencies to include k8s 1.25
Switch to klog/v2

@voelzmo voelzmo requested a review from a team as a code owner November 4, 2022 15:00
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Nov 4, 2022
@gardener-robot gardener-robot added the needs/review Needs review label Nov 4, 2022
@gardener-robot-ci-2 gardener-robot-ci-2 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Nov 4, 2022
@gardener-robot gardener-robot added size/xl Size of pull request is huge (see gardener-robot robot/bots/size.py) needs/second-opinion Needs second review by someone else labels Nov 4, 2022
@@ -151,8 +151,9 @@ type HvpaControllerRefManager struct {
// If CanAdopt() returns a non-nil error, all adoptions will fail.
//
// NOTE: Once CanAdopt() is called, it will not be called again by the same
// HvpaControllerRefManager HPA/VPA. Create a new HPA/VPA if it makes
// sense to check CanAdopt() again (e.g. in a different sync pass).
//
Copy link
Contributor

Choose a reason for hiding this comment

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

The formatter added an unnecessary empty line here and in two more instances below.

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, not sure, all this was basically done automagically

if err != nil {
log.Error(err, "Error initializing runtime.Object for", "kind", target.Kind, "name", target.Name, "namespace", hvpa.Namespace)
return nil
}
obj := o.(client.Object)
Copy link
Contributor

Choose a reason for hiding this comment

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

Any idea if it's theoretically possible for the operator to point the targetRef to something which is not a k8s object and have the controller panic upon this type assertion?

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 that actually works given the validations when this resource is applied.

@voelzmo voelzmo merged commit 70e4a89 into gardener:master Nov 7, 2022
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/review Needs review needs/second-opinion Needs second review by someone else size/xl Size of pull request is huge (see gardener-robot robot/bots/size.py) status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants