fix cluster-info dump error#66652
Conversation
|
/assign @juanvallejo |
|
@juanvallejo @deads2k PTAL 😸 |
|
/ok-to-test |
|
/test pull-kubernetes-integration |
|
/test pull-kubernetes-e2e-gce-100-performance |
There was a problem hiding this comment.
We should be using our printing stack, not circumventing it via special-cases in individual commands.
The overall problem appears to be that this command is sending internal objects to the printer.
These objects do not have a defined GroupVersionKind, so the printer refuses to print them.
To allow this command to work with the printer, we can re-work this command to work with external versions of objects: https://gist.github.com/juanvallejo/031d20ab40488c98c81b9928c5a5e753 (make sure you are up to date with latest master before applying)
There was a problem hiding this comment.
@juanvallejo Thank you for your guidance. Work is done.
|
Error while initializing connection to Kubernetes apiserver. This most likely means that the cluster is misconfigured (e.g., it has invalid apiserver certificates or service accounts configuration) or the --apiserver-host param points to a server that does not exist. Reason: Get https://10.96.0.1:443/version: dial tcp 10.96.0.1:443: i/o timeout |
2d79d30 to
cf852c7
Compare
|
@charrywanganthony Thanks /lgtm |
soltysh
left a comment
There was a problem hiding this comment.
Since you touched it, please update the client to use apps/v1
There was a problem hiding this comment.
DaemonSet, ReplicaSet and Deployment are part of apps/v1 since 1.10 at least. It's about time we switch commands to use the GA version.
There was a problem hiding this comment.
@charrywanganthony You'd need to switch out extensionsv1client for appsv1client "github.com/openshift/client-go/apps/clientset/versioned/typed/apps/v1"
There was a problem hiding this comment.
@juanvallejo WIP but openshift/client-go seems only have function for deployment func (c *AppsV1Client) DeploymentConfigs(namespace string) did i miss something?
There was a problem hiding this comment.
@charrywanganthony sorry about that, the actual import path for the appsv1 client is "k8s.io/client-go/kubernetes/typed/apps/v1"
cf852c7 to
de5bfc8
Compare
54c116f to
8aa0e07
Compare
8aa0e07 to
816ba43
Compare
816ba43 to
d865266
Compare
|
/lgtm |
There was a problem hiding this comment.
Similarly AppsClient is the preferred name.
d865266 to
6ca446c
Compare
|
@juanvallejo @soltysh done. |
|
/lgtm /test pull-kubernetes-e2e-kops-aws |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: charrywanganthony, juanvallejo, soltysh The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test all [submit-queue is verifying that this PR is safe to merge] |
|
/test pull-kubernetes-e2e-kops-aws |
|
Automatic merge from submit-queue (batch tested with PRs 66652, 67034). If you want to cherry-pick this change to another branch, please follow the instructions here. |
|
I'm not sure how this one got skipped! very important feature in case of sos report.! don't we have any proper testcases to cover this scenario? |
|
can someone help to cherrypick this to 1.11 release? |
Which issue(s) this PR fixes :
Fixes #65221
Release note: