{"record":{"id":"ea20f9980a3b18e7","repo":"kubernetes/kops","slug":"error-loading-ssh-item-q-v","errorCode":null,"errorMessage":"error loading SSH item %q: %v","messagePattern":"error loading SSH item %q: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/vfs_castore.go","lineNumber":331,"sourceCode":"\n\tfiles, err := p.ReadDir()\n\tif err != nil {\n\t\tif os.IsNotExist(err) {\n\t\t\treturn nil, nil\n\t\t}\n\t\treturn nil, err\n\t}\n\n\tvar items []*kops.SSHCredential\n\n\tfor _, f := range files {\n\t\tdata, err := f.ReadFile(ctx)\n\t\tif err != nil {\n\t\t\tif os.IsNotExist(err) {\n\t\t\t\tklog.V(2).Infof(\"Ignoring not-found issue reading %q\", f)\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\treturn nil, fmt.Errorf(\"error loading SSH item %q: %v\", f, err)\n\t\t}\n\n\t\titem := &kops.SSHCredential{}\n\t\titem.Name = \"admin\"\n\t\titem.Spec.PublicKey = strings.TrimSpace(string(data))\n\t\titems = append(items, item)\n\t}\n\n\treturn items, nil\n}\n\nfunc (c *VFSCAStore) DeleteSSHCredential() error {\n\tctx := context.TODO()\n\n\tp := c.basedir.Join(\"ssh\", \"public\", \"admin\")\n\n\tfiles, err := p.ReadDir()\n\tif err != nil {","sourceCodeStart":313,"sourceCodeEnd":349,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/vfs_castore.go#L313-L349","documentation":"Error \"error loading SSH item %q: %v\" thrown in kubernetes/kops.","triggerScenarios":"Thrown at upup/pkg/fi/vfs_castore.go:331 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"}