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
Bug 1820474: clusterAutoscaler and machineAutoscaler structural schema #146
Bug 1820474: clusterAutoscaler and machineAutoscaler structural schema #146
Conversation
Fix client signatures Drop CVO in favour go library-go Ignore resourceVersion on spec comparisons kubernetes-sigs/controller-runtime#620
@enxebre: This pull request references Bugzilla bug 1820474, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
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. |
|
@enxebre: This pull request references Bugzilla bug 1820474, which is valid. 3 validation(s) were run on this bug
In response to this:
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. |
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.
/approve
/retest |
[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 |
L13 of the Makefile needs to go from |
e09cb41
to
0bc4a9c
Compare
/retest |
52daa3b
to
1341f59
Compare
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.
looks good to me from a logic standpoint, i just have a question about a variable name
// Fail if we didn't find any of the supported target types registered. | ||
if len(r.config.SupportedTargetGVKs) < 1 { | ||
return ErrNoSupportedTargets | ||
func getMissingGVKs(restMapper meta.RESTMapper, supportedCVKs []schema.GroupVersionKind) ([]schema.GroupVersionKind, error) { |
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.
should the second argument be named supportGVKs
to make it clearer?
func getMissingGVKs(restMapper meta.RESTMapper, supportedCVKs []schema.GroupVersionKind) ([]schema.GroupVersionKind, error) { | ||
var missingGVKs []schema.GroupVersionKind | ||
|
||
for _, gvk := range supportedCVKs { |
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.
s/supportedCVKs/supportedGVKs/
?
Before revendoring controller-runtime `watch` was running `start` by default which made it possible to use the returned error to discriminated the existing GVKs https://github.com/openshift/cluster-autoscaler-operator/blob/a0b7aead18c86ac9a51f3479cba0c656ed83065f/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go#L122. Without this commit, the new behaviour introduced by controller-runtime https://github.com/kubernetes-sigs/controller-runtime/blob/b6092bd383f0317f48ee396629ceb46d7dd064b4/pkg/internal/controller/controller.go#L137 is hidding the missing GVKs until the manager is started resulting in a fatal error.
1341f59
to
36e2318
Compare
/retest |
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.
/lgtm
/test e2e-aws |
/retest |
/retest Please review the full test history for this PR and help us cut down flakes. |
@enxebre: All pull requests linked via external trackers have merged: openshift/cluster-autoscaler-operator#146. Bugzilla bug 1820474 has been moved to the MODIFIED state. In response to this:
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. |
This makes clusterAutoscaler and machineAutoscaler structural schemas.
To this end I update controller-tools, which forced me to update the whole api machinery stack to kube 1.18. As a consequence I had to drop CVO to avoid transitive incompatible dependencies and take the chance to move to openshift/library-go. As a consequence I had to update scripts to run on golang 1.13.
Needs openshift/release#8114.