refactor(keycloak): creating k8s client

This commit is contained in:
Masaki Yatsu
2025-08-15 15:22:09 +09:00
parent 89500341d2
commit 51097b2258

View File

@@ -101,9 +101,13 @@ create-realm create-client-for-k8s='true':
export KEYCLOAK_ADMIN_PASSWORD=$(just admin-password) export KEYCLOAK_ADMIN_PASSWORD=$(just admin-password)
dotenvx run -f ../.env.local -- tsx ./scripts/create-realm.ts dotenvx run -f ../.env.local -- tsx ./scripts/create-realm.ts
if [ "{{ create-client-for-k8s }}" = "true" ]; then if [ "{{ create-client-for-k8s }}" = "true" ]; then
just create-client ${KEYCLOAK_REALM} ${K8S_OIDC_CLIENT_ID} "http://localhost:8000" just create-k8s-client
fi fi
# Create Keycloak client for Kubernetes OIDC authentication
create-k8s-client:
@just create-client ${KEYCLOAK_REALM} ${K8S_OIDC_CLIENT_ID} "http://localhost:8000,http://localhost:18000"
# Delete Keycloak realm # Delete Keycloak realm
delete-realm realm: delete-realm realm:
#!/bin/bash #!/bin/bash