-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat(provider/kubernetes): support for kubectl server-side-apply strategy #5989
Conversation
...ernetes/src/main/java/com/netflix/spinnaker/clouddriver/kubernetes/op/handler/CanDeploy.java
Outdated
Show resolved
Hide resolved
Still wrapping my head around the approach, but it very well could be OK. Would you please add some integration tests to get a bit more verification that it works properly? |
...etflix/spinnaker/clouddriver/kubernetes/description/manifest/KubernetesManifestStrategy.java
Outdated
Show resolved
Hide resolved
Thanks for the suggestion @dbyron-sf I have implemented two integration tests per your suggestion (client-side vs server-side apply) |
…tegy kubernetes server-side apply (SSA) was released back in 1.14 and became GA In 1.22. This new strategy will use the new merging algorithm, as well as tracking field ownership at the kubernetes api-server Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
@a7i Any chance of getting the annotation changed so it supports the force/no-force option? E.g. the
|
@jasonmcintosh thanks for following up. I took a stab at it, and it just seemed a bit messy to have yet another annotation. Also, one more arg that I had to pass around for deployment, etc. I also really dislike the idea of annotations as an API but it's the existing pattern so not much I can do about that. |
Yeah the goal is ONE annotation just with values for it. This would match how ALB ingress controllers work. It's not... "ideal" but not sure there's a great answer without that to pass this kinda thing around without changing it on deploy stages. |
Let me know how you feel about the new commit I pushed
|
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
Think this should work well, allowing all the options. LONG TERM, as said, would love it if "Server side apply w/force" was just the default, another release or two for that default ;) |
How do you feel about field-managers? should that be another annotation? for example, apply a Deployment but let HPA handle the replicas.
|
For. the MOMENT probably an annotation. There's two sorta strategies that come into play
It'd be interesting to have more conversations with the Cloud SIG on direction on this long term and impacts. |
Merging this - but would love a docs update on the force changes ;) Thanks!! |
…tegy (spinnaker#5989) * feat(provider/kubernetes): support for kubectl server-side-apply strategy kubernetes server-side apply (SSA) was released back in 1.14 and became GA In 1.22. This new strategy will use the new merging algorithm, as well as tracking field ownership at the kubernetes api-server Signed-off-by: Amir Alavi <amiralavi7@gmail.com> * server-side-apply: support force-conflicts Signed-off-by: Amir Alavi <amiralavi7@gmail.com> --------- Signed-off-by: Amir Alavi <amiralavi7@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
…tegy (spinnaker#5989) * feat(provider/kubernetes): support for kubectl server-side-apply strategy kubernetes server-side apply (SSA) was released back in 1.14 and became GA In 1.22. This new strategy will use the new merging algorithm, as well as tracking field ownership at the kubernetes api-server Signed-off-by: Amir Alavi <amiralavi7@gmail.com> * server-side-apply: support force-conflicts Signed-off-by: Amir Alavi <amiralavi7@gmail.com> --------- Signed-off-by: Amir Alavi <amiralavi7@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
…tegy (spinnaker#5989) * feat(provider/kubernetes): support for kubectl server-side-apply strategy kubernetes server-side apply (SSA) was released back in 1.14 and became GA In 1.22. This new strategy will use the new merging algorithm, as well as tracking field ownership at the kubernetes api-server Signed-off-by: Amir Alavi <amiralavi7@gmail.com> * server-side-apply: support force-conflicts Signed-off-by: Amir Alavi <amiralavi7@gmail.com> --------- Signed-off-by: Amir Alavi <amiralavi7@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
…tegy (spinnaker#5989) (#37) * feat(provider/kubernetes): support for kubectl server-side-apply strategy kubernetes server-side apply (SSA) was released back in 1.14 and became GA In 1.22. This new strategy will use the new merging algorithm, as well as tracking field ownership at the kubernetes api-server * server-side-apply: support force-conflicts --------- Signed-off-by: Amir Alavi <amiralavi7@gmail.com> Co-authored-by: Amir Alavi <amiralavi7@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
kubernetes server-side apply (SSA) was released back in 1.14 and became GA In 1.22. This new strategy will use the new merging algorithm, as well as tracking field ownership at the kubernetes api-server
fixes: spinnaker/spinnaker#6865