Repository navigation
make osc login more userfriendly - #1869
Conversation
|
Remember that |
Do we want it to? Why would we have two different ways of specifying the value? |
|
We don't want to advertise it, but the flag will still be there anyway (and is shown if you do |
|
Not sure what |
Ok. If both are set, would you prefer an error or one winning? |
|
The same approach we use in other commands that support both arg and flag (I didn't check, but for example what happens if you provide a git repo to |
There was a problem hiding this comment.
certificate-authority is CAFile
There was a problem hiding this comment.
Nevermind, I got what you are doing.
There was a problem hiding this comment.
Nope, that was a bug. Just a consistent one that I didn't catch because I didn't authenticate using client certs.
|
You may have fixed #1770 sir, please give it a try. |
|
1edc7de to
43a533b
Compare
|
comments addressed. |
Seems to. Added them to the description. |
|
Flags are higher priority than args. If they conflict, error
|
43a533b to
067d434
Compare
|
added error on conflict. |
|
LGTM |
067d434 to
fb5ee26
Compare
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_openshift3/1663/) (Image: devenv-fedora_1348) |
|
You need to rebase |
|
Merge cancelled. |
fb5ee26 to
cc3fb8d
Compare
|
@smarterclayton rebased and fixed up printlns. Do the other responses make sense? |
|
LGTM, squash. |
cc3fb8d to
8b4ab0a
Compare
|
squashed. [merge] |
8b4ab0a to
f62a1f2
Compare
|
[merge] ? |
|
Evaluated for origin up to f62a1f2 |
Merged by openshift-bot
Fixes #1854.
Fixes #1770.
Fixes bug https://bugzilla.redhat.com/show_bug.cgi?id=1208783.
This changes
osc loginto accept a server URL as an argument if it is provided. It also:flagtype.Addr, soosc login localhostis valid.osc login -u adminswitches my identity toadminif I have a user stanza associated with this server that gives back the useradmin.osc loginno longer attempts to use the current-context of the kubeconfig to see if you are already logged in.@fabianofranz review?
@smarterclayton per your issue.