-
Notifications
You must be signed in to change notification settings - Fork 40k
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
add flag for enabling RBAC on local-up-cluster #34619
Conversation
@@ -285,6 +285,10 @@ function start_apiserver { | |||
if [[ -n "${ALLOW_ANY_TOKEN:-}" ]]; then | |||
anytoken_arg="--insecure-allow-any-token " | |||
fi | |||
authorizer_arg="" | |||
if [[ -n "${ENABLE_RBAC:-}" ]]; then |
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 would have expected that if ENABLE_RBAC
is "false"
then we wouldn't use this.
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 would have expected that if ENABLE_RBAC is "false" then we wouldn't use this.
The other condition checks in the same method don't make the distinction. Do you feel strongly?
@pweil- this works, I've removed |
LGTM |
Automatic merge from submit-queue |
Enables cases like
ALLOW_ANY_TOKEN=true ENABLE_RBAC=true hack/local-up-cluster.sh
to startup an api server so you can test RBAC against it.@pweil- You can try this using
oc login localhost:6443 --token=username/group1,group2,system:masters
. Then you should have full rights. You can useoc login --token=username
orkubectl create -f - --token=otheruser/othergroup
to simulate other users.This change is