-
Notifications
You must be signed in to change notification settings - Fork 2
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
Multi coupon support #21
Conversation
…erent configuration
This introduces a breaking change to the config schema (previous values like
@marcelovilla is there a way to add a more detailed error message than the below in the scenario where a user has the "old" config schema value(s) set? I don't think this is necessary since there likely isn't much adoption of this extension outside of our own use cases (and we're still not on 1.0.0 semantic version anyway). Just asking in case there's an easy way to do this that you've encountered in similar situations before. Otherwise, I'd be good with just updating the README to mention this change.
|
Hey @kenafoster. Sorry for the late reply; I was out for two weeks and then I was catching up on other stuff.
I don't think there's a straightforward way of adding detailed information on the error message right now. I can update the README on my PR to highlight these changes. Would you be OK with that? |
@marcelovilla A note in the README sounds good to me. |
@kenafoster I just added a note on the README about the changes introduced here. Let me know if that makes sense |
Created a local branch off of this and opened a new PR #24 |
Description
This PR adds support for multiple coupons, so each can have independent configuration options. For example, having different coupons to add users to different keycloak groups.
Related Issue
Closes #14
Motivation and Context
We've been using this extension in training and tutorials where there's a clear benefit of having different coupons map to different groups to manage access. For example, you might have one coupon granting access to GPUs, while other coupon just grants access to regular instances. Or you might have yet another coupon which grants admin rights.
Having support for multiple coupons make it easy to handle these cases by assigning them to different keycloak groups and managing separate permissions for them.
How Has This Been Tested?
This has been tested by:
multi-coupon
branch:nebari-config.yaml
and create the required groups in keycloak if they do not exist already:/registration
and use the different coupons to create new accounts. If everything works as expected, you'll see the new users in keycloak and depending what coupon you used, you'll see they've been assigned to the corresponding groups.Screenshots (if appropriate):