From b8e76eb3d11519078410a6e3015dafdb4d8c80ec Mon Sep 17 00:00:00 2001 From: "Victor M." Date: Thu, 21 Dec 2023 08:37:34 +0100 Subject: [PATCH] Fix client and typo --- .../providers/featureflags/localfeatureflags.go | 4 ++++ .../cloud.redhat.com/providers/web/resources_keycloak.go | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/controllers/cloud.redhat.com/providers/featureflags/localfeatureflags.go b/controllers/cloud.redhat.com/providers/featureflags/localfeatureflags.go index eae924113..81a881853 100644 --- a/controllers/cloud.redhat.com/providers/featureflags/localfeatureflags.go +++ b/controllers/cloud.redhat.com/providers/featureflags/localfeatureflags.go @@ -264,6 +264,10 @@ func makeLocalFeatureFlags(cache *rc.ObjectCache, o obj.ClowdObject, objMap prov Name: "KC_VIEWER_ROLES", Value: "viewer", }, + { + Name: "KC_CLIENT_SECRET", + Value: "notsosecret", + }, } envVars = provutils.AppendEnvVarsFromSecret(envVars, "featureflags-db", diff --git a/controllers/cloud.redhat.com/providers/web/resources_keycloak.go b/controllers/cloud.redhat.com/providers/web/resources_keycloak.go index 480b09c78..c8e865e7b 100644 --- a/controllers/cloud.redhat.com/providers/web/resources_keycloak.go +++ b/controllers/cloud.redhat.com/providers/web/resources_keycloak.go @@ -223,7 +223,7 @@ func makeKeycloakImportSecretRealm(cache *rc.ObjectCache, o obj.ClowdObject, pas return fmt.Errorf("could not read unleash-realm data: %w", err) } - unleashUsersData, err := os.ReadFile("./jsons/unleash-users.json") + unleashUsersData, err := os.ReadFile("./jsons/unleash-users-0.json") if err != nil { return fmt.Errorf("could not read unleash-users data: %w", err) } @@ -234,7 +234,7 @@ func makeKeycloakImportSecretRealm(cache *rc.ObjectCache, o obj.ClowdObject, pas importData.StringData["redhat-external-realm.json"] = string(redhatRealmDataString) importData.StringData["unleash-realm.json"] = string(unleashRealmData) - importData.StringData["unleash-users.json"] = string(unleashUsersData) + importData.StringData["unleash-users-0.json"] = string(unleashUsersData) return cache.Update(WebKeycloakImportSecret, importData) }