Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
b73c53c3
Commit
b73c53c3
authored
Aug 03, 2015
by
Mike Danese
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11363 from feihujiang/fixDeleteCommandWrongDescription
Correct kubectl delete's wrong synopsis
parents
0b3f2171
fa68de4f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
16 deletions
+12
-16
kubectl-delete.1
docs/man/man1/kubectl-delete.1
+3
-4
kubectl.md
docs/user-guide/kubectl/kubectl.md
+2
-3
kubectl_delete.md
docs/user-guide/kubectl/kubectl_delete.md
+4
-5
delete.go
pkg/kubectl/cmd/delete.go
+3
-4
No files found.
docs/man/man1/kubectl-delete.1
View file @
b73c53c3
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
.SH NAME
.SH NAME
.PP
.PP
kubectl delete \- Delete
a resource by filename, stdin, resource and name
, or by resources and label selector.
kubectl delete \- Delete
resources by filenames, stdin, resources and names
, or by resources and label selector.
.SH SYNOPSIS
.SH SYNOPSIS
...
@@ -13,14 +13,13 @@ kubectl delete \- Delete a resource by filename, stdin, resource and name, or by
...
@@ -13,14 +13,13 @@ kubectl delete \- Delete a resource by filename, stdin, resource and name, or by
.SH DESCRIPTION
.SH DESCRIPTION
.PP
.PP
Delete
a resource by filename, stdin, resource and name
, or by resources and label selector.
Delete
resources by filenames, stdin, resources and names
, or by resources and label selector.
.PP
.PP
JSON and YAML formats are accepted.
JSON and YAML formats are accepted.
.PP
.PP
If both a filename and command line arguments are passed, the command line
Only one type of the arguments may be specified: filenames, resources and names, or resources and label selector
arguments are used and the filename is ignored.
.PP
.PP
Note that the delete command does NOT do resource version checks, so if someone
Note that the delete command does NOT do resource version checks, so if someone
...
...
docs/user-guide/kubectl/kubectl.md
View file @
b73c53c3
...
@@ -83,7 +83,7 @@ kubectl
...
@@ -83,7 +83,7 @@ kubectl
*
[
kubectl cluster-info
](
kubectl_cluster-info.md
)
- Display cluster info
*
[
kubectl cluster-info
](
kubectl_cluster-info.md
)
- Display cluster info
*
[
kubectl config
](
kubectl_config.md
)
- config modifies kubeconfig files
*
[
kubectl config
](
kubectl_config.md
)
- config modifies kubeconfig files
*
[
kubectl create
](
kubectl_create.md
)
- Create a resource by filename or stdin
*
[
kubectl create
](
kubectl_create.md
)
- Create a resource by filename or stdin
*
[
kubectl delete
](
kubectl_delete.md
)
- Delete
a resource by filename, stdin, resource and name
, or by resources and label selector.
*
[
kubectl delete
](
kubectl_delete.md
)
- Delete
resources by filenames, stdin, resources and names
, or by resources and label selector.
*
[
kubectl describe
](
kubectl_describe.md
)
- Show details of a specific resource or group of resources
*
[
kubectl describe
](
kubectl_describe.md
)
- Show details of a specific resource or group of resources
*
[
kubectl exec
](
kubectl_exec.md
)
- Execute a command in a container.
*
[
kubectl exec
](
kubectl_exec.md
)
- Execute a command in a container.
*
[
kubectl expose
](
kubectl_expose.md
)
- Take a replicated application and expose it as Kubernetes Service
*
[
kubectl expose
](
kubectl_expose.md
)
- Take a replicated application and expose it as Kubernetes Service
...
@@ -101,8 +101,7 @@ kubectl
...
@@ -101,8 +101,7 @@ kubectl
*
[
kubectl stop
](
kubectl_stop.md
)
- Deprecated: Gracefully shut down a resource by name or filename.
*
[
kubectl stop
](
kubectl_stop.md
)
- Deprecated: Gracefully shut down a resource by name or filename.
*
[
kubectl version
](
kubectl_version.md
)
- Print the client and server version information.
*
[
kubectl version
](
kubectl_version.md
)
- Print the client and server version information.
###### Auto generated by spf13/cobra at 2015-07-30 03:45:17.319803488 +0000 UTC
###### Auto generated by spf13/cobra at 2015-08-03 05:57:27.777459508 +0000 UTC
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[

]()
[

]()
...
...
docs/user-guide/kubectl/kubectl_delete.md
View file @
b73c53c3
...
@@ -33,17 +33,16 @@ Documentation for other releases can be found at
...
@@ -33,17 +33,16 @@ Documentation for other releases can be found at
## kubectl delete
## kubectl delete
Delete
a resource by filename, stdin, resource and name
, or by resources and label selector.
Delete
resources by filenames, stdin, resources and names
, or by resources and label selector.
### Synopsis
### Synopsis
Delete
a resource by filename, stdin, resource and name
, or by resources and label selector.
Delete
resources by filenames, stdin, resources and names
, or by resources and label selector.
JSON and YAML formats are accepted.
JSON and YAML formats are accepted.
If both a filename and command line arguments are passed, the command line
Only one type of the arguments may be specified: filenames, resources and names, or resources and label selector
arguments are used and the filename is ignored.
Note that the delete command does NOT do resource version checks, so if someone
Note that the delete command does NOT do resource version checks, so if someone
submits an update to a resource right when you submit a delete, their update
submits an update to a resource right when you submit a delete, their update
...
@@ -119,7 +118,7 @@ $ kubectl delete pods --all
...
@@ -119,7 +118,7 @@ $ kubectl delete pods --all
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-07-
23 17:43:06.942148224
+0000 UTC
###### Auto generated by spf13/cobra at 2015-07-
31 02:09:06.816515226
+0000 UTC
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
...
...
pkg/kubectl/cmd/delete.go
View file @
b73c53c3
...
@@ -33,12 +33,11 @@ import (
...
@@ -33,12 +33,11 @@ import (
)
)
const
(
const
(
delete_long
=
`Delete
a resource by filename, stdin, resource and name
, or by resources and label selector.
delete_long
=
`Delete
resources by filenames, stdin, resources and names
, or by resources and label selector.
JSON and YAML formats are accepted.
JSON and YAML formats are accepted.
If both a filename and command line arguments are passed, the command line
Only one type of the arguments may be specified: filenames, resources and names, or resources and label selector
arguments are used and the filename is ignored.
Note that the delete command does NOT do resource version checks, so if someone
Note that the delete command does NOT do resource version checks, so if someone
submits an update to a resource right when you submit a delete, their update
submits an update to a resource right when you submit a delete, their update
...
@@ -63,7 +62,7 @@ func NewCmdDelete(f *cmdutil.Factory, out io.Writer) *cobra.Command {
...
@@ -63,7 +62,7 @@ func NewCmdDelete(f *cmdutil.Factory, out io.Writer) *cobra.Command {
var
filenames
util
.
StringList
var
filenames
util
.
StringList
cmd
:=
&
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"delete ([-f FILENAME] | (RESOURCE [(NAME | -l label | --all)]"
,
Use
:
"delete ([-f FILENAME] | (RESOURCE [(NAME | -l label | --all)]"
,
Short
:
"Delete
a resource by filename, stdin, resource and name
, or by resources and label selector."
,
Short
:
"Delete
resources by filenames, stdin, resources and names
, or by resources and label selector."
,
Long
:
delete_long
,
Long
:
delete_long
,
Example
:
delete_example
,
Example
:
delete_example
,
Run
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
Run
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment