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 |
||
---|---|---|
.. | ||
openapi.go |