infinyon / k8-api

Native Rust implementation of Kubernetes api
Apache License 2.0
34 stars 17 forks source link

feat: provide `PatchMergeType::Apply` support #308

Closed EstebanBorai closed 2 months ago

EstebanBorai commented 3 months ago

Provides a content type support for Apply as suggested here https://kubernetes.io/docs/reference/using-api/server-side-apply/#serialization to provide Server-Side Apply.

EstebanBorai commented 3 months ago

Clippy issues addressed here: https://github.com/infinyon/k8-api/pull/309

EstebanBorai commented 2 months ago

So if you pass PatchMergeType::Apply to patch_status it will always fail?

Gotcha!

Now I have moved the params forApply to be fields for the PatchMergeType::Apply variant.

Also make use of patch_subresource inside of patch_status, this way patch_status is a wrapper on patch_subresource that only updates the status subresource.