{"record":{"id":"1c8be1b40456430b","repo":"kubernetes/kops","slug":"no-instancegroup-objects-found-1c8be1","errorCode":null,"errorMessage":"no InstanceGroup objects found","messagePattern":"no InstanceGroup objects found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/kops/validate_cluster.go","lineNumber":162,"sourceCode":"\t}\n\n\tlist, err := clientSet.InstanceGroupsFor(cluster).List(ctx, metav1.ListOptions{})\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"cannot get InstanceGroups for %q: %v\", cluster.ObjectMeta.Name, err)\n\t}\n\n\tif options.output == OutputTable {\n\t\tfmt.Fprintf(out, \"Validating cluster %v\\n\\n\", cluster.ObjectMeta.Name)\n\t}\n\n\tvar instanceGroups []kopsapi.InstanceGroup\n\tfor _, ig := range list.Items {\n\t\tinstanceGroups = append(instanceGroups, ig)\n\t\tklog.V(2).Infof(\"instance group: %#v\\n\\n\", ig.Spec)\n\t}\n\n\tif len(instanceGroups) == 0 {\n\t\treturn nil, fmt.Errorf(\"no InstanceGroup objects found\")\n\t}\n\n\trestConfig, err := f.RESTConfig(ctx, cluster, options.CreateKubecfgOptions)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"getting rest config: %w\", err)\n\t}\n\n\thttpClient, err := f.HTTPClient(restConfig)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"getting http client: %w\", err)\n\t}\n\n\tk8sClient, err := kubernetes.NewForConfigAndClient(restConfig, httpClient)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"building kubernetes client: %w\", err)\n\t}\n\n\ttimeout := time.Now().Add(options.wait)","sourceCodeStart":144,"sourceCodeEnd":180,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/cmd/kops/validate_cluster.go#L144-L180","documentation":"Guard in RunValidateCluster: the cluster exists but has zero InstanceGroup objects in the state store. There is nothing to validate node-wise, which usually means the cluster spec is incomplete or the wrong state store is being read.","triggerScenarios":"Thrown at cmd/kops/validate_cluster.go:162 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run kops create instancegroup to add groups","Check KOPS_STATE_STORE points to the right bucket","Re-create the cluster spec with kops create cluster"],"exampleFix":null,"handlingStrategy":"validation","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"}