Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam-D-Lewis committed Jan 21, 2025
1 parent 234baa2 commit d609271
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ locals {
userscheduler_nodeselector_value = var.general-node-group.value
}


resource "kubernetes_secret" "jhub_apps_secrets" {
metadata {
name = local.jhub_apps_secrets_name
Expand All @@ -39,14 +38,15 @@ resource "kubernetes_secret" "jhub_apps_secrets" {


resource "keycloak_user" "jhub_apps_service_account" {
count = var.jhub-apps-enabled ? 1 : 0
realm_id = var.realm_id
username = "jhub-apps-sa"
# email = "jhub-apps-sa@${var.external-url}"
enabled = false # not sure if they need to be enabled, TODO: check
username = "service-account-jhub-apps"
enabled = false
}


resource "keycloak_user_roles" "allow_app_sharing_role" {
resource "keycloak_user_roles" "jhub_apps_sa_allow_app_sharing_role" {
count = var.jhub-apps-enabled ? 1 : 0
realm_id = var.realm_id
user_id = keycloak_user.jhub_apps_service_account.id
role_ids = [
Expand Down

0 comments on commit d609271

Please sign in to comment.