Hello all I am using ansible and helm operators in order to rollback a current deployment The content of the path is simiral to the following
{ "spec": { "template": { "spec": { "containers": [ { "name": "patch-demo-ctr-2", "image": "redis" } ] } } } } I have created in ansible the following command - name: Demo k8s: api_version: apps/v1 kind: Deployment state: present namespace: '{{ meta.namespace }}' name: my-operator definition: | spec: template: spec: containers: my-operator: image: {{ installed_software_image }} register: output when the command is running the rollback fails NewReplicaSetAvailable\\\\\\",\\\\\\"message\\\\\\":\\\\\\"ReplicaSet \\\\\\\\\\\\\\"my-operator-66ff64c9f4\\\\\\\\\\\\\\" has successfully progressed.\\\\\\"}]}}\\": v1.Deployment.Spec: v1.DeploymentSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container: decode slice: expect [ or n, but found {, error found in #10 byte of ...|tainers\\":{\\"new-opera|..., bigger context ...|t\\":\\"2021-03-24T22:26:02Z\\"}},\\"spec\\":{\\"containers\\":{\\"my-operator\\":\\"image:\\\\\\"27.0.0.1:5050/my-ope|...","field":"patch"}]},"code":422}\n'", "reason": "Unprocessable Entity", "status": 422} I put my question in stackoverflow https://stackoverflow.com/questions/66790966/kubernetes-ansible-operators-patch-an-existing-deployment-fails Is any one who can help to verify what goes wrong or to provide me a way to debug the command that I send Thank you George -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-devel/f3737ac5-5dfd-4bbc-813d-94a4a7a9b628n%40googlegroups.com.