mirror of https://github.com/k3s-io/k3s
![]() Automatic merge from submit-queue (batch tested with PRs 51039, 50512, 50546, 50965, 50467) Kubectl: Plumb openapi validation (disabled by default) **What this PR does / why we need it**: Creates a new flag '--openapi' and plumb in the validation code so that it can be used by default to validate objects against the openapi schema. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: partially https://github.com/kubernetes/kubectl/issues/49 **Special notes for your reviewer**: This is not complete, the name of the variable must change for example. **Release note**: ```release-note Kubectl uses openapi for validation. If OpenAPI is not available on the server, it defaults back to the old Swagger. ``` |
||
---|---|---|
.. | ||
cmd | ||
metricsutil | ||
plugins | ||
proxy | ||
resource | ||
testing | ||
util | ||
validation | ||
BUILD | ||
OWNERS | ||
apply.go | ||
autoscale.go | ||
bash_comp_utils.go | ||
cluster.go | ||
cluster_test.go | ||
clusterrolebinding.go | ||
configmap.go | ||
configmap_test.go | ||
delete.go | ||
delete_test.go | ||
deployment.go | ||
doc.go | ||
env_file.go | ||
env_file_test.go | ||
explain.go | ||
generate.go | ||
generate_test.go | ||
history.go | ||
interfaces.go | ||
kubectl.go | ||
kubectl_test.go | ||
namespace.go | ||
namespace_test.go | ||
pdb.go | ||
quota.go | ||
quota_test.go | ||
resource_filter.go | ||
resource_filter_test.go | ||
rolebinding.go | ||
rolebinding_test.go | ||
rollback.go | ||
rolling_updater.go | ||
rolling_updater_test.go | ||
rollout_status.go | ||
rollout_status_test.go | ||
run.go | ||
run_test.go | ||
scale.go | ||
scale_test.go | ||
secret.go | ||
secret_for_docker_registry.go | ||
secret_for_docker_registry_test.go | ||
secret_for_tls.go | ||
secret_for_tls_test.go | ||
secret_test.go | ||
service.go | ||
service_basic.go | ||
service_basic_test.go | ||
service_test.go | ||
serviceaccount.go | ||
serviceaccount_test.go | ||
sorting_printer.go | ||
sorting_printer_test.go | ||
versioned_client.go |