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

Add utility method to easily create a named/namespaced empty copy of a given resource #6012

Closed
metacosm opened this issue May 16, 2024 · 0 comments · Fixed by #6013
Closed
Assignees
Milestone

Comments

@metacosm
Copy link
Collaborator

Is your enhancement related to a problem? Please describe

When using Server-Side Apply, it is often required to send only the modified state instead of the full resource. This requires creating copies of resources with only the desired fields set. While this is perfectly doable now, having a utility method to remove some of the boiler plate of creating such a new instance (i.e. instantiation and metadata creation + setting) would be helpful.

Describe the solution you'd like

New HasMetadata factory methods to perform such operations.

Describe alternatives you've considered

No response

Additional context

No response

@metacosm metacosm self-assigned this May 16, 2024
metacosm added a commit that referenced this issue May 16, 2024
metacosm added a commit that referenced this issue May 16, 2024
metacosm added a commit that referenced this issue May 17, 2024
metacosm added a commit that referenced this issue May 17, 2024
metacosm added a commit that referenced this issue May 22, 2024
metacosm added a commit that referenced this issue May 23, 2024
metacosm added a commit that referenced this issue May 23, 2024
metacosm added a commit that referenced this issue May 23, 2024
metacosm added a commit that referenced this issue May 23, 2024
@manusa manusa added this to the 6.13.0 milestone May 28, 2024 — with automated-tasks
manusa pushed a commit that referenced this issue May 28, 2024
feat: add factory methods to help with SSA

Fixes #6012
---
chore: don't use wildcard imports

Signed-off-by: Marc Nuri <marc@marcnuri.com>
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 a pull request may close this issue.

2 participants