From 9dcc20ebd01f15089ea3686f5a4db594092ec14f Mon Sep 17 00:00:00 2001 From: Ilya Kiselev Date: Tue, 28 Apr 2026 16:30:21 +0300 Subject: [PATCH] fix(push): correct inaccurate code comments Signed-off-by: Ilya Kiselev --- pkg/action/push.go | 2 +- pkg/cmd/root.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/action/push.go b/pkg/action/push.go index 53343af1b..b60da305f 100644 --- a/pkg/action/push.go +++ b/pkg/action/push.go @@ -102,7 +102,7 @@ func (p *Push) Run(chartRef string, remote string) (*registry.PushResult, error) if p.cfg == nil { return nil, errors.New("missing action configuration: use WithPushConfig when constructing Push") } - // Don't use the default registry client if tls options are set. + // Use the configured registry client for OCI remotes. c.Options = append(c.Options, pusher.WithRegistryClient(p.cfg.RegistryClient)) } diff --git a/pkg/cmd/root.go b/pkg/cmd/root.go index ef1905855..f8eacd7e3 100644 --- a/pkg/cmd/root.go +++ b/pkg/cmd/root.go @@ -402,7 +402,7 @@ func checkForExpiredRepos(repofile string) { // newRegistryClient creates a registry client. The optional w parameter // overrides where the registry client writes its output (default: os.Stderr). -// Pass io.Discard to suppress the client's built-in push/pull summary lines. +// Pass a filtering writer to control registry client output; pass io.Discard to suppress all output. func newRegistryClient( certFile, keyFile, caFile string, insecureSkipTLSVerify, plainHTTP bool, username, password string, w ...io.Writer,