mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #11734 from thockin/cleanup-deprecated-rest-alias
Remove deprecated 'se' resource alias
This commit is contained in:
commit
7b9e2ac63b
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -751,7 +751,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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user