Skip to content

Commit 74eb8ea

Browse files
berlin-abk8s-infra-cherrypick-robot
authored and
k8s-infra-cherrypick-robot
committed
Test showing labels and annotations stored during fake client.Status().Update()
1 parent f4582ea commit 74eb8ea

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/client/fake/client_test.go

Lines changed: 7 additions & 0 deletions
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)