Why does client.Update(...) ignore non-primitive values? Why does client.Update(...) ignore non-primitive values? kubernetes kubernetes

Why does client.Update(...) ignore non-primitive values?


The problem was that I needed a pointer to the Container I was modifying.

Doing this instead worked:

container := &newDeploy.Spec.Template.Spec.Containers[0]