mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-18 16:21:44 +02:00
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:
co-authored by
yxxhero
parent
85dbd5da9a
commit
a90252631b
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user