Fix OCI registry authentication with URL paths

Extract registry host from URL before login to support paths like quay.io/org

Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-10-11 11:10:07 +00:00
co-authored by yxxhero
parent 85dbd5da9a
commit a90252631b
3 changed files with 167 additions and 1 deletions
+2
View File
@@ -30,6 +30,7 @@ type DiffKey struct {
type Helm struct {
Charts []string
Repo []string
RegistryLoginHost string // Captures the registry host for OCI login
Releases []Release
Deleted []Release
Linted []Release
@@ -104,6 +105,7 @@ func (helm *Helm) UpdateRepo() error {
return nil
}
func (helm *Helm) RegistryLogin(name, username, password, caFile, certFile, keyFile string, skipTLSVerify bool) error {
helm.RegistryLoginHost = name
return nil
}
func (helm *Helm) SyncRelease(context helmexec.HelmContext, name, chart, namespace string, flags ...string) error {