-
Notifications
You must be signed in to change notification settings - Fork 4.7k
oc project on kube #11120
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
oc project on kube #11120
Conversation
@deads2k are you going to close the |
I can if you want. I want both commands eventually. Don't really care how. |
@deads2k nah, I'm just asking because the |
@openshift/cli-review |
Would this partially address #10821? |
Yeah. |
Test added. @stevekuznetsov can we add |
me, err := client.Users().Get("~") | ||
|
||
// if we're talking to kube (or likely talking to kube), |
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.
nit: this comment seems a bit confusing
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.
nit: this comment seems a bit confusing
rewording suggestion? Removal?
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.
It makes sense to me. I'm curious what's confusing?
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.
Ah, I had read the comment as if the wording inside the parenthesis was redundant, or maybe accidentally left there after rephrasing the entire sentence, but it made more sense after reading this comment. Please ignore my first comment, it's fine the way it is
@@ -270,6 +263,12 @@ func (o *LoginOptions) gatherProjectInfo() error { | |||
} | |||
|
|||
projectsList, err := oClient.Projects().List(kapi.ListOptions{}) | |||
// if we're running on kube (or likely kube), just set it to "default" | |||
if kerrors.IsNotFound(err) { | |||
fmt.Fprintf(o.Out, "No ACL filtered namespaces available. Using \"default\". You switch projects with '%s project <projectname>':\n\n", o.CommandName) |
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.
"You can switch projects with..."
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.
"No ACL filtered namespaces available" - will a user have any idea what that means?
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.
"No ACL filtered namespaces available" - will a user have any idea what that means?
I struggled with phrasing. A kube user wouldn't recognized "projects" either. Say nothing about it maybe?
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.
Yeah, I would remove it if we can't find better wording.
A few nits, but LGTM |
You can append it to the list of tasks in |
@smarterclayton I plan to do this unless you shout. |
Hrm - I really do prefer for conformance to be a single suite binary. We've never really formally solved cmd.sh, so I am a tiny bit worried about that. |
I don't care about the name as much as I care about running it in a test job. |
[test] |
Yeah, I guess |
Will be extended to run tests against it in Origin
c6d1142
to
3ed47ea
Compare
comments addressed. test in |
LGTM |
3ed47ea
to
d00a6ef
Compare
Evaluated for origin test up to d00a6ef |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/9508/) |
[merge] |
Evaluated for origin merge up to d00a6ef |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/9534/) (Image: devenv-rhel7_5107) |
Make
oc project
work on kube, so I can avoid having to use thekubectl config
commands.