Remove deprecated 'se' resource alias

This commit is contained in:
Tim Hockin 2015-07-22 12:00:25 -07:00
parent dfe1eb9b96
commit c4b707192d
3 changed files with 2 additions and 3 deletions

View File

@ -116,7 +116,7 @@ kubectl create -f examples/rethinkdb/admin-service.yaml
find the service
```sh
$kubectl get se
$kubectl get services
NAME LABELS SELECTOR IP(S) PORT(S)
[...]
rethinkdb-admin db=influxdb db=rethinkdb,role=admin 10.0.131.19 8080/TCP

View File

@ -114,7 +114,6 @@ func expandResourceShortcut(resource string) string {
"pvc": "persistentvolumeclaims",
"quota": "resourcequotas",
"rc": "replicationcontrollers",
"se": "services", // DEPRECATED: will be removed before 1.0
"svc": "services",
}
if expanded, ok := shortForms[resource]; ok {

View File

@ -748,7 +748,7 @@ func cleanup(filePath string, ns string, selectors ...string) {
runKubectl("stop", "-f", filePath, nsArg)
for _, selector := range selectors {
resources := runKubectl("get", "pods,rc,se", "-l", selector, "--no-headers", nsArg)
resources := runKubectl("get", "pods,rc,svc", "-l", selector, "--no-headers", nsArg)
if resources != "" {
Failf("Resources left running after stop:\n%s", resources)
}