Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#10840 from zhanggbj/e2e_clustercla…
Browse files Browse the repository at this point in the history
…ss_rollout

🐛 Fix metadata assert failure in clusterclass rollout test
  • Loading branch information
k8s-ci-robot committed Jul 8, 2024
2 parents d79694c + dc7ff5d commit 2d45e62
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/e2e/clusterclass_rollout.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ func assertControlPlane(g Gomega, clusterClassObjects clusterClassObjects, clust
ccControlPlaneTemplateMachineTemplateMetadata.Labels,
),
))
g.Expect(controlPlaneMachineTemplateMetadata.Annotations).To(BeEquivalentTo(
g.Expect(union(controlPlaneMachineTemplateMetadata.Annotations)).To(BeEquivalentTo(
union(
cluster.Spec.Topology.ControlPlane.Metadata.Annotations,
clusterClass.Spec.ControlPlane.Metadata.Annotations,
Expand Down Expand Up @@ -466,8 +466,8 @@ func assertControlPlaneMachines(g Gomega, clusterObjects clusterObjects, cluster
union(
machineMetadata.Annotations,
).without(g, controlplanev1.KubeadmClusterConfigurationAnnotation),
).To(BeEquivalentTo(
controlPlaneMachineTemplateMetadata.Annotations,
).To(BeEquivalentTo(union(
controlPlaneMachineTemplateMetadata.Annotations),
))

// ControlPlane Machine InfrastructureMachine.metadata
Expand Down Expand Up @@ -516,8 +516,8 @@ func assertControlPlaneMachines(g Gomega, clusterObjects clusterObjects, cluster
union(
bootstrapConfigMetadata.Annotations,
).without(g, clusterv1.MachineCertificatesExpiryDateAnnotation),
).To(BeEquivalentTo(
controlPlaneMachineTemplateMetadata.Annotations,
).To(BeEquivalentTo(union(
controlPlaneMachineTemplateMetadata.Annotations),
))

// ControlPlane Machine Node.metadata
Expand Down Expand Up @@ -580,7 +580,7 @@ func assertMachineDeployments(g Gomega, clusterClassObjects clusterClassObjects,
mdClass.Template.Metadata.Labels,
),
))
g.Expect(machineDeployment.Spec.Template.Annotations).To(BeEquivalentTo(
g.Expect(union(machineDeployment.Spec.Template.Annotations)).To(BeEquivalentTo(
union(
mdTopology.Metadata.Annotations,
mdClass.Template.Metadata.Annotations,
Expand Down Expand Up @@ -693,7 +693,7 @@ func assertMachinePools(g Gomega, clusterClassObjects clusterClassObjects, clust
mpClass.Template.Metadata.Labels,
),
))
g.Expect(machinePool.Spec.Template.Annotations).To(BeEquivalentTo(
g.Expect(union(machinePool.Spec.Template.Annotations)).To(BeEquivalentTo(
union(
mpTopology.Metadata.Annotations,
mpClass.Template.Metadata.Annotations,
Expand Down

0 comments on commit 2d45e62

Please sign in to comment.