Is there a way to patch a yaml file with kubectl patch?
So I mean not to patch a already deployed e.g. deployment with a json array but a file:
kubectl patch -f deployment.yaml -p '{"spec":{"containers":[{"name":"test","image":"test"}]}}'
(Code snippet not working)
Or if this is not possible how to best practice manipulate a kubernetes yaml based on a json array?