Merge pull request #5234 from blackjid/bug_fix_set_image_digest_and_tag

fix edit set image to parse both tag and digest
This commit is contained in:
Kubernetes Prow Robot
2024-01-26 21:03:52 +01:00
committed by GitHub
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)
}