Skip to content

Commit

Permalink
Merge pull request #4327 from makhov/external-etcd-shutdown
Browse files Browse the repository at this point in the history
Fixed Stop() for external etcd
  • Loading branch information
makhov authored Apr 23, 2024
2 parents b887f84 + 873cb5a commit 8b89fe7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/component/controller/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ func (e *Etcd) Start(ctx context.Context) error {

// Stop stops etcd
func (e *Etcd) Stop() error {
if e.Config.IsExternalClusterUsed() {
return nil
}

return e.supervisor.Stop()
}

Expand Down

0 comments on commit 8b89fe7

Please sign in to comment.