cloudfoundry-incubator/eirini

View on GitHub
k8s/informers/event/crash_event_generator.go

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Function generateReport has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

    pod *v1.Pod,
    reason string,
    exitStatus int,
    exitDescription string,
    crashTimestamp int64,
Severity: Minor
Found in k8s/informers/event/crash_event_generator.go - About 45 mins to fix

    Method DefaultCrashEventGenerator.Generate has 6 return statements (exceeds 4 allowed).
    Open

    func (g DefaultCrashEventGenerator) Generate(ctx context.Context, pod *v1.Pod, logger lager.Logger) (events.CrashEvent, bool) {
        logger = logger.Session("generate-crash-event",
            lager.Data{
                "pod-name": pod.Name,
                "guid":     pod.Annotations[stset.AnnotationProcessGUID],
    Severity: Major
    Found in k8s/informers/event/crash_event_generator.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status