in internal/controller/acrpullbinding_v1beta2_controller.go [232:242]
func inputsHash(spec msiacrpullv1beta2.AcrPullBindingSpec) string {
inputs := []byte(spec.ServiceAccountName)
switch {
case spec.Auth.ManagedIdentity != nil:
inputs = append(inputs, []byte("managedIdentity"+spec.Auth.ManagedIdentity.ResourceID+spec.Auth.ManagedIdentity.ClientID)...)
case spec.Auth.WorkloadIdentity != nil:
inputs = append(inputs, []byte("workloadIdentity"+spec.Auth.WorkloadIdentity.ServiceAccountName)...)
}
inputs = append(inputs, []byte(string(spec.ACR.Environment)+spec.ACR.Server+spec.ACR.Scope)...)
return base36sha224(inputs)
}