openshift-dd-ext icon indicating copy to clipboard operation
openshift-dd-ext copied to clipboard

Check if user is logged into cluster before deploying

Open fbricon opened this issue 3 years ago • 3 comments

Proposal to fix #17

The alert box now has the warning style if there's a validation error.

Screenshot 2022-07-07 at 17 10 40

fbricon avatar Jul 07 '22 15:07 fbricon

Session can still expire in the middle of a deployment but this change is still pretty useful.

However I'd like to provide an easy path to getting a new token and login. Ideas are welcome.

fbricon avatar Jul 07 '22 15:07 fbricon

Took another look at this. Basically, I'd like to get the token url similarly to oc, which discovers it from the server url:

  • https://github.com/openshift/oc/blob/33f8aed30246e726258c51be27c21c60a2b005f4/pkg/helpers/tokencmd/request_token.go#L152
  • https://github.com/openshift/oc/blob/33f8aed30246e726258c51be27c21c60a2b005f4/pkg/helpers/tokencmd/request_token.go#L247

fbricon avatar Aug 01 '22 16:08 fbricon

Now adding button to open token url for easier login

Screenshot 2022-08-02 at 19 09 36 Screenshot 2022-08-02 at 19 11 02

fbricon avatar Aug 02 '22 17:08 fbricon