fix edit set image to parse both tag and digest

This commit is contained in:
Juan Ignacio Donoso
2023-07-05 15:01:33 -04:00
parent e3b9afcfaa
commit a85dfd4141
3 changed files with 75 additions and 43 deletions

10
api/pkg/util/image.go Normal file
View File

@@ -0,0 +1,10 @@
package util
import (
"sigs.k8s.io/kustomize/api/internal/image"
)
// Splits image string name into name, tag and digest
func SplitImageName(imageName string) (name string, tag string, digest string) {
return image.Split(imageName)
}