-
Notifications
You must be signed in to change notification settings - Fork 24
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
Update everything #111
Conversation
because of `runtime.Object does not implement client.Object (missing GetAnnotations method)`
@@ -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). | |||
// |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
What this PR does / why we need it:
k8s.io/api
,k8s.io/apimachinery
,k8s.io/client-go
,k8s.io/controller-runtime
,k8s.io/controller-tools
k8s.io/klog/v2
and changing how to handleklogr
zap
,controller-runtime
andginkgo
controller-gen
0.9.2Special notes for your reviewer:
Release note: