-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
feat: support arg --token when talking to argo-server (#2027) #2089
Conversation
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.
Looks good so far. Should we have a e2e test?
@@ -42,6 +42,26 @@ func (s *CLISuite) TestToken() { | |||
}) | |||
} | |||
|
|||
func (s *CLISuite) TestTokenArg() { |
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.
nice
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.
I approve of this .
Codecov Report
@@ Coverage Diff @@
## master #2089 +/- ##
=========================================
+ Coverage 8.89% 8.89% +<.01%
=========================================
Files 61 61
Lines 34597 34597
=========================================
+ Hits 3077 3079 +2
+ Misses 31132 31131 -1
+ Partials 388 387 -1
Continue to review full report at Codecov.
|
@alexec - Do you mind reviewing it again since some changes happened since your approval. |
This reverts commit 0ecd00d68bafd83679c7162973af56e70b291cca.
@@ -40,13 +40,14 @@ func GetRestConfig(token string) (*restclient.Config, error) { | |||
// convert the REST config into a bearer token | |||
func GetBearerToken(in *restclient.Config) (string, error) { | |||
|
|||
if len(in.BearerToken) > 0 { |
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.
👍
Checklist:
"fix(controller): Updates such and such. Fixes #1234"
.