mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
podex: add comment about image name parsing
This commit is contained in:
@@ -61,6 +61,9 @@ func main() {
|
||||
log.Fatal(usage)
|
||||
}
|
||||
|
||||
// Parse docker image name
|
||||
// IMAGE: [REGISTRYHOST/][USERNAME/]NAME[:TAG]
|
||||
// NAME: [a-z0-9-_.]
|
||||
parts := strings.Split(imageName, "/")
|
||||
baseName := parts[len(parts)-1]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user