mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
fix edit set image to parse both tag and digest
This commit is contained in:
10
api/pkg/util/image.go
Normal file
10
api/pkg/util/image.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user