Skip to content

Commit

Permalink
Get credentials from the platform-default native credentials store fo…
Browse files Browse the repository at this point in the history
…r turbot hosted private plugins
  • Loading branch information
pskrbasu committed Feb 11, 2025
1 parent a4438f6 commit 00cb687
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ociinstaller/oci_downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ func (o *OciDownloader[I, C]) Pull(ctx context.Context, ref string, mediaTypes [
return nil, nil, nil, nil, err
}

// Get credentials from the docker credentials store
storeOpts := credentials.StoreOptions{}
// Get credentials from the platform-default native credentials store
storeOpts := credentials.StoreOptions{DetectDefaultNativeStore: true}
var credStore *credentials.DynamicStore
if strings.HasPrefix(ref, o.baseImageRef) {
credStore, err = credentials.NewStore("", storeOpts)
Expand Down

0 comments on commit 00cb687

Please sign in to comment.