@@ -207,7 +207,7 @@ func Test_GetHigherPriorityClusterPropagationPolicy(t *testing.T) {
207
207
208
208
func Test_getHighestPriorityPropagationPolicies (t * testing.T ) {
209
209
type args struct {
210
- policies []* policyv1alpha1.PropagationPolicy
210
+ policies []policyv1alpha1.PropagationPolicy
211
211
resource * unstructured.Unstructured
212
212
objectKey keys.ClusterWideKey
213
213
}
@@ -219,7 +219,7 @@ func Test_getHighestPriorityPropagationPolicies(t *testing.T) {
219
219
{
220
220
name : "empty policies" ,
221
221
args : args {
222
- policies : []* policyv1alpha1.PropagationPolicy {},
222
+ policies : []policyv1alpha1.PropagationPolicy {},
223
223
resource : & unstructured.Unstructured {
224
224
Object : map [string ]interface {}{
225
225
"apiVersion" : "apps/v1" ,
@@ -237,7 +237,7 @@ func Test_getHighestPriorityPropagationPolicies(t *testing.T) {
237
237
{
238
238
name : "mo policy match for resource" ,
239
239
args : args {
240
- policies : []* policyv1alpha1.PropagationPolicy {
240
+ policies : []policyv1alpha1.PropagationPolicy {
241
241
{
242
242
ObjectMeta : metav1.ObjectMeta {Name : "match-with-name" , Namespace : "test" },
243
243
Spec : policyv1alpha1.PropagationSpec {
@@ -278,7 +278,7 @@ func Test_getHighestPriorityPropagationPolicies(t *testing.T) {
278
278
{
279
279
name : "different implicit priority policy" ,
280
280
args : args {
281
- policies : []* policyv1alpha1.PropagationPolicy {
281
+ policies : []policyv1alpha1.PropagationPolicy {
282
282
{
283
283
ObjectMeta : metav1.ObjectMeta {Name : "match-with-name" , Namespace : "test" },
284
284
Spec : policyv1alpha1.PropagationSpec {
@@ -339,7 +339,7 @@ func Test_getHighestPriorityPropagationPolicies(t *testing.T) {
339
339
{
340
340
name : "same implicit priority policy" ,
341
341
args : args {
342
- policies : []* policyv1alpha1.PropagationPolicy {
342
+ policies : []policyv1alpha1.PropagationPolicy {
343
343
{
344
344
ObjectMeta : metav1.ObjectMeta {Name : "a-pp" , Namespace : "test" },
345
345
Spec : policyv1alpha1.PropagationSpec {
@@ -390,7 +390,7 @@ func Test_getHighestPriorityPropagationPolicies(t *testing.T) {
390
390
{
391
391
name : "one policy with implicit priority, one policy with explicit priority 1" ,
392
392
args : args {
393
- policies : []* policyv1alpha1.PropagationPolicy {
393
+ policies : []policyv1alpha1.PropagationPolicy {
394
394
{
395
395
ObjectMeta : metav1.ObjectMeta {Name : "a-pp" , Namespace : "test" },
396
396
Spec : policyv1alpha1.PropagationSpec {
@@ -449,7 +449,7 @@ func Test_getHighestPriorityPropagationPolicies(t *testing.T) {
449
449
{
450
450
name : "one policy with explicit priority 1(name match), one policy with explicit priority 2(label selector match)" ,
451
451
args : args {
452
- policies : []* policyv1alpha1.PropagationPolicy {
452
+ policies : []policyv1alpha1.PropagationPolicy {
453
453
{
454
454
ObjectMeta : metav1.ObjectMeta {Name : "a-pp" , Namespace : "test" },
455
455
Spec : policyv1alpha1.PropagationSpec {
@@ -512,7 +512,7 @@ func Test_getHighestPriorityPropagationPolicies(t *testing.T) {
512
512
{
513
513
name : "two policies with explicit priority 1(name match), select the one with lower alphabetical order" ,
514
514
args : args {
515
- policies : []* policyv1alpha1.PropagationPolicy {
515
+ policies : []policyv1alpha1.PropagationPolicy {
516
516
{
517
517
ObjectMeta : metav1.ObjectMeta {Name : "a-pp" , Namespace : "test" },
518
518
Spec : policyv1alpha1.PropagationSpec {
@@ -575,7 +575,7 @@ func Test_getHighestPriorityPropagationPolicies(t *testing.T) {
575
575
{
576
576
name : "one policy with explicit priority 1(name match), one policy with explicit priority 1(label selector match)" ,
577
577
args : args {
578
- policies : []* policyv1alpha1.PropagationPolicy {
578
+ policies : []policyv1alpha1.PropagationPolicy {
579
579
{
580
580
ObjectMeta : metav1.ObjectMeta {Name : "a-pp" , Namespace : "test" },
581
581
Spec : policyv1alpha1.PropagationSpec {
@@ -638,7 +638,7 @@ func Test_getHighestPriorityPropagationPolicies(t *testing.T) {
638
638
{
639
639
name : "one policy with explicit priority -1(name match), one policy with implicit priority(label selector match)" ,
640
640
args : args {
641
- policies : []* policyv1alpha1.PropagationPolicy {
641
+ policies : []policyv1alpha1.PropagationPolicy {
642
642
{
643
643
ObjectMeta : metav1.ObjectMeta {Name : "a-pp" , Namespace : "test" },
644
644
Spec : policyv1alpha1.PropagationSpec {
@@ -702,7 +702,7 @@ func Test_getHighestPriorityPropagationPolicies(t *testing.T) {
702
702
703
703
func Test_getHighestPriorityClusterPropagationPolicies (t * testing.T ) {
704
704
type args struct {
705
- policies []* policyv1alpha1.ClusterPropagationPolicy
705
+ policies []policyv1alpha1.ClusterPropagationPolicy
706
706
resource * unstructured.Unstructured
707
707
objectKey keys.ClusterWideKey
708
708
}
@@ -714,7 +714,7 @@ func Test_getHighestPriorityClusterPropagationPolicies(t *testing.T) {
714
714
{
715
715
name : "empty policies" ,
716
716
args : args {
717
- policies : []* policyv1alpha1.ClusterPropagationPolicy {},
717
+ policies : []policyv1alpha1.ClusterPropagationPolicy {},
718
718
resource : & unstructured.Unstructured {
719
719
Object : map [string ]interface {}{
720
720
"apiVersion" : "apps/v1" ,
@@ -732,7 +732,7 @@ func Test_getHighestPriorityClusterPropagationPolicies(t *testing.T) {
732
732
{
733
733
name : "mo policy match for resource" ,
734
734
args : args {
735
- policies : []* policyv1alpha1.ClusterPropagationPolicy {
735
+ policies : []policyv1alpha1.ClusterPropagationPolicy {
736
736
{
737
737
ObjectMeta : metav1.ObjectMeta {Name : "match-with-name" , Namespace : "test" },
738
738
Spec : policyv1alpha1.PropagationSpec {
@@ -773,7 +773,7 @@ func Test_getHighestPriorityClusterPropagationPolicies(t *testing.T) {
773
773
{
774
774
name : "different implicit priority policy" ,
775
775
args : args {
776
- policies : []* policyv1alpha1.ClusterPropagationPolicy {
776
+ policies : []policyv1alpha1.ClusterPropagationPolicy {
777
777
{
778
778
ObjectMeta : metav1.ObjectMeta {Name : "match-with-name" , Namespace : "test" },
779
779
Spec : policyv1alpha1.PropagationSpec {
@@ -834,7 +834,7 @@ func Test_getHighestPriorityClusterPropagationPolicies(t *testing.T) {
834
834
{
835
835
name : "same implicit priority policy" ,
836
836
args : args {
837
- policies : []* policyv1alpha1.ClusterPropagationPolicy {
837
+ policies : []policyv1alpha1.ClusterPropagationPolicy {
838
838
{
839
839
ObjectMeta : metav1.ObjectMeta {Name : "a-pp" , Namespace : "test" },
840
840
Spec : policyv1alpha1.PropagationSpec {
@@ -885,7 +885,7 @@ func Test_getHighestPriorityClusterPropagationPolicies(t *testing.T) {
885
885
{
886
886
name : "one policy with implicit priority, one policy with explicit priority 1" ,
887
887
args : args {
888
- policies : []* policyv1alpha1.ClusterPropagationPolicy {
888
+ policies : []policyv1alpha1.ClusterPropagationPolicy {
889
889
{
890
890
ObjectMeta : metav1.ObjectMeta {Name : "a-pp" , Namespace : "test" },
891
891
Spec : policyv1alpha1.PropagationSpec {
@@ -944,7 +944,7 @@ func Test_getHighestPriorityClusterPropagationPolicies(t *testing.T) {
944
944
{
945
945
name : "one policy with explicit priority 1(name match), one policy with explicit priority 2(label selector match)" ,
946
946
args : args {
947
- policies : []* policyv1alpha1.ClusterPropagationPolicy {
947
+ policies : []policyv1alpha1.ClusterPropagationPolicy {
948
948
{
949
949
ObjectMeta : metav1.ObjectMeta {Name : "a-pp" , Namespace : "test" },
950
950
Spec : policyv1alpha1.PropagationSpec {
@@ -1007,7 +1007,7 @@ func Test_getHighestPriorityClusterPropagationPolicies(t *testing.T) {
1007
1007
{
1008
1008
name : "two policies with explicit priority 1(name match), select the one with lower alphabetical order" ,
1009
1009
args : args {
1010
- policies : []* policyv1alpha1.ClusterPropagationPolicy {
1010
+ policies : []policyv1alpha1.ClusterPropagationPolicy {
1011
1011
{
1012
1012
ObjectMeta : metav1.ObjectMeta {Name : "a-pp" , Namespace : "test" },
1013
1013
Spec : policyv1alpha1.PropagationSpec {
@@ -1070,7 +1070,7 @@ func Test_getHighestPriorityClusterPropagationPolicies(t *testing.T) {
1070
1070
{
1071
1071
name : "one policy with explicit priority 1(name match), one policy with explicit priority 1(label selector match)" ,
1072
1072
args : args {
1073
- policies : []* policyv1alpha1.ClusterPropagationPolicy {
1073
+ policies : []policyv1alpha1.ClusterPropagationPolicy {
1074
1074
{
1075
1075
ObjectMeta : metav1.ObjectMeta {Name : "a-pp" , Namespace : "test" },
1076
1076
Spec : policyv1alpha1.PropagationSpec {
@@ -1133,7 +1133,7 @@ func Test_getHighestPriorityClusterPropagationPolicies(t *testing.T) {
1133
1133
{
1134
1134
name : "one policy with explicit priority -1(name match), one policy with implicit priority(label selector match)" ,
1135
1135
args : args {
1136
- policies : []* policyv1alpha1.ClusterPropagationPolicy {
1136
+ policies : []policyv1alpha1.ClusterPropagationPolicy {
1137
1137
{
1138
1138
ObjectMeta : metav1.ObjectMeta {Name : "a-pp" , Namespace : "test" },
1139
1139
Spec : policyv1alpha1.PropagationSpec {
0 commit comments