Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/app/status API that returns detailed app status #231

Merged

Conversation

divolgin
Copy link
Member

@divolgin divolgin commented Dec 19, 2024

What this PR does / why we need it:

  • Adds API for querying details application status.
  • Adds "version" key to mock data to maintain backwards compatibility. Empty string implies "v1".
# curl http://replicated:3000/api/v1/app/status | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   232  100   232    0     0  65536      0 --:--:-- --:--:-- --:--:-- 77333
{
  "appStatus": {
    "appSlug": "okteto-app-metrics",
    "resourceStates": [
      {
        "kind": "deployment",
        "name": "alpine-app",
        "namespace": "okteto-app-metrics",
        "state": "ready"
      }
    ],
    "updatedAt": "2024-12-19T23:01:52.207162284Z",
    "state": "ready",
    "sequence": 268
  }
}

Which issue(s) this PR fixes:

Fixes https://app.shortcut.com/replicated/story/116585/expose-granular-statusinformer-details-in-the-sdk-api-endpoints-available-in-the-cluster

Special notes for your reviewer:

Steps to reproduce

Does this PR introduce a user-facing change?

Adds /app/status API that returns detailed application status information.

Does this PR require documentation?

replicatedhq/replicated-docs#2917

@divolgin divolgin force-pushed the divolgin/sc-116585/expose-granular-statusinformer-details-in branch from 62d7603 to 8c5b98b Compare December 20, 2024 19:43
@divolgin divolgin marked this pull request as ready for review December 20, 2024 19:46
@divolgin divolgin merged commit 2a305d5 into main Dec 20, 2024
11 checks passed
@divolgin divolgin deleted the divolgin/sc-116585/expose-granular-statusinformer-details-in branch December 20, 2024 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants