-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Add a support to delete kubernetes API objects from yaml #1373
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
Comments
Hey! I was looking for similar functionality, but I guess if we do it, maybe we should generalize? We could replace it with something like:
WDYT? For now I just did copy these YAML functions and altered them like this in my own private repo |
/assign |
There is a PR already: #1197. It needs some rebase work to clean the changes up, but feel free to leave comments and suggestions there. |
Great! What about patch from yaml or replace from Yaml?
pon., 1 mar 2021, 20:40 użytkownik Haowei Cai (Roy) <
[email protected]> napisał:
… There is a PR already: #1197
<#1197>. It needs some
rebase work to clean the changes up, but feel free to leave comments and
suggestions there.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1373 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARPF4NULFSPE2RKXOHUKDD3TBPUR3ANCNFSM4XGY6ILQ>
.
|
We don't have in-progress work for those functionalities. I imagine patching/replacing could be significantly more difficult than creating/deleting, since you may want to parse yaml into an object and calculate diff against the existing object. You may want to consider using #989 for that. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle rotten |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What is the feature and why do you need it:
There is already a util to create kubernetes API objects from yaml and it's very useful.
However, when I create an object from a yaml file, I sometimes want to delete the object created using that file, but there is no util for that.
I think it would be useful to have a util for delete that is paired with create_from_yaml.py, in other words, something like
kubectl delete -f
.Describe the solution you'd like to see:
The text was updated successfully, but these errors were encountered: