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

Missing an example in how to run a "apply -f" #1737

Closed
mazzespazze opened this issue Mar 4, 2022 · 6 comments
Closed

Missing an example in how to run a "apply -f" #1737

mazzespazze opened this issue Mar 4, 2022 · 6 comments
Labels
kind/documentation Categorizes issue or PR as related to documentation.

Comments

@mazzespazze
Copy link

Link to the issue (please include a link to the specific documentation or example):
Most of the resources https://github.com/kubernetes-client, https://github.com/kubernetes-client/python/tree/master/examples are lacking one of the most needed examples: how to perform a kubectl apply -f file.yaml

Description of the issue (please include outputs or screenshots if possible):
Currently it seems the API has examples for how to create and delete resources, and most of its examples are around connectivity. An example on the apply -f should be given, especially since these closed tickets should have not been closed at all as no solution was given:
#1215
#1168

@mazzespazze mazzespazze added the kind/documentation Categorizes issue or PR as related to documentation. label Mar 4, 2022
@mazinesy
Copy link

Adding server side apply doc

@RonMallory
Copy link
Contributor

I have submitted a PR adding additional examples for using utils.create_from_directory and utils.create_from_yaml.

I believe this is some of the functionality that you are looking for an examples of.

It will not be the full functionality of kubectl apply -f but it gives you a better example than what was previously up there.

@roycaihw
Copy link
Member

Thanks @RonMallory
/close

@k8s-ci-robot
Copy link
Contributor

@roycaihw: Closing this issue.

In response to this:

Thanks @RonMallory
/close

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.

@sm-moore
Copy link

I was looking at the examples in the PR Ron mentioned above #1752 and don't see any example of kubectl apply, only kubectl create. It appears to me this library doesn't actually support the apply operation. Is that true?

@roycaihw
Copy link
Member

We should support server-side apply: #1430

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Categorizes issue or PR as related to documentation.
Projects
None yet
Development

No branches or pull requests

6 participants