k8s/stset/stop.go
Method Stopper.StopInstance
has 5 return statements (exceeds 4 allowed). Open
Open
func (s *Stopper) StopInstance(ctx context.Context, identifier api.LRPIdentifier, index uint) error {
logger := s.logger.Session("stopInstance", lager.Data{"guid": identifier.GUID, "version": identifier.Version, "index": index})
statefulset, err := s.getStatefulSet(ctx, identifier)
if errors.Is(err, eirini.ErrNotFound) {