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

[YUNIKORN-2965] Move statedump and stack REST to debug endpoint #992

Closed
wants to merge 2 commits into from

Conversation

wilfred-s
Copy link
Contributor

What is this PR for?

The REST calls to get a statedump and the stacks of the system are exposed on the wrong endpoint. They belong in /debug and not in /ws/v1. Both are for troubleshooting only and the content is not stable.

Placing a 301 redirect on the old endpoints for clients to follow. The proxy build into the web UI does not proxy the debug endpoints.

What type of PR is it?

[X] - Bug Fix

Todos

[X] - Documentation update
[X] - e2e test update to call /debug/fullstatedump

What is the Jira issue?

YUNIKORN-2965

How should this be tested?

unit tests provided, e2e will follow redirect

The REST calls to get a statedump and the stacks of the system are
exposed on the wrong endpoint. They belong in /debug and not in /ws/v1.
Both are for troubleshooting only and the content is not stable.

Placing a 301 redirect on the old endpoints for clients to follow.
The proxy build into the web UI does not proxy the debug endpoints.
Copy link

codecov bot commented Nov 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.75%. Comparing base (6ef347b) to head (f73e8a6).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #992      +/-   ##
==========================================
+ Coverage   81.50%   81.75%   +0.25%     
==========================================
  Files          97       97              
  Lines       15520    15531      +11     
==========================================
+ Hits        12649    12698      +49     
+ Misses       2592     2554      -38     
  Partials      279      279              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@pbacsko pbacsko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@craigcondit craigcondit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 LGTM.

@wilfred-s wilfred-s deleted the YUNIKORN-2965 branch November 13, 2024 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants