Skip to content

Commit

Permalink
fix(api-server): Refresh correctly server when OIDC config changes
Browse files Browse the repository at this point in the history
Signed-off-by: OpenGuidou <guillaume.doussin@gmail.com>
  • Loading branch information
OpenGuidou committed Oct 15, 2024
1 parent 195de1a commit 35ac259
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/argocd-server/commands/argocd_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,11 @@ func NewCommand() *cobra.Command {
stats.RegisterStackDumper()
stats.StartStatsTicker(10 * time.Minute)
stats.RegisterHeapDumper("memprofile")
argocd := server.NewServer(ctx, argoCDOpts, appsetOpts)
argocd.Init(ctx)
lns, err := argocd.Listen()
errors.CheckError(err)
for {
argocd := server.NewServer(ctx, argoCDOpts, appsetOpts)
argocd.Init(ctx)
lns, err := argocd.Listen()
errors.CheckError(err)
var closer func()
ctx, cancel := context.WithCancel(ctx)
if otlpAddress != "" {
Expand Down
1 change: 1 addition & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ func (a *ArgoCDServer) Run(ctx context.Context, listeners *Listeners) {

a.stopCh = make(chan struct{})
<-a.stopCh
listeners.Close()
}

func (a *ArgoCDServer) Initialized() bool {
Expand Down

0 comments on commit 35ac259

Please sign in to comment.