k3s/pkg/kubectl
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
..
cmd Merge pull request #18835 from brendandburns/3rdparty 2016-03-31 18:09:56 -07:00
resource Merge pull request #18835 from brendandburns/3rdparty 2016-03-31 18:09:56 -07:00
testing regen codecs 2016-02-13 09:15:39 -05:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
apply.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
autoscale.go Fixing all the "composite literal uses unkeyed fields" Vet errors. 2016-03-25 15:25:09 -07:00
bash_comp_utils.go
configmap.go Add kubectl create configmap 2016-02-18 21:24:21 -05:00
configmap_test.go Add kubectl create configmap 2016-02-18 21:24:21 -05:00
custom_column_printer.go Rename RawJSON to Raw in runtime.Unknown and add ContentType & ContentEncoding. 2016-03-16 16:43:58 +01:00
custom_column_printer_test.go ExtractList should handle v1.RawExtension correctly 2016-01-27 15:30:21 -05:00
describe.go Merge pull request #23279 from kargakis/export-volume-describer 2016-03-30 12:53:52 -07:00
describe_test.go kubectl: enhance podtemplate describer 2016-03-25 19:56:23 +01:00
doc.go
explain.go Tweak explain messages and abstract client 2015-12-18 00:27:22 -05:00
generate.go kubectl: Validate flag usage against generators 2015-12-18 15:09:53 +01:00
generate_test.go
history.go kubectl: enhance podtemplate describer 2016-03-25 19:56:23 +01:00
interfaces.go Move restclient to its own package 2016-02-29 12:05:13 -08:00
kubectl.go Add third party support to kubectl 2016-03-31 10:53:32 -07:00
kubectl_test.go Add kubectl create configmap 2016-02-18 21:24:21 -05:00
namespace.go Add kubectl create [SUBCOMMAND] pattern 2015-12-14 13:43:45 -05:00
namespace_test.go Add kubectl create [SUBCOMMAND] pattern 2015-12-14 13:43:45 -05:00
proxy_server.go Move restclient to its own package 2016-02-29 12:05:13 -08:00
proxy_server_test.go Move restclient to its own package 2016-02-29 12:05:13 -08:00
resource_printer.go Add third party support to kubectl 2016-03-31 10:53:32 -07:00
resource_printer_test.go Refactor diff into sub pkg 2016-03-21 20:21:39 +08:00
rollback.go Stop the users from rolling back a paused deployment in kubectl rollout undo 2016-03-16 15:46:22 -07:00
rolling_updater.go kubectl: set maxUnavailable to 1 if both fenceposts resolve to zero 2016-03-07 13:03:41 +01:00
rolling_updater_test.go kubectl: set maxUnavailable to 1 if both fenceposts resolve to zero 2016-03-07 13:03:41 +01:00
run.go Added job/v1 generator to kubectl run 2016-03-10 19:56:57 +01:00
run_test.go Added Selector Generation to Job. 2016-02-25 09:28:07 -08:00
scale.go Autogenerate. 2016-02-19 09:48:03 -08:00
scale_test.go Scale deployments fall-back to regular deployment update 2016-02-12 10:17:35 +01:00
secret.go Add kubectl create configmap 2016-02-18 21:24:21 -05:00
secret_for_docker_registry.go Add kubectl create [SUBCOMMAND] pattern 2015-12-14 13:43:45 -05:00
secret_for_docker_registry_test.go Add kubectl create [SUBCOMMAND] pattern 2015-12-14 13:43:45 -05:00
secret_test.go Add kubectl create [SUBCOMMAND] pattern 2015-12-14 13:43:45 -05:00
service.go Refactor IntOrString into a new pkg 2015-11-16 10:57:52 -08:00
service_test.go Refactor IntOrString into a new pkg 2015-11-16 10:57:52 -08:00
serviceaccount.go added 'kubectl create sa' to create serviceaccounts 2016-02-26 10:27:37 -05:00
serviceaccount_test.go added 'kubectl create sa' to create serviceaccounts 2016-02-26 10:27:37 -05:00
sorted_event_list.go
sorted_event_list_test.go This commit fixes tests. 2015-11-24 09:16:12 -05:00
sorted_resource_name_list.go Improve rendering of multiple quotas in namespace; show scopes 2016-02-26 20:34:15 -05:00
sorting_printer.go Rename RawJSON to Raw in runtime.Unknown and add ContentType & ContentEncoding. 2016-03-16 16:43:58 +01:00
sorting_printer_test.go Rename RawJSON to Raw in runtime.RawExtension and add ContentType & ContentEncoding. 2016-03-18 12:35:27 +01:00
stop.go Replace ineffective DeleteOptions with nil 2016-02-24 15:06:24 -08:00
stop_test.go ReplicaSetSpec.Template shouldn't be a pointer. 2016-03-09 21:24:16 -08:00
version.go move ServerVersion to DiscoveryClient 2016-01-13 10:11:52 -08:00
watchloop.go