mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Merge pull request #100543 from chaitanyabandi/variable-expansion
Don't replace pod annotations in variable expansion test
This commit is contained in:
commit
916ed1d3ad
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user