k8s/informers/event/crash_event_generator.go
Function generateReport
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
pod *v1.Pod,
reason string,
exitStatus int,
exitDescription string,
crashTimestamp int64,
Method DefaultCrashEventGenerator.Generate
has 6 return statements (exceeds 4 allowed). Open
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],