Given the following configuration:
apiVersion: v1beta2
id: simpleweb
desiredState:
manifest:
version: v1beta2
id: simpleweb
containers:
- name: simpleweb-1
image: larsks/simpleweb
livenessProbe:
type: exec
exec:
command: "/bin/true"
The JSON output from:
kubecfg -json get pods/simpleweb
Has an empty exec element:
$ kubecfg -json get pods/simpleweb | jq .desiredState.manifest.containers[0]
{
"imagePullPolicy": "",
"livenessProbe": {
"exec": {}
},
"image": "larsks/simpleweb",
"name": "simpleweb-1"
}
This happens with both v1beta1 and v1beta2 specified in the
apiVersion and version elements.
Given the following configuration:
The JSON output from:
Has an empty
execelement:This happens with both
v1beta1andv1beta2specified in theapiVersionandversionelements.