Skip to content

Commit

Permalink
fix typo s/ectract/extract
Browse files Browse the repository at this point in the history
  • Loading branch information
prima101112 committed Mar 21, 2024
1 parent 650d5b8 commit 52a2dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/image/remote/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func RetrieveRemoteImage(image string, opts config.RegistryOptions, customPlatfo
if newRegURLs, found := opts.RegistryMaps[ref.Context().RegistryStr()]; found {
for _, regToMapTo := range newRegURLs {

//ectract custom path if any in all registry map and clean regToMapTo to only the registry without the path
//extract custom path if any in all registry map and clean regToMapTo to only the registry without the path
custompath, regToMapTo := extractPathFromRegistryURL(regToMapTo)
//normalize reference is call in every fallback to ensure that the image is normalized to the new registry include the image prefix
ref, err = normalizeReference(ref, image, custompath)
Expand Down

0 comments on commit 52a2dba

Please sign in to comment.