kots icon indicating copy to clipboard operation
kots copied to clipboard

kotsadm API: ability to fetch Application Status, Current Version, release notes, etc.

Open dexhorthy opened this issue 5 years ago • 1 comments

It would be great to support access for kots-deployed application to access an API providing information like:

  • currently deployed version
  • status of the "ready" checkmark (powered by StatusInformers)
  • triggering a support bundle
  • whether a new update is available for install

Big question here is how this will affect GitOps and multi-region deployments where kotsadm api might not be accessible by the application. Is there a better way to do this with some kind of annotation or metadata ConfigMap deployed alongside the application? I suppose the Kubernetes API is as good as any API to query this sort of metadata.

dexhorthy avatar Jul 09 '20 16:07 dexhorthy

Update from the future: at least status is supported now.

$ kubectl  kots app-status fooapp -n mynamespc | jq .
{
  "appstatus": {
    "appId": "1xxxyyyxxxx",
    "updatedAt": "2021-05-11T18:56:13.533454Z",
    "resourceStates": [
      {
        "kind": "service",
        "name": "engine-lb",
        "namespace": "wallaroo",
        "state": "ready"
      },
      {
        "kind": "service",
        "name": "engine-svc",
        "namespace": "wallaroo",
        "state": "ready"
      },
      {
        "kind": "service",
        "name": "grafana-svc",
        "namespace": "wallaroo",
        "state": "ready"
      }
    ],
    "state": "ready"
  }
}

mnp avatar Jun 13 '22 21:06 mnp