When applying the template again using ansible-module-openshift the error from OpenShift is "The DeploymentConfig (…) is invalid: spec.template.spec.containers[0].livenessProbe.tcpSocket: Forbidden: may not specify more than 1 handler type". Removing the deployment config (or only the probe therein) first is a workaround, but not very good for operations.
I tried setting httpGet to null in the template, but the error remained.
Expected behaviour: Dictionary keys no longer set in applied object are also unset in target.
I am applying a template containing, among other things, multiple deployment configurations. The containers have liveness and readiness checks, i.e.:
Ansible task:
Changing the probe to use
tcpSocket
fails. First the changed probe:When applying the template again using
ansible-module-openshift
the error from OpenShift is "The DeploymentConfig (…) is invalid: spec.template.spec.containers[0].livenessProbe.tcpSocket: Forbidden: may not specify more than 1 handler type". Removing the deployment config (or only the probe therein) first is a workaround, but not very good for operations.I tried setting
httpGet
tonull
in the template, but the error remained.Expected behaviour: Dictionary keys no longer set in applied object are also unset in target.