Skip to content

Commit

Permalink
get keycloak public hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
Victoremepunto committed Jan 2, 2024
1 parent d1e4deb commit a34d25b
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,9 @@ func (ff *localFeatureFlagsProvider) Provide(_ *crd.ClowdApp) error {

func makeLocalFeatureFlags(cache *rc.ObjectCache, o obj.ClowdObject, objMap providers.ObjectMap, _ bool, nodePort bool) {

Check failure on line 212 in controllers/cloud.redhat.com/providers/featureflags/localfeatureflags.go

View workflow job for this annotation

GitHub Actions / Lint

unused-parameter: parameter 'cache' seems to be unused, consider removing or renaming it as _ (revive)
nn := providers.GetNamespacedName(o, "featureflags")

//keycloakName := providers.GetNamespacedName(o, "")
keycloakSecret := core.Secret{}
cache.Get(web.WebKeycloakSecret, &keycloakSecret)

dd := objMap[LocalFFDeployment].(*apps.Deployment)
svc := objMap[LocalFFService].(*core.Service)

environment := o.(*crd.ClowdEnvironment)
labels := o.GetLabels()
labels["env-app"] = nn.Name
labels["service"] = "featureflags"
Expand All @@ -242,7 +237,7 @@ func makeLocalFeatureFlags(cache *rc.ObjectCache, o obj.ClowdObject, objMap prov
},
{
Name: "KC_HOST",
Value: fmt.Sprintf("http://%s-%s.%s.svc:8080", o.GetClowdName(), "keycloak", o.GetClowdNamespace()),
Value: web.GetAuthHostname(environment.Status.Hostname),
},
{
Name: "KC_REALM",
Expand Down

0 comments on commit a34d25b

Please sign in to comment.