Skip to content

Commit

Permalink
fix oidc resource
Browse files Browse the repository at this point in the history
  • Loading branch information
szeort committed Sep 27, 2024
1 parent a28aee6 commit e182927
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 e182927

Please sign in to comment.