Fix up some irrelevant comments

Signed-off-by: Daniel Fox <danudey@me.com>
pull/32349/head
Daniel Fox 3 weeks ago
parent d2177125f4
commit 65014402b1
No known key found for this signature in database

@ -89,9 +89,7 @@ func (pusher *OCIPusher) push(chartRef, href string) error {
// Build the OCI reference for the chart. When --oci-normalize-version is
// set (pusher.opts.ociNormalizeVersion) the tag is the canonical semver
// form of the chart version; otherwise it is the raw chart version. This
// flag is a separate concept from the registry client's own "strict mode"
// (relaxed below).
// form of the chart version; otherwise it is the raw chart version.
ref, relaxStrictMode, err := buildOCIReference(href, meta.Metadata.Name, meta.Metadata.Version, pusher.opts.ociNormalizeVersion)
if err != nil {
return err
@ -99,8 +97,7 @@ func (pusher *OCIPusher) push(chartRef, href string) error {
// The registry client's strict mode asserts that the tag equals the raw
// chart version. Once the version has been canonicalized the tag no longer
// matches, so that assertion must be disabled. (This is unrelated to the
// --oci-normalize-version flag despite the similar "strict" wording.)
// matches, so that assertion must be disabled.
if relaxStrictMode {
pushOpts = append(pushOpts, registry.PushOptStrictMode(false))
}

Loading…
Cancel
Save