-
Notifications
You must be signed in to change notification settings - Fork 114
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
fix: attach scheme to client for oc infra call #237
Conversation
Thanks for your PR,
To skip the vendors CIs use one of:
|
pkg/utils/cluster.go
Outdated
@@ -42,6 +42,7 @@ func k8sSingleNodeClusterStatus(c client.Client) (bool, error) { | |||
|
|||
func openshiftSingleNodeClusterStatus(c client.Client) (bool, error) { | |||
infra := &configv1.Infrastructure{} | |||
configv1.AddToScheme(c.Scheme()) |
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.
Wondering if this should be added here: https://github.com/k8snetworkplumbingwg/sriov-network-operator/blob/master/main.go#L57
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 wasn't sure either. I figured since this is a code path for Openshift clusters only it would be best to keep it close to the one spot it's being used. Would you rather I move it to main.go?
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.
Maybe we can keep it here and move it later if needed?
@SchSeba wdyt?
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 think is better to move this to the main.go file to have all the scheme changes/configuration in one please
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.
Sounds good, moved it to main.go
f5163fa
to
0e34e53
Compare
Thanks for your PR,
To skip the vendors CIs use one of:
|
updated to attach scheme to client for infra call updated error message output to bubble up error from single node call Signed-off-by: ehila <[email protected]>
0e34e53
to
6063069
Compare
Thanks for your PR,
To skip the vendors CIs use one of:
|
/lgtm |
updated to attach scheme to client for infra call
updated error message output to bubble up error from single node call
Signed-off-by: ehila [email protected]