Delete unused code.

This commit is contained in:
Jeffrey Regan
2019-05-13 11:00:51 -07:00
parent 2a090e9118
commit 9a4cb6c991
3 changed files with 8 additions and 61 deletions

View File

@@ -64,16 +64,16 @@ func (pt *imageTransformer) Transform(m resmap.ResMap) error {
}
func (pt *imageTransformer) mutateImage(in interface{}) (interface{}, error) {
image, ok := in.(string)
original, ok := in.(string)
if !ok {
return nil, fmt.Errorf("image path is not of type string but %T", in)
}
for _, img := range pt.images {
if !isImageMatched(image, img.Name) {
if !isImageMatched(original, img.Name) {
continue
}
name, tag := split(image)
name, tag := split(original)
if img.NewName != "" {
name = img.NewName
}
@@ -85,7 +85,7 @@ func (pt *imageTransformer) mutateImage(in interface{}) (interface{}, error) {
}
return name + tag, nil
}
return image, nil
return original, nil
}
/*