@@ -65,18 +65,13 @@ import (
65
65
var (
66
66
propagationPolicyMarkedLabels = []string {
67
67
policyv1alpha1 .PropagationPolicyPermanentIDLabel ,
68
- // TODO(whitewindmills): Delete the following two lines in a future version.
69
- policyv1alpha1 .PropagationPolicyNamespaceLabel ,
70
- policyv1alpha1 .PropagationPolicyNameLabel ,
71
68
}
72
69
propagationPolicyMarkedAnnotations = []string {
73
70
policyv1alpha1 .PropagationPolicyNamespaceAnnotation ,
74
71
policyv1alpha1 .PropagationPolicyNameAnnotation ,
75
72
}
76
73
clusterPropagationPolicyMarkedLabels = []string {
77
74
policyv1alpha1 .ClusterPropagationPolicyPermanentIDLabel ,
78
- // TODO(whitewindmills): Delete the following line in a future version.
79
- policyv1alpha1 .ClusterPropagationPolicyLabel ,
80
75
}
81
76
clusterPropagationPolicyMarkedAnnotations = []string {
82
77
policyv1alpha1 .ClusterPropagationPolicyAnnotation ,
@@ -470,9 +465,6 @@ func (d *ResourceDetector) ApplyPolicy(object *unstructured.Unstructured, object
470
465
}
471
466
472
467
policyLabels := map [string ]string {
473
- // TODO(whitewindmills): Delete the following two lines in a future version.
474
- policyv1alpha1 .PropagationPolicyNamespaceLabel : policy .GetNamespace (),
475
- policyv1alpha1 .PropagationPolicyNameLabel : policy .GetName (),
476
468
policyv1alpha1 .PropagationPolicyPermanentIDLabel : policyID ,
477
469
}
478
470
policyAnnotations := map [string ]string {
@@ -564,8 +556,6 @@ func (d *ResourceDetector) ApplyClusterPolicy(object *unstructured.Unstructured,
564
556
}
565
557
566
558
policyLabels := map [string ]string {
567
- // TODO(whitewindmills): Delete the following line in a future version.
568
- policyv1alpha1 .ClusterPropagationPolicyLabel : policy .GetName (),
569
559
policyv1alpha1 .ClusterPropagationPolicyPermanentIDLabel : policyID ,
570
560
}
571
561
policyAnnotations := map [string ]string {
@@ -722,9 +712,6 @@ func (d *ResourceDetector) ClaimPolicyForObject(object *unstructured.Unstructure
722
712
}
723
713
}
724
714
725
- // TODO(whitewindmills): Delete the following two lines in a future version.
726
- objLabels [policyv1alpha1 .PropagationPolicyNamespaceLabel ] = policy .Namespace
727
- objLabels [policyv1alpha1 .PropagationPolicyNameLabel ] = policy .Name
728
715
objLabels [policyv1alpha1 .PropagationPolicyPermanentIDLabel ] = policyID
729
716
730
717
objectAnnotations := object .GetAnnotations ()
@@ -751,8 +738,6 @@ func (d *ResourceDetector) ClaimClusterPolicyForObject(object *unstructured.Unst
751
738
}
752
739
753
740
objectCopy := object .DeepCopy ()
754
- // TODO(whitewindmills): Delete the following line in a future version.
755
- util .MergeLabel (objectCopy , policyv1alpha1 .ClusterPropagationPolicyLabel , policy .Name )
756
741
util .MergeLabel (objectCopy , policyv1alpha1 .ClusterPropagationPolicyPermanentIDLabel , policyID )
757
742
758
743
util .MergeAnnotation (objectCopy , policyv1alpha1 .ClusterPropagationPolicyAnnotation , policy .Name )
0 commit comments