Skip to content

Commit

Permalink
Test showing labels and annotations stored during fake client.Status(…
Browse files Browse the repository at this point in the history
…).Update()
  • Loading branch information
berlin-ab authored and k8s-infra-cherrypick-robot committed Sep 9, 2023
1 parent f4582ea commit 74eb8ea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/client/fake/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1460,6 +1460,13 @@ var _ = Describe("Fake client", func() {
objOriginal := obj.DeepCopy()

obj.Spec.PodCIDR = "cidr-from-status-update"
obj.Annotations = map[string]string{
"some-annotation-key": "some-annotation-value",
}
obj.Labels = map[string]string{
"some-label-key": "some-label-value",
}

obj.Status.NodeInfo.MachineID = "machine-id-from-status-update"
Expect(cl.Status().Update(context.Background(), obj)).NotTo(HaveOccurred())

Expand Down

0 comments on commit 74eb8ea

Please sign in to comment.