Skip to content

Commit

Permalink
Merge pull request #69 from kyma-project/fix/oidc
Browse files Browse the repository at this point in the history
fix oidc resource
  • Loading branch information
szeort authored Sep 27, 2024
2 parents a28aee6 + e182927 commit 827d89d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -243,3 +243,9 @@ rules:
- dockerregistries
verbs:
- "*"
- apiGroups:
- authentication.gardener.cloud
resources:
- "*"
verbs:
- "*"
6 changes: 5 additions & 1 deletion controllers/cfapi_controller_rendered_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,10 +478,14 @@ func (r *CFAPIReconciler) createOIDCConfig(ctx context.Context, cfAPI *v1alpha1.
if r.crdExists(ctx, "OpenIDConnect") {
logger.Info("OIDC CR exists, create CR")

var uaaUrl = cfAPI.Spec.UAA
if uaaUrl == "" {
uaaUrl = defaultUaaUrl
}
vals := struct {
UAA string
}{
UAA: cfAPI.Spec.UAA,
UAA: uaaUrl,
}

t1 := template.New("oidcUAA")
Expand Down

0 comments on commit 827d89d

Please sign in to comment.