-
Notifications
You must be signed in to change notification settings - Fork 266
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
Malformed payloads cause excessive warning headers, potentially leading to 502 responses #9016
Comments
@KevinJoiner to flesh out some of the impact here and then file a related backend ticket to see what can be done in the API since though UI can truncate, new fields could be added. @richard-cox to explore around this a bit. |
Useful Referencesoriginal PR that brought this in - kubernetes/enhancements#2885 Current stateI've created #9030 to help identify where we get warnings. Some output below (create followed by edit for pod, deployment and secret resources)
Create vs EditWe do strip out some properties already, but only when cloning or saving as yaml. Importantly NOT when editing
Edit - Actually it looks like Options
|
FYI @aalves08 |
We need to dig into this some more since we could tackle the generic ones, but that may be 80% of what's there. This feels like an epic that needs to be split up. |
The two issues required to resolve this are... |
Linking backend changes (which covers some of the common cases) - rancher/rancher#41772 |
This is a follow up from #9012 and there's more detail in the comments there.
Steve adds a few fields to all resources:
metadata.fields
metadata.state
metadata.relationships
status.conditions[i].error
status.conditions[i].transitioning
When the user edits a resource, these are included in the payload, and each results in a warning header in the response.
The ui has been sending these extra fields for a while and it's only recently become a problem due to the combo of k8s 1.25 validating by default, and steve including warning headers as of 2.7.2. There will need to be more discussion around how to handle this, potentially in coordination with backend work.
The text was updated successfully, but these errors were encountered: