We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 067c1dc + 74e68b5 commit 8f43f26Copy full SHA for 8f43f26
pkg/internal/testing/controlplane/apiserver.go
@@ -414,10 +414,10 @@ func (s *APIServer) populateAPIServerCerts() error {
414
// Stop stops this process gracefully, waits for its termination, and cleans up
415
// the CertDir if necessary.
416
func (s *APIServer) Stop() error {
417
- if s.processState.DirNeedsCleaning {
418
- s.CertDir = "" // reset the directory if it was randomly allocated, so that we can safely restart
419
- }
420
if s.processState != nil {
+ if s.processState.DirNeedsCleaning {
+ s.CertDir = "" // reset the directory if it was randomly allocated, so that we can safely restart
+ }
421
if err := s.processState.Stop(); err != nil {
422
return err
423
}
0 commit comments