-
Notifications
You must be signed in to change notification settings - Fork 54
add login, logout functionality for OpenShift cluster #39
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
Conversation
closes #31 |
f38e8f5
to
2339376
Compare
@Maxusmusti @atinsood @erikerlandson Re-did the authentication and login set up. Take a look and let me know if this is good to go. Thanks for the initial feedback :) |
2339376
to
49c7f79
Compare
@MichaelClifford yep, this looks 💯 , 3 questions
but all those are nitpicks, the first pass LGTM |
This is a good question, that I thought about it a bit and I think gets to a larger question: Would we want to support cases were OpenShift is not the target platform? If so, we can make it more generic. Otherwise, no matter how you login to the cluster you can always log out the same way, so no need to re-implement.
Sure, I can make it an abstract class. But what exactly would be the benefit of doing that for our use case?
Will that work in an interactive notebook environment if your work spans multiple cells? I'll look into it as an option for job submission workflows. I think that would be cool. But I don't think it would work for notebook/interactive workflows (but let me know if im wrong 😄 ) |
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 great, just needs a rebase (will bring in the format checking), and make to add docstrings/type hints to the new files/classes/functions
so I was thinking of a use case when you don't have direct access to the |
I think its more of a signal to external contributors going forward that they are supposed to implement their own authentication. |
I think you should be ok. we are already doing something liek this https://github.com/project-codeflare/codeflare-sdk/pull/39/files#diff-5706a96c5346dd54a22370211260411363c4ed41d798fddf240eb8983b1366eaR99 so I am assuming it will be simialr to that |
f43ba0c
to
611c5ae
Compare
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 great, no architectural suggestions or anything, just a couple minor nits
4dcf34f
to
5116117
Compare
5116117
to
bba82f8
Compare
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.
LGTM!
yeah I think its a fair point. lets go with what we have. |
Awesome. Thanks for the feedback all. 😃 |
This PR allows users of the SDK to login and out of an OpenShift cluster as part of their "cluster.up()" call by adding an Authentication object to their cluster config.
This includes a new file
auth
that contains a number of Authentication classes that can be used depending on the users specific authentication needs.