fix(push): correct inaccurate code comments

Signed-off-by: Ilya Kiselev <kis-ilya-a@yandex.ru>
pull/32009/head
Ilya Kiselev 2 months ago
parent 757d523460
commit 9dcc20ebd0

@ -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))
}

@ -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,

Loading…
Cancel
Save