Improve object management page by adding a hint

The current instruction doesn't work if one is using `generateName`
field when creating an object.
This commit is contained in:
Qiming Teng
2020-09-08 15:14:16 +08:00
parent 942fca9b29
commit 7ff239625b
@@ -64,6 +64,18 @@ configuration file.
* `kubectl delete -f <filename|url>`
{{< note >}}
If configuration file has specified the `generateName` field in the `metadata`
section instead of the `name` field, you cannot delete the object using
`kubectl delete -f <filename|url>`.
You will have to use other flags for deleting the object. For example:
```shell
kubectl delete <type> <name>
kubectl delete <type> -l <label>
```
{{< /note >}}
## How to view an object
You can use `kubectl get -f` to view information about an object that is