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

Allow utils.create_from_yaml to use server side apply #2251

Open
dcmcand opened this issue Jun 27, 2024 · 0 comments · May be fixed by #2252
Open

Allow utils.create_from_yaml to use server side apply #2251

dcmcand opened this issue Jun 27, 2024 · 0 comments · May be fixed by #2252
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@dcmcand
Copy link

dcmcand commented Jun 27, 2024

What is the feature and why do you need it:
Currently utils.create_from_yaml will only create resources. If the resource already exists then it throws an error.

Describe the solution you'd like to see:
We could add an apply parameter to the functions in the utils class. If we provide a default value of False to that parameter, it shouldn't break any existing behavior, but if apply=True is passed in then utils could use a dynamic client and use the server_side_apply function. This would allow applying yaml manifests directly even if the resources already exist.

I currently have a working model locally and would be willing to contribute a patch for this if it seems like a good approach to y'all.

A similar approach was discussed in #1168, but it seems it never landed.

@dcmcand dcmcand added the kind/feature Categorizes issue or PR as related to a new feature. label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant