Skip to content

"exec" livenessProbes result in empty "exec" element #1681

@larsks

Description

@larsks

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions