cloudfoundry-incubator/eirini

View on GitHub
k8s/stset/stop.go

Summary

Maintainability
A
35 mins
Test Coverage
A
100%

Method Stopper.StopInstance has 5 return statements (exceeds 4 allowed).
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) {
Severity: Major
Found in k8s/stset/stop.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status