kubectl/pkg
Arda Güçlü 89edfadfa3 Use OpenAPI to determine patch type in kubectl apply patching
Currently `kubectl apply` determines correct patch type for given
GVKs by trying to register schema and if it succeeds, it uses
strategic-merge-patch.

But OpenAPI endpoint already stores which patch types are supported
by GVKs. This PR checks OpenAPI endpoint to retrieve patch type,
if OpenAPI is enabled. If it is not enabled, patch type determination
will be done as conventional registration method.

Kubernetes-commit: cddbb0c56397448ac0489f0473a26601c1feece8
2022-06-08 13:12:16 +03:00
..
apply Remove `newlineReporter` custom report 2022-06-01 13:09:47 +08:00
apps Remove `newlineReporter` custom report 2022-06-01 13:09:47 +08:00
cmd Use OpenAPI to determine patch type in kubectl apply patching 2022-06-08 13:12:16 +03:00
describe Add describer and printer for ClusterCIDR API 2022-07-30 00:25:57 +00:00
drain Generalize dry run verify to arbitrary query param 2022-03-09 14:51:50 +00:00
explain Fix printing control character in kubectl explain 2022-01-20 15:04:15 +01:00
generate Clean unused generators 2021-03-03 22:47:53 +01:00
metricsutil Added --sum flag to kubectl top pod 2021-09-16 09:28:30 -04:00
polymorphichelpers Generate and format files 2022-07-19 20:54:13 -04:00
proxy kubectl proxy: append context host path to request path 2020-12-16 17:37:44 +01:00
rawhttp Close the used file 2021-06-03 15:36:20 +08:00
scale Support kubectl scale --dry-run=server|client 2020-03-30 17:33:15 -04:00
scheme Promote cronjob to batch/v1: kubectl sparse_test prune 2021-05-26 20:08:36 +08:00
util Use OpenAPI to determine patch type in kubectl apply patching 2022-06-08 13:12:16 +03:00
validation add server-side validation support to kubectl 2022-03-09 14:52:32 +00:00