Skip to content

Commit

Permalink
Fix logic regarding create_uma_client_credentials_secret
Browse files Browse the repository at this point in the history
  • Loading branch information
rconway committed Feb 16, 2024
1 parent 09a41fb commit 5e9e5a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions workspace_api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,10 @@ async def create_workspace(
elif 400 <= response.status_code <= 511:
raise HTTPException(status_code=response.status_code)

create_uma_client_credentials_secret(workspace_name=workspace_name)

create_harbor_user(workspace_name=workspace_name)

if config.GLUU_INTEGRATION_ENABLED:
create_uma_client_credentials_secret(workspace_name=workspace_name)
register_workspace_api_gluu_protection(
authorization=authorization,
creation_data=data,
Expand Down Expand Up @@ -397,6 +396,8 @@ def create_uma_client_credentials_secret(workspace_name: str):
data=original_secret.data,
),
)
else:
logger.warning("Not creating uma client credentials secret - due to missing input values")


def wait_for_namespace_secret(workspace_name) -> V1Secret:
Expand Down

0 comments on commit 5e9e5a6

Please sign in to comment.