k8s/stset/get.go
Function NewGetter
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
logger lager.Logger,
statefulSetGetter StatefulSetByLRPIdentifierGetter,
podGetter PodGetter,
eventGetter EventGetter,
statefulsetToLrpConverter StatefulSetToLRPConverter,
Method Getter.GetInstances
has 5 return statements (exceeds 4 allowed). Open
Open
func (g *Getter) GetInstances(ctx context.Context, identifier api.LRPIdentifier) ([]*api.Instance, error) {
logger := g.logger.Session("get-instance", lager.Data{"guid": identifier.GUID, "version": identifier.Version})
if _, err := g.getLRP(ctx, logger, identifier); errors.Is(err, eirini.ErrNotFound) {
return nil, err
}