feat: add pod describe endpoint and UI for webapp and worker#80
Merged
feat: add pod describe endpoint and UI for webapp and worker#80
Conversation
- api: describe_pod in k8s client (kubectl-style output), GET describe for webapp and worker pods - portal: getPodDescribe API, useWebappPodDescribe/useWorkerPodDescribe, PodDescribeModal, Describe action in PodsTable on WebappDetail and WorkerDetail - fix(portal): Fragment key in Applications.tsx list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a pod describe flow (same output as
kubectl describe pod) for webapp and worker namespaces. In the API, the K8s client gains adescribe_podmethod that returns a human-readable description (metadata, status, conditions, containers, volumes, events). Webapp and worker handlers exposeGET .../pods/{pod_name}/describewith the same auth as logs (view by application or environment). In the portal, the pod tables on Webapp Detail and Worker Detail get a Describe action that opens a modal showing this output. Also includes: ruff F541 fixes and formatting in the K8s client, and a React list key fix in Applications.tsx (Fragment key).Related Issue
Closes #
Type of Change
Component Affected
Checklist
General
Testing
Documentation
Screenshots (if applicable)
Optional: screenshot of PodsTable with Describe action and PodDescribeModal open.
Test Plan
GET /organizations/{org_uuid}/application_components/webapp/{uuid}/pods/{pod_name}/describeandGET .../worker/.../describewith a valid token and confirm kubectl-style text response.ruff check api/app/andruff format api/app/ --check; run portal lint and tests.Additional Notes
describe_podfor both webapp and worker; output matcheskubectl describe pod(metadata, status, conditions, containers, volumes, events).PodDescribeModaland the same PodsTable Describe action for webapp and worker; API calls use webapp vs worker base paths.