mirror of https://github.com/k3s-io/k3s
![]() Automatic merge from submit-queue Add support for 3rd party objects to kubectl @deads2k @jlowdermilk Instructions for playing around with this: Run an apiserver with third party resources turned on (`--runtime-config=extensions/v1beta1=true,extensions/v1beta1/thirdpartyresources=true`) Then you should be able to: ``` kubectl create -f rsrc.json ``` ```json { "metadata": { "name": "foo.company.com" }, "apiVersion": "extensions/v1beta1", "kind": "ThirdPartyResource", "versions": [ { "apiGroup": "group", "name": "v1" }, { "apiGroup": "group", "name": "v2" } ] } ``` Once that is done, you should be able to: ``` curl http://<server>/apis/company.com/v1/foos ``` ``` curl -X POST -d @${HOME}/foo.json http://localhost:8080/apis/company.com/v1/namespaces/default/foos ``` ```json { "kind": "Foo", "apiVersion": "company.com/v1", "metadata": { "name": "baz" }, "someField": "hello world", "otherField": 1 } ``` After this PR, you can do: ``` kubectl create -f foo.json ``` ``` kubectl get foos ``` etc. |
||
---|---|---|
.. | ||
after-build | ||
boilerplate | ||
e2e-internal | ||
gen-swagger-doc | ||
jenkins | ||
lib | ||
testdata | ||
travis | ||
verify-flags | ||
OWNERS | ||
benchmark-go.sh | ||
benchmark-integration.sh | ||
build-cross.sh | ||
build-go.sh | ||
build-ui.sh | ||
cherry_pick_pull.sh | ||
dev-build-and-push.sh | ||
dev-build-and-up.sh | ||
e2e-node-test.sh | ||
e2e.go | ||
get-build.sh | ||
ginkgo-e2e.sh | ||
grab-profiles.sh | ||
install-etcd.sh | ||
list-feature-tests.sh | ||
local-up-cluster.sh | ||
lookup_pull.py | ||
test-cmd.sh | ||
test-go.sh | ||
test-integration.sh | ||
test-update-storage-objects.sh | ||
update-all.sh | ||
update-api-reference-docs.sh | ||
update-codecgen.sh | ||
update-codegen.sh | ||
update-generated-conversions.sh | ||
update-generated-docs.sh | ||
update-generated-protobuf.sh | ||
update-generated-swagger-docs.sh | ||
update-godep-licenses.sh | ||
update-gofmt.sh | ||
update-swagger-spec.sh | ||
verify-all.sh | ||
verify-api-reference-docs.sh | ||
verify-boilerplate.sh | ||
verify-codecgen.sh | ||
verify-codegen.sh | ||
verify-description.sh | ||
verify-flags-underscore.py | ||
verify-generated-conversions.sh | ||
verify-generated-docs.sh | ||
verify-generated-protobuf.sh | ||
verify-generated-swagger-docs.sh | ||
verify-godep-licenses.sh | ||
verify-godeps.sh | ||
verify-gofmt.sh | ||
verify-import-boss.sh | ||
verify-linkcheck.sh | ||
verify-swagger-spec.sh | ||
verify-symbols.sh | ||
vet-go.sh |