cloudfoundry-incubator/eirini

View on GitHub
k8s/utils/pod_state.go

Summary

Maintainability
A
50 mins
Test Coverage
A
100%

Function GetPodState has 8 return statements (exceeds 4 allowed).
Open

func GetPodState(pod corev1.Pod) string {
    if len(pod.Status.ContainerStatuses) == 0 || pod.Status.Phase == corev1.PodUnknown {
        return api.UnknownState
    }

Severity: Major
Found in k8s/utils/pod_state.go - About 50 mins to fix

    There are no issues that match your filters.

    Category
    Status