Merge pull request #41343 from p0lyn0mial/kubectl_get_short_names_from_discovery_api

Automatic merge from submit-queue

shortcut expander will take the list of short names from the api ser…

**What this PR does / why we need it**: the shortcut expander will take the list of short names for resources from the API server during the discovery. For backward compatibility a hardcoded list of short names will always be appended while evaluating a short name.
This commit is contained in:
Kubernetes Submit Queue
2017-02-15 09:07:51 -08:00
committed by GitHub
10 changed files with 163 additions and 42 deletions

View File

@@ -3225,6 +3225,7 @@ runTests() {
}
__EOF__
kube::test::get_object_assert storageclass "{{range.items}}{{$id_field}}:{{end}}" 'storage-class-name:'
kube::test::get_object_assert sc "{{range.items}}{{$id_field}}:{{end}}" 'storage-class-name:'
kubectl delete storageclass storage-class-name "${kube_flags[@]}"
# Post-condition: no storage classes
kube::test::get_object_assert storageclass "{{range.items}}{{$id_field}}:{{end}}" ''