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

Improve documentation on how to update to a new API version #4157

Open
matthchr opened this issue Jul 9, 2024 · 0 comments
Open

Improve documentation on how to update to a new API version #4157

matthchr opened this issue Jul 9, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@matthchr
Copy link
Member

matthchr commented Jul 9, 2024

You need to use kubectl apply, not something like kubectl edit, to change the APIVersion of a resource.

If you try to use kubectl edit, it says:

k edit managedclusters samplemanagedcluster202221 
A copy of your changes has been stored to "/tmp/kubectl-edit-1724071947.yaml"
error: At least one of apiVersion, kind and name was changed
@matthchr matthchr added the documentation Improvements or additions to documentation label Jul 9, 2024
@matthchr matthchr added this to the v2.10.0 milestone Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Development

No branches or pull requests

1 participant