repo_description: Kubescape is an open-source Kubernetes security platform for your IDE, CI/CD pipelines, and clusters. It includes risk analysis, security, compliance, and misconfiguration scanning, saving Kubernetes users and administrators precious time, effort, and resources.
repo_topics: best-practice devops kubernetes mitre-attack nsa security vulnerability-detection
code: package cautils
  
  import (
  	"github.com/distribution/reference"
  )
  
  func NormalizeImageName(img string) (string, error) {
  	name, err := reference.ParseNormalizedNamed(img)
  	if err != nil {
  		return "", err
  	}
  	return name.String(), nil
  }
  