{"record":{"id":"e6ef01efbc0da609","repo":"kubernetes/kops","slug":"unable-to-read-bundle-q-v","errorCode":null,"errorMessage":"unable to read bundle %q: %v","messagePattern":"unable to read bundle %q: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/vfs_keystorereader.go","lineNumber":88,"sourceCode":"\n\tif gvk == nil {\n\t\treturn nil, false, fmt.Errorf(\"object did not have GroupVersionKind: %q\", keyset.Name)\n\t}\n\n\treturn keyset, gvk.Version != keysetFormatLatest, nil\n}\n\n// loadKeyset loads a Keyset from the path.\n// Returns (nil, nil) if the file is not found\n// Bundles avoid the need for a list-files permission, which can be tricky on e.g. GCE\nfunc (c *VFSKeystoreReader) loadKeyset(ctx context.Context, p vfs.Path) (*Keyset, error) {\n\tbundlePath := p.Join(\"keyset.yaml\")\n\tdata, err := bundlePath.ReadFile(ctx)\n\tif err != nil {\n\t\tif os.IsNotExist(err) {\n\t\t\treturn nil, nil\n\t\t}\n\t\treturn nil, fmt.Errorf(\"unable to read bundle %q: %v\", p, err)\n\t}\n\n\to, legacyFormat, err := c.parseKeysetYaml(data)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"error parsing bundle %q: %v\", p, err)\n\t}\n\n\tkeyset, err := parseKeyset(o)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"error mapping bundle %q: %v\", p, err)\n\t}\n\n\tkeyset.LegacyFormat = legacyFormat\n\treturn keyset, nil\n}\n\nvar legacyKeysetMappings = map[string]string{\n\t// The strange name is because kOps prior to 1.19 used the api-server TLS key for this.","sourceCodeStart":70,"sourceCodeEnd":106,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/vfs_keystorereader.go#L70-L106","documentation":"Error \"unable to read bundle %q: %v\" thrown in kubernetes/kops.","triggerScenarios":"Thrown at upup/pkg/fi/vfs_keystorereader.go:88 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"}