kubectl/pkg/util/openapi
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
..
testing Use OpenAPI to determine patch type in kubectl apply patching 2022-06-08 13:12:16 +03:00
validation Remove `newlineReporter` custom report 2022-06-01 13:09:47 +08:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
doc.go Move pkg/kubectl/cmd/util/openapi to staging 2019-07-25 21:49:49 -07:00
extensions.go remove go-openapi/spec 2021-04-20 17:48:33 +02:00
openapi.go Use OpenAPI to determine patch type in kubectl apply patching 2022-06-08 13:12:16 +03:00
openapi_getter.go googleapis/gnostic -> google/gnostic 2022-03-15 20:36:21 -07:00
openapi_getter_test.go update ginkgo from v1 to v2 and gomega to 1.19.0 2022-03-29 14:12:12 +08:00
openapi_suite_test.go Remove `newlineReporter` custom report 2022-06-01 13:09:47 +08:00
openapi_test.go Use OpenAPI to determine patch type in kubectl apply patching 2022-06-08 13:12:16 +03:00