Merge pull request #100543 from chaitanyabandi/variable-expansion

Don't replace pod annotations in variable expansion test
This commit is contained in:
Kubernetes Prow Robot 2021-05-21 17:43:37 -07:00 committed by GitHub
commit 916ed1d3ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -267,7 +267,10 @@ var _ = SIGDescribe("Variable Expansion", func() {
ginkgo.By("updating the pod")
podClient.Update(pod.ObjectMeta.Name, func(pod *v1.Pod) {
pod.ObjectMeta.Annotations = map[string]string{"mysubpath": "mypath"}
if pod.ObjectMeta.Annotations == nil {
pod.ObjectMeta.Annotations = make(map[string]string)
}
pod.ObjectMeta.Annotations["mysubpath"] = "mypath"
})
ginkgo.By("waiting for pod running")