mirror of https://github.com/kubernetes/kops.git
Merge pull request #8041 from tanjunchen/fix-code
replace TrimRight with TrimSuffix
This commit is contained in:
commit
b6be94935e
|
|
@ -160,7 +160,7 @@ func (a *AssetBuilder) RemapImage(image string) (string, error) {
|
|||
}
|
||||
|
||||
if a.AssetsLocation != nil && a.AssetsLocation.ContainerProxy != nil {
|
||||
containerProxy := strings.TrimRight(*a.AssetsLocation.ContainerProxy, "/")
|
||||
containerProxy := strings.TrimSuffix(*a.AssetsLocation.ContainerProxy, "/")
|
||||
normalized := image
|
||||
|
||||
// If the image name contains only a single / we need to determine if the image is located on docker-hub or if it's using a convenient URL like k8s.gcr.io/<image-name>
|
||||
|
|
|
|||
Loading…
Reference in New Issue