platform/v1-pod.go
Function execV1PodResource
has 94 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func execV1PodResource(k kubernetes.Interface, objdep *v1.Pod, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
name := "Pod"
client := k.CoreV1().Pods(namespace)
Function execV1PodResource
has 20 return statements (exceeds 4 allowed). Open
Open
func execV1PodResource(k kubernetes.Interface, objdep *v1.Pod, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
name := "Pod"
client := k.CoreV1().Pods(namespace)
Function execV1PodResource
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func execV1PodResource(k kubernetes.Interface, objdep *v1.Pod, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {