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:
parent
06407b31b8
commit
a684d1424d
|
|
@ -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...)
|
||||
|
|
|
|||
Loading…
Reference in New Issue