diff --git a/pkg/state/state.go b/pkg/state/state.go index 9c8d2b90..0172c763 100644 --- a/pkg/state/state.go +++ b/pkg/state/state.go @@ -213,6 +213,7 @@ type RepositorySpec struct { KeyFile string `yaml:"keyFile,omitempty"` Username string `yaml:"username,omitempty"` Password string `yaml:"password,omitempty"` + RegistryConfig string `yaml:"registryConfig,omitempty"` Managed string `yaml:"managed,omitempty"` OCI bool `yaml:"oci,omitempty"` Verify bool `yaml:"verify,omitempty"` @@ -3679,6 +3680,9 @@ func (st *HelmState) getOCIChart(release *ReleaseSpec, tempDir string, helm helm if repo.Keyring != "" { flags = append(flags, "--keyring", repo.Keyring) } + if repo.RegistryConfig != "" { + flags = append(flags, "--registry-config", repo.RegistryConfig) + } } err := helm.ChartPull(qualifiedChartName, chartPath, flags...)