{"record":{"id":"460d0aaf7c23f45e","repo":"kubernetes/kops","slug":"unhandled-kind-for-q-v","errorCode":null,"errorMessage":"Unhandled kind for %q: %v","messagePattern":"Unhandled kind for %q: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/topological_sort.go","lineNumber":148,"sourceCode":"\t\t\tif hd, ok := intf.(HasDependencies[T]); ok {\n\t\t\t\tdeps := hd.GetDependencies(tasks)\n\t\t\t\tdependencies = append(dependencies, deps...)\n\t\t\t\t// Add the direct dependency if it's a task as well\n\t\t\t\tif dep, ok := intf.(Task[T]); ok {\n\t\t\t\t\tdependencies = append(dependencies, dep)\n\t\t\t\t}\n\t\t\t} else if dep, ok := intf.(Task[T]); ok {\n\t\t\t\tdependencies = append(dependencies, dep)\n\t\t\t} else if _, ok := intf.(Resource); ok {\n\t\t\t\t// Ignore: not a dependency, unless we explicitly implement HasDependencies (e.g. TaskDependentResource)\n\t\t\t} else {\n\t\t\t\treturn fmt.Errorf(\"Unhandled type for %q: %T\", path, v.Interface())\n\t\t\t}\n\t\t\treturn reflectutils.SkipReflection\n\n\t\tdefault:\n\t\t\tklog.Infof(\"Unhandled kind for %q: %T\", path, v.Interface())\n\t\t\treturn fmt.Errorf(\"Unhandled kind for %q: %v\", path, v.Kind())\n\t\t}\n\t}\n\n\terr := reflectutils.ReflectRecursive(v, visitor, &reflectutils.ReflectOptions{DeprecatedDoubleVisit: true})\n\tif err != nil {\n\t\tklog.Fatalf(\"unexpected error finding dependencies %v\", err)\n\t}\n\n\treturn dependencies\n}\n","sourceCodeStart":130,"sourceCodeEnd":159,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/topological_sort.go#L130-L159","documentation":"Error \"Unhandled kind for %q: %v\" thrown in kubernetes/kops.","triggerScenarios":"Thrown at upup/pkg/fi/topological_sort.go:148 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T07:17:12.445Z"}