feat: add support for OCI auth through registry-config flag (#1630)

Signed-off-by: Adam Talbot <adam.talbot@venafi.com>
This commit is contained in:
Adam Talbot 2024-07-17 05:34:04 +01:00 committed by GitHub
parent 06407b31b8
commit a684d1424d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

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