Skip to content

Commit

Permalink
Merge pull request #327 from xiaoloongfang/e2e_bug_fix
Browse files Browse the repository at this point in the history
fix: In e2e test, fedcorev1a1.PropagationPolicySpec.Placements should be a DesiredPlacement type, not ClusterReference type
  • Loading branch information
mrlihanbo authored Jun 17, 2024
2 parents 24911a2 + 2760952 commit c8f179f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/framework/policies/propagationpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ func PropagationPolicyForClustersWithPlacements(
},
Spec: fedcorev1a1.PropagationPolicySpec{
SchedulingMode: fedcorev1a1.SchedulingModeDuplicate,
Placements: []fedcorev1a1.ClusterReference{},
Placements: []fedcorev1a1.DesiredPlacement{},
},
}

for _, c := range clusters {
policy.Spec.Placements = append(policy.Spec.Placements, fedcorev1a1.ClusterReference{Cluster: c.Name})
policy.Spec.Placements = append(policy.Spec.Placements, fedcorev1a1.DesiredPlacement{Cluster: c.Name})
}

return policy
Expand Down

0 comments on commit c8f179f

Please sign in to comment.