-
Notifications
You must be signed in to change notification settings - Fork 1.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
Make Keycloak Admin configurable #9490
Conversation
@@ -24,6 +21,12 @@ cat /scripts/che-realm.json.erb | \ | |||
sed -e "s@<%= scope\.lookupvar('che::che_server_url') %>@${PROTOCOL}://che-${NAMESPACE}.${ROUTING_SUFFIX}@" \ | |||
> /scripts/che-realm.json | |||
|
|||
echo "Creating Admin user..." | |||
|
|||
if [ $KEYCLOAK_USER ] && [ $KEYCLOAK_PASSWORD ]; 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.
! -z
?
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.
Basically reused this https://github.com/jboss-dockerfiles/keycloak/blob/3.3.0.CR2-3/server/docker-entrypoint.sh
In fact, even a check isn't really required since ENVS are set in deploymentConfig.
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, but I wonder why we haven't used command line params instead of those files beforehand.
displayName: Keycloak admin password | ||
description: Default Keycloak admin password. Can be changed after login | ||
value: "admin" | ||
value: http |
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 like this line is a typo
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.
Fixed. Thanks
@@ -140,10 +140,20 @@ objects: | |||
storage: 1Gi | |||
|
|||
parameters: | |||
|
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.
Do we need this empty line?
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.
Fixed. Thanks
* Make Keycloak Admin configurable * Make Keycloak Admin configurable * Fix typos
What does this PR do?
Makes Keycloak admin user name and password configurable
What issues does this PR fix or reference?
#9489