feat: support for status subresource patches via annotation#2699
Closed
bakito wants to merge 10 commits into
Closed
feat: support for status subresource patches via annotation#2699bakito wants to merge 10 commits into
bakito wants to merge 10 commits into
Conversation
Signed-off-by: bakito <[email protected]>
Signed-off-by: bakito <[email protected]>
Signed-off-by: bakito <[email protected]>
Signed-off-by: bakito <[email protected]>
3 tasks
bakito
force-pushed
the
subresource-annotation
branch
2 times, most recently
from
May 1, 2026 12:41
e31aecb to
113790e
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2699 +/- ##
==========================================
+ Coverage 67.00% 67.70% +0.69%
==========================================
Files 149 149
Lines 5710 5753 +43
==========================================
+ Hits 3826 3895 +69
+ Misses 1624 1598 -26
Partials 260 260 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: bakito <[email protected]>
bakito
force-pushed
the
subresource-annotation
branch
from
May 1, 2026 12:53
113790e to
ce91fd4
Compare
Signed-off-by: bakito <[email protected]>
bakito
force-pushed
the
subresource-annotation
branch
2 times, most recently
from
May 1, 2026 13:46
4f21d85 to
504ed35
Compare
Signed-off-by: bakito <[email protected]>
bakito
force-pushed
the
subresource-annotation
branch
from
May 1, 2026 13:50
504ed35 to
51c9f4e
Compare
Signed-off-by: bakito <[email protected]>
bakito
force-pushed
the
subresource-annotation
branch
from
May 1, 2026 14:05
f0d67af to
95d1de5
Compare
Member
|
Closing, implemented in #2654 |
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.
Explanation
This is an alternative solution for #2654 where the subresource to be patched is defined as an annotation.
This PR adds the possibility to patch subresoruces. This can be helpful when the tests need to simulate updates done by external controllers.
Sample:
with the patch file: 02-patch-provider-resources.yaml
Related issue
Discussed with @eddycharly on Contribfest
Proposed Changes
An additional filed 'subresource' is added to the Patch operation. The subresource filed defines the name of the subresource, that will be patched.
Checklist
Further Comments
It was cool meeting the maintainers on Contribfest at KubeCon Amsterdam!