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

Add support for -A variant of --all-namespaces #356

Merged
merged 2 commits into from
Aug 9, 2019

Conversation

duglin
Copy link
Contributor

@duglin duglin commented Aug 9, 2019

-A is my newest favorite kubectl flag, it's so much easier/faster to type
than --all-namespaces. kn users should benefit from it too!

Signed-off-by: Doug Davis [email protected]
/lint

Release Note

The kubectl `-A` variant of the `--all-namespaces` flag is now supported.

-A is my newest favorite kubectl flag, it's so much easier/faster to type
than --all-namespaces. kn users should benefit from it too!

Signed-off-by: Doug Davis <[email protected]>
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Aug 9, 2019
Copy link
Contributor

@knative-prow-robot knative-prow-robot left a comment

Choose a reason for hiding this comment

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

@duglin: 0 warnings.

In response to this:

-A is my newest favorite kubectl flag, it's so much easier/faster to type
than --all-namespaces. kn users should benefit from it too!

Signed-off-by: Doug Davis [email protected]
/lint

Release Note

The kubectl `-A` variant of the `--all-namespaces` flag is now supported.

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.

@knative-prow-robot knative-prow-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 9, 2019
@@ -95,6 +107,18 @@ func TestGetNamespaceDefaultAllNamespacesUnset(t *testing.T) {
if actualNamespace != expectedNamespace {
t.Fatalf("Incorrect namespace retrieved: %v, expected: %v", actualNamespace, expectedNamespace)
}

// Now do it again using -A instead
testCmd.SetArgs([]string{"-A"})
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we make those tests in a loop like in

for _, arg := range []string { "--all-namespaces", "-A" } {
   ....

}

This would avoid copy & paste code. Same for the other test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Signed-off-by: Doug Davis <[email protected]>
Copy link
Contributor

@rhuss rhuss left a comment

Choose a reason for hiding this comment

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

👍
/ok-to-test
/lgtm
/approve

@knative-prow-robot knative-prow-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. lgtm Indicates that a PR is ready to be merged. labels Aug 9, 2019
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: duglin, rhuss

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

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 9, 2019
@knative-prow-robot knative-prow-robot merged commit 74b3e10 into knative:master Aug 9, 2019
@knative-prow-robot
Copy link
Contributor

@duglin: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-knative-client-integration-tests 350e5e5 link /test pull-knative-client-integration-tests

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

@duglin duglin deleted the addA branch August 15, 2019 19:44
coryrc pushed a commit to coryrc/client that referenced this pull request May 14, 2020
* Also update E2E test return value on failures

Don't rely on "failed" being the default/current state.

Bonus: factor out the return code workaround in a separate function.

* Document function
dsimansk pushed a commit to dsimansk/client that referenced this pull request May 28, 2020
…ive#356)

- First run serving e2e specific tests
 - teardown
 - Setup eventing nightly and run eventing e2e specific tests
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. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants