-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 Server Side Apply documentation to the book #2514
Comments
If I properly understood it, shows that we could create a plugin to work with. See: https://book.kubebuilder.io/plugins/plugins.html Let's see what others also think about it. Also, please feel free to contribute to it. Your contribution is very welcome as well. Begin a threat at: https://kubernetes.slack.com/archives/CAR30FCJZ/p1645534614215639 |
Based on the discussion in triage, we need to update the documentation on Kubebuilder for cronjob tutorial (as the first step) on using server side apply. We need to look into other places we have to update documentation in Kubebuilder to reflect server side apply, updates/patches. If we update the documentation, we should clarify the caveats as well - that users should not be trying to use server side apply with standard API types. |
I'm willing to help out writing updated documentation on this, but some guidance on what would be a good place / structure would be much appreciated. I.e. - should it replace the current documentation, should it be added as a new chapter, do we want to wait for kubernetes-sigs/controller-runtime#1365 to land, etc. I'm still very fresh on kubebuilder and everything related, but definitely willing to contribute ;-) |
Hi @wmuizelaar, The thoughts raised at the meeting today was:
About: kubernetes-sigs/controller-runtime#1365 why it should be a blocker for us? |
Hi @camilamacedo86 , Thanks for your reply! About kubernetes-sigs/controller-runtime#1365 the following: as I understood, with Server-Side Apply you cannot use the standard API types anymore. There are 2 ways to actually submit resources:
So based on this, what could be an approach is:
Does that make sense? If so, I'd like to volunteer to work on this :-) |
Would be nice if |
I found this abandoned PR: |
In #2514 (comment) @wmuizelaar wrote:
Did you make any progress on this? I've seen this technique mentioned by @coderanger in kubernetes-sigs/controller-runtime#1669 (comment) but haven't been able to find an example. |
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 |
Not yet - was first waiting for an answer to check whether this approach would make sense before start typing a lot of code ;-) |
/remove-lifecycle stale |
Hi @wmuizelaar, If you are looking for an answer over: #2514 (comment). I think the best approach would to be create a section on the docs and a sample-specific to help people know how to work with.Is that make sense? WDYT? So, please feel free to also check the docs and propose a PR doing changes as you see fit so then we can move from there. |
Hi @camilamacedo86 - that does make sense! I'll give it a first draft after my holidays ;-) |
Thank you @wmuizelaar and sorry for the delay. I did not realize that you were waiting for any response. |
The PR: kubernetes-sigs/controller-tools#536 shows has relevance to this task either. |
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 |
Hi @wmuizelaar how is your holidays going ? Do we have any update for the state of these docs ? |
Juli 2023. Before creating docs it needs to be implemented: kubernetes-sigs/controller-tools#536 I have the gut feeling, that server-side-apply is something which was invented by very smart people. Unfortunately most people (like me) are not that smart, and that's the reason why SSA in CRDs are not solved yet. Maybe Patch is enough for most cases, and SSA is not needed? But I am new to operator development and kubebuilder. Maybe I am completely wrong. |
This issue has not been updated in over 1 year, and should be re-triaged. You can:
For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/ /remove-triage accepted |
What do you want to happen?
Hi,
On the blogpost about Server Side Apply becoming GA, it references that when it's ready, the kubebuilder-book will be updated with examples. See https://kubernetes.io/blog/2021/08/06/server-side-apply-ga/#using-server-side-apply-in-a-controller
Is there an issue in this or in one of the related repositories that I could follow? I'm now trying to use it, and while receiving nice examples on slack, and finding all kinds of ways to implement it online, I'm still struggling a lot. A reference in the book would be really appreciated. So if there is not an issue, consider this as a feature request please ;-)
Extra Labels
/kind documentation
The text was updated successfully, but these errors were encountered: