in internal/controller/acrpullbinding_controller.go [236:252]
func indexPullSecretByPullBinding(object client.Object) []string {
pullSecret, ok := object.(*corev1.Secret)
if !ok {
return nil
}
if pullBindingName, labelled := pullSecret.Labels[ACRPullBindingLabel]; labelled {
return []string{pullBindingName}
}
// while we clean up legacy secrets and add labels to them, we need to handle un-labelled secrets here
if isLegacySecretName(pullSecret.ObjectMeta.Name) {
return []string{pullBindingNameFromLegacySecret(pullSecret.ObjectMeta.Name)}
}
return nil
}