Skip to content

Commit 267e056

Browse files
committed
Panic in APIServer.Stop when Authn == nil
1 parent f035121 commit 267e056

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/internal/testing/controlplane/apiserver.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,10 @@ func (s *APIServer) Stop() error {
421421
return err
422422
}
423423
}
424-
return s.Authn.Stop()
424+
if s.Authn != nil {
425+
return s.Authn.Stop()
426+
}
427+
return nil
425428
}
426429

427430
// APIServerDefaultArgs exposes the default args for the APIServer so that you

0 commit comments

Comments
 (0)