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
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