k3s/pkg/kubectl
Kubernetes Submit Queue fd3498483b Merge pull request #38835 from p0lyn0mial/shortcutexpander_take_res_from_hardcoded
Automatic merge from submit-queue

ShortcutExpander has been extended in a way that it will examine a ha…

**What this PR does / why we need it**:

ShortcutExpander has been extended in a way that it will examine a hardcoded list of tuples anticipated from the server when searching for an alternative name for the resource.

Note that the list is ordered and the first match will yield the extended resource's name.

One important thing to highlight is that the ShortcutExpander will fall back to PriorityRestMaper to determine the group for the resource.

Also this PR introduces a new shortcut namely sc which will resolve to storageclasses within storage.k8s.io group


**Special notes for your reviewer**: You might want to see https://github.com/kubernetes/kubernetes/pull/38755

**Release note**:

```release-note
```
2017-01-06 10:36:01 -08:00
..
cmd Merge pull request #38835 from p0lyn0mial/shortcutexpander_take_res_from_hardcoded 2017-01-06 10:36:01 -08:00
metricsutil Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
resource Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
testing Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
BUILD Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
OWNERS
apply.go Compute apply patch using versioned object 2016-12-09 16:26:04 -05:00
autoscale.go
bash_comp_utils.go
cluster.go
cluster_test.go
clusterrolebinding.go fix group in create clusterrolebinding 2016-12-22 10:14:11 +08:00
configmap.go
configmap_test.go
custom_column_printer.go Switch to use pkg/apis/meta/v1/unstructured and the new interfaces 2016-12-10 18:05:28 -05:00
custom_column_printer_test.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
deployment.go kubectl: fix 'create deployment' to set container name correctly 2016-12-14 17:32:33 +01:00
deployment_test.go kubectl: fix 'create deployment' to set container name correctly 2016-12-14 17:32:33 +01:00
describe.go ConfigMaps populate environment variables 2017-01-03 11:02:15 -05:00
describe_test.go ConfigMaps populate environment variables 2017-01-03 11:02:15 -05:00
doc.go
explain.go
generate.go
generate_test.go
history.go GetOptions in client calls 2016-12-09 09:42:01 +01:00
interfaces.go
kubectl.go ShortcutExpander has been extended in a way that it will examine a hardcoded list of tuples anticipated from the server when 2016-12-22 17:29:52 +01:00
kubectl_test.go
namespace.go
namespace_test.go
pdb.go refactor: generated 2016-12-03 19:10:46 -05:00
proxy_server.go Make kubectl proxy accept empty path 2016-12-25 18:31:55 +01:00
proxy_server_test.go Make kubectl proxy accept empty path 2016-12-25 18:31:55 +01:00
quota.go
quota_test.go
resource_filter.go reduce decoding times by changing kubectl.Filter(runtime.Object, *PrintOptions)'s return value 2016-12-16 09:37:11 +08:00
resource_printer.go move wideHeader string into handlerEntry 2017-01-06 14:20:50 +08:00
resource_printer_test.go move wideHeader string into handlerEntry 2017-01-06 14:20:50 +08:00
rolebinding.go add create rolebinding 2016-12-21 09:03:27 -05:00
rollback.go
rolling_updater.go kubectl: ignore deleted pods in the rolling updater 2016-12-22 14:26:17 +01:00
rolling_updater_test.go kubectl: ignore deleted pods in the rolling updater 2016-12-22 14:26:17 +01:00
rollout_status.go GetOptions in client calls 2016-12-09 09:42:01 +01:00
rollout_status_test.go
run.go Remove extensions/v1beta1 Job 2016-12-17 00:07:24 +01:00
run_test.go Add test for CronJob generator 2016-12-20 10:00:00 +01:00
scale.go Remove extensions/v1beta1 Job 2016-12-17 00:07:24 +01:00
scale_test.go GetOptions in client calls 2016-12-09 09:42:01 +01:00
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
sorted_resource_name_list.go
sorted_resource_name_list_test.go
sorting_printer.go Sorting printer changed 2016-12-10 18:07:33 -05:00
sorting_printer_test.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
stop.go ReplicaSet has owner ref of the Deployment that created it 2016-12-22 16:45:50 -08:00
stop_test.go GetOptions in client calls 2016-12-09 09:42:01 +01:00
versioned_client.go run hack/update-codegen.sh 2016-12-14 12:39:49 -08:00