func CredentialProviderURL()

in pkg/providers/imagefamily/bootstrap/aksbootstrap.go [251:275]


func CredentialProviderURL(kubernetesVersion, arch string) string {
	minorVersion := semver.MustParse(kubernetesVersion).Minor
	if minorVersion < 30 { // use from 1.30; 1.29 supports it too, but we have not fully tested it with Karpenter
		return ""
	}

	// credential provider has its own release outside of k8s version, and there'll be one credential provider binary for each k8s release,
	// as credential provider release goes with cloud-provider-azure, not every credential provider release will be picked up unless
	// there are CVE or bug fixes.
	var credentialProviderVersion string
	switch minorVersion {
	case 29:
		credentialProviderVersion = "1.29.13"
	case 30:
		credentialProviderVersion = "1.30.10"
	case 31:
		credentialProviderVersion = "1.31.4"
	case 32:
		fallthrough // to default, which is same as latest
	default:
		credentialProviderVersion = "1.32.3"
	}

	return fmt.Sprintf("%s/cloud-provider-azure/v%s/binaries/azure-acr-credential-provider-linux-%s-v%s.tar.gz", globalAKSMirror, credentialProviderVersion, arch, credentialProviderVersion)
}