k3s/hack
k8s-merge-robot 07929972a3 Merge pull request #18835 from brendandburns/3rdparty
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.
2016-03-31 18:09:56 -07:00
..
after-build Fix remaining issues with conversion generator. 2016-03-29 09:49:27 +02:00
boilerplate Add boilerplate checks for Dockerfiles 2016-02-03 18:35:26 -05:00
e2e-internal Remove hack/e2e-internal/e2e-upgrade.sh. 2016-03-09 14:14:04 -08:00
gen-swagger-doc Spelling fixes inspired by github.com/client9/misspell 2016-02-18 06:58:05 +07:00
jenkins Merge pull request #23469 from fejta/goget 2016-03-31 12:23:57 -07:00
lib Remove old deep-copy generator. 2016-03-18 09:42:15 +01:00
testdata Copy replicaset example yamls to hack/testdata directory. 2016-03-10 10:53:29 -08:00
travis
verify-flags Add third party support to kubectl 2016-03-31 10:53:32 -07:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
benchmark-go.sh
benchmark-integration.sh
build-cross.sh Add support for building arm, arm64 and ppc64le server and client targets 2016-02-07 20:35:14 +02:00
build-go.sh
build-ui.sh
cherry_pick_pull.sh
dev-build-and-push.sh
dev-build-and-up.sh
e2e-node-test.sh hack/e2e-node-test should not assume ginkgo installed 2016-03-04 16:28:35 -05:00
e2e.go Remove log collection code in cluster/gce/util.sh. 2016-03-03 15:28:33 -08:00
get-build.sh
ginkgo-e2e.sh Support differentiation of OS distro in e2e tests 2016-03-25 14:53:36 -07:00
grab-profiles.sh
install-etcd.sh Make hack/install-etcd.sh use hack/lib/etcd.sh 2016-02-26 11:54:43 -08:00
list-feature-tests.sh Fix regex in list-feature-tests.sh. 2016-03-07 16:49:39 -08:00
local-up-cluster.sh Merge pull request #22474 from bprashanth/local-up 2016-03-04 02:29:36 -08:00
lookup_pull.py
test-cmd.sh Update guestbook examples; replace RC concepts with Deployment 2016-03-30 14:16:52 -07:00
test-go.sh *: enable authorization.k8s.io/v1beta1 extensions for go tests 2016-02-22 11:49:01 -08:00
test-integration.sh Add simplified testing instructions and etcd installation check. 2016-03-06 19:07:34 -08:00
test-update-storage-objects.sh Test jobs/hpas in storage update 2016-03-04 17:05:39 -05:00
update-all.sh Remove old deep-copy generator. 2016-03-18 09:42:15 +01:00
update-api-reference-docs.sh adding groups 2016-03-14 14:59:12 -07:00
update-codecgen.sh Fix update codecgen 2016-03-04 10:42:06 +01:00
update-codegen.sh Fix bunch of issues with conversion generator. 2016-03-24 08:26:51 +01:00
update-generated-conversions.sh
update-generated-docs.sh
update-generated-protobuf.sh Generate protobuf-related files in Docker 2016-03-09 10:45:24 +01:00
update-generated-swagger-docs.sh Created batch API group and copied Job there 2016-02-19 09:20:56 -08:00
update-godep-licenses.sh Write a parallel (godeps) _workspace tree to hold all the missing files. 2016-03-22 16:51:30 -07:00
update-gofmt.sh Default to allow new golang versions 2016-03-07 09:57:36 -05:00
update-swagger-spec.sh
verify-all.sh Revert "Disable verify-godep-licenses.sh in hack/verify-all.sh" 2016-03-11 17:31:56 -08:00
verify-api-reference-docs.sh Remove a diff option not in BSD diff 2016-02-19 08:47:57 -08:00
verify-boilerplate.sh
verify-codecgen.sh Spelling fixes inspired by github.com/client9/misspell 2016-02-18 06:58:05 +07:00
verify-codegen.sh Fix remaining issues with conversion generator. 2016-03-29 09:49:27 +02:00
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 Write a parallel (godeps) _workspace tree to hold all the missing files. 2016-03-22 16:51:30 -07:00
verify-godeps.sh Disable the vendor experiment in hack/verify-godeps.sh 2016-03-22 13:50:15 -07:00
verify-gofmt.sh Default to allow new golang versions 2016-03-07 09:57:36 -05:00
verify-import-boss.sh
verify-linkcheck.sh
verify-swagger-spec.sh
verify-symbols.sh
vet-go.sh