Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,4 +307,4 @@ helmRegistries:
```

#### Helm settings registry config file
Both of the previous methods will also create/update the registry config file (the same as the helm CLI). However, you can also put this file in the container and helm-wrapper will use that to authenticate. By default, this file is located at `/home/helm/.config/registry/config.json`. Again, the domain must match the chart registry URL in the upgrade or install request. Refer to helm documentation on how to configure this. You can also use one of the other authentication methods and then look at the file that is created in the container.
Both of the previous methods will also create/update the registry config file (the same as the helm CLI). However, you can also put this file in the container and helm-wrapper will use that to authenticate. By default, this file is located at `/home/helm/.config/helm/registry/config.json`. Again, the domain must match the chart registry URL in the upgrade or install request. Refer to helm documentation on how to configure this. You can also use one of the other authentication methods and then look at the file that is created in the container.
12 changes: 8 additions & 4 deletions registries.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,14 @@ func initRegistry(c *repo.Entry) (error) {
}

func createOCIRegistryClientForChartPathOptions(aimChart *string, chartPathOptions *action.ChartPathOptions) (*registry.Client, error) {
registryConfig, err := chartPathOptionsToRegistryConfig(aimChart, chartPathOptions)
if err != nil {
return nil, fmt.Errorf("Failed to convert chart path options to registry config: %s", err)
if strings.HasPrefix(*aimChart, "oci://") {
registryConfig, err := chartPathOptionsToRegistryConfig(aimChart, chartPathOptions)
if err != nil {
return nil, fmt.Errorf("Failed to convert chart path options to registry config: %s", err)
}

return createOCIRegistryClient(registryConfig)
}

return createOCIRegistryClient(registryConfig)
return nil, nil
}