Skip to content

Commit

Permalink
fix: allow agents to use global oauth apps
Browse files Browse the repository at this point in the history
Signed-off-by: Donnie Adams <[email protected]>
  • Loading branch information
thedadams committed Oct 25, 2024
1 parent cfaf844 commit 2a641d3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/render/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ func Agent(ctx context.Context, db kclient.Client, agent *v1.Agent, oauthServerU
}

func setupOAuthApps(ctx context.Context, db kclient.Client, agent *v1.Agent, serverURL string) (extraEnv []string, _ error) {
if len(agent.Spec.Manifest.OAuthApps) == 0 {
return nil, nil
}

apps, err := oauthAppsByName(ctx, db, agent.Namespace)
if err != nil {
return nil, err
Expand Down

0 comments on commit 2a641d3

Please sign in to comment.