This repository has been archived by the owner on Mar 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #139 from scaleoutsystems/feature/STACKN-120
Feature/stackn 120
- Loading branch information
Showing
6 changed files
with
72 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from celery import shared_task | ||
# from .helpers import create_environment_image, create_helm_resources | ||
import modules.keycloak_lib as keylib | ||
from django.conf import settings | ||
|
||
@shared_task | ||
def create_keycloak_client_task(project_slug, username, repository): | ||
# create_environment_image(project, repository) | ||
# create_helm_resources(project, username, repository) | ||
# Create Keycloak client for project with default project role. | ||
# The creator of the project assumes all roles by default. | ||
print('Creating Keycloak resources.') | ||
HOST = settings.DOMAIN | ||
print('host: '+HOST) | ||
RELEASE_NAME = str(project_slug) | ||
print('release: '+RELEASE_NAME) | ||
URL = 'https://{}/{}/{}'.format(HOST, username, RELEASE_NAME) | ||
print(URL) | ||
|
||
keylib.keycloak_setup_base_client(URL, RELEASE_NAME, username, settings.PROJECT_ROLES, settings.PROJECT_ROLES) | ||
|
||
print('Done Keycloak.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters