Skip to content

Commit

Permalink
fix: In e2e test, fedcorev1a1.PropagationPolicySpec.Placements should…
Browse files Browse the repository at this point in the history
… be a DesiredPlacement type, not ClusterReference type
  • Loading branch information
xiaoloongfang committed Jun 17, 2024
1 parent 24911a2 commit 2760952
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 2760952

Please sign in to comment.