{"record":{"id":"86493520c9506679","repo":"helm/helm","slug":"missing-registry-client-w-864935","errorCode":null,"errorMessage":"missing registry client: %w","messagePattern":"missing registry client: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/cmd/upgrade.go","lineNumber":112,"sourceCode":"\t\tShort: \"upgrade a release\",\n\t\tLong:  upgradeDesc,\n\t\tArgs:  require.ExactArgs(2),\n\t\tValidArgsFunction: func(_ *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {\n\t\t\tif len(args) == 0 {\n\t\t\t\treturn compListReleases(toComplete, args, cfg)\n\t\t\t}\n\t\t\tif len(args) == 1 {\n\t\t\t\treturn compListCharts(toComplete, true)\n\t\t\t}\n\t\t\treturn noMoreArgsComp()\n\t\t},\n\t\tRunE: func(cmd *cobra.Command, args []string) error {\n\t\t\tclient.Namespace = settings.Namespace()\n\n\t\t\tregistryClient, err := newRegistryClient(out, client.CertFile, client.KeyFile, client.CaFile,\n\t\t\t\tclient.InsecureSkipTLSVerify, client.PlainHTTP, client.Username, client.Password)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"missing registry client: %w\", err)\n\t\t\t}\n\t\t\tclient.SetRegistryClient(registryClient)\n\n\t\t\tdryRunStrategy, err := cmdGetDryRunFlagStrategy(cmd, false)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tclient.DryRunStrategy = dryRunStrategy\n\n\t\t\t// Fixes #7002 - Support reading values from STDIN for `upgrade` command\n\t\t\t// Must load values AFTER determining if we have to call install so that values loaded from stdin are not read twice\n\t\t\tif client.Install {\n\t\t\t\t// If a release does not exist, install it.\n\t\t\t\thistClient := action.NewHistory(cfg)\n\t\t\t\thistClient.Max = 1\n\t\t\t\tversions, err := histClient.Run(args[0])\n\t\t\t\tif errors.Is(err, driver.ErrReleaseNotFound) || isReleaseUninstalled(versions) {\n\t\t\t\t\t// Only print this to stdout for table output","sourceCodeStart":94,"sourceCodeEnd":130,"githubUrl":"https://github.com/helm/helm/blob/2a29f1770b62844b27197d2507377361d45ad7c0/pkg/cmd/upgrade.go#L94-L130","documentation":"Error \"missing registry client: %w\" thrown in helm/helm.","triggerScenarios":"Thrown at pkg/cmd/upgrade.go:112 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":"2a29f1770b62844b27197d2507377361d45ad7c0","analyzedAt":"2026-08-15T22:02:47.490Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}