remove unused id label in the dependencise distributor
Signed-off-by: changzhen <changzhen5@huawei.com>
This commit is contained in:
parent
c4ee8dbf78
commit
ffa2f8c8f6
|
@ -63,10 +63,6 @@ import (
|
||||||
|
|
||||||
// well-know labels
|
// well-know labels
|
||||||
const (
|
const (
|
||||||
// dependedIDLabelKey is added to the attached binding, it describes the
|
|
||||||
// resource id of the independent binding which the attached binding depends on.
|
|
||||||
dependedIDLabelKey = "resourcebinding.karmada.io/depended-id"
|
|
||||||
|
|
||||||
// dependedByLabelKeyPrefix is added to the attached binding, it is the
|
// dependedByLabelKeyPrefix is added to the attached binding, it is the
|
||||||
// prefix of the label key which specifying the current attached binding
|
// prefix of the label key which specifying the current attached binding
|
||||||
// referred by which independent binding.
|
// referred by which independent binding.
|
||||||
|
@ -687,8 +683,6 @@ func buildAttachedBinding(independentBinding *workv1alpha2.ResourceBinding, obje
|
||||||
Clusters: independentBinding.Spec.Clusters,
|
Clusters: independentBinding.Spec.Clusters,
|
||||||
})
|
})
|
||||||
|
|
||||||
bindingID := util.GetLabelValue(independentBinding.Labels, workv1alpha2.ResourceBindingPermanentIDLabel)
|
|
||||||
dependedLabels = util.DedupeAndMergeLabels(dependedLabels, map[string]string{dependedIDLabelKey: bindingID})
|
|
||||||
return &workv1alpha2.ResourceBinding{
|
return &workv1alpha2.ResourceBinding{
|
||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
Name: names.GenerateBindingName(object.GetKind(), object.GetName()),
|
Name: names.GenerateBindingName(object.GetKind(), object.GetName()),
|
||||||
|
|
Loading…
Reference in New Issue