Skip to content

Commit b6a7a0e

Browse files
berlin-abtroy0820
authored andcommitted
Test showing labels and annotations stored during fake client.Status().Update()
1 parent 51c1809 commit b6a7a0e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/client/fake/client_test.go

+7
Original file line numberDiff line numberDiff line change
@@ -1460,6 +1460,13 @@ var _ = Describe("Fake client", func() {
14601460
objOriginal := obj.DeepCopy()
14611461

14621462
obj.Spec.PodCIDR = "cidr-from-status-update"
1463+
obj.Annotations = map[string]string{
1464+
"some-annotation-key": "some-annotation-value",
1465+
}
1466+
obj.Labels = map[string]string{
1467+
"some-label-key": "some-label-value",
1468+
}
1469+
14631470
obj.Status.NodeInfo.MachineID = "machine-id-from-status-update"
14641471
Expect(cl.Status().Update(context.Background(), obj)).NotTo(HaveOccurred())
14651472

0 commit comments

Comments
 (0)