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

make 'oc status' compatible with bare kube #1947

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Dec 9, 2024

Fixes an annoyance that I don't think has a purpose for remaining.

Copy link
Contributor

openshift-ci bot commented Dec 9, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 9, 2024
Copy link
Member

@ardaguclu ardaguclu left a comment

Choose a reason for hiding this comment

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

Overall looks good to me and https://github.com/openshift/origin/blob/master/test/extended/cli/status.go likely catches any regression. Just dropped a comment.

@@ -265,7 +265,7 @@ func (d *ProjectStatusDescriber) Describe(namespace, name string) (string, error
if allNamespaces {
fmt.Fprintf(out, describeAllProjectsOnServer(f, d.Server))
} else {
fmt.Fprintf(out, describeProjectAndServer(f, project, d.Server))
Copy link
Member

Choose a reason for hiding this comment

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

describeProjectAndServer is not used by anyone. Can we also remove it as well?.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

describeProjectAndServer is not used by anyone. Can we also remove it as well?.

Tidied up along with the project client.

fakerouteclient "github.com/openshift/client-go/route/clientset/versioned/fake"
fakeroutev1client "github.com/openshift/client-go/route/clientset/versioned/typed/route/v1/fake"
osgraph "github.com/openshift/oc/pkg/helpers/graph/genericgraph"
corev1 "k8s.io/api/core/v1"
Copy link
Member

Choose a reason for hiding this comment

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

Nit: there's still a visible value in keeping k8s.io and github.com package imports separated

@ardaguclu
Copy link
Member

/test verify-deps

Copy link
Contributor

openshift-ci bot commented Dec 10, 2024

@deads2k: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-agnostic-ovn-cmd 5d62039 link true /test e2e-agnostic-ovn-cmd
ci/prow/e2e-aws-ovn-serial 5d62039 link true /test e2e-aws-ovn-serial
ci/prow/verify-deps 5d62039 link true /test verify-deps
ci/prow/okd-scos-e2e-aws-ovn 5d62039 link false /test okd-scos-e2e-aws-ovn

Full PR test history. Your PR dashboard.

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-sigs/prow repository. I understand the commands that are listed here.

@ardaguclu
Copy link
Member

It is nice to see that we are dropping a dependency (i.e. vendor/github.com/openshift/client-go/project/) and verify-deps is failing due to this. I think, we need go mod tidy/vendor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants