in gce-containers-startup/utils/registry.go [23:33]
func UseGcpTokenForImage(image string) bool {
parts := strings.SplitN(image, "/", 2)
if len(parts) < 2 || len(parts[0]) == 0 {
return false
}
hostname := strings.ToLower(parts[0])
return hostname == "gcr.io" || strings.HasSuffix(hostname, ".gcr.io") || strings.HasSuffix(hostname, ".pkg.dev")
}