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
cc3515d7
Commit
cc3515d7
authored
Nov 24, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #17136 from kargakis/use-deprecation-field-in-stop
Auto commit by PR queue bot
parents
d4203017
3c7b9f83
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
36 deletions
+6
-36
.generated_docs
.generated_docs
+0
-1
kubectl
contrib/completions/bash/kubectl
+0
-30
kubectl.md
docs/user-guide/kubectl/kubectl.md
+0
-1
stop.go
pkg/kubectl/cmd/stop.go
+6
-4
No files found.
.generated_docs
View file @
cc3515d7
...
@@ -75,5 +75,4 @@ docs/user-guide/kubectl/kubectl_replace.md
...
@@ -75,5 +75,4 @@ docs/user-guide/kubectl/kubectl_replace.md
docs/user-guide/kubectl/kubectl_rolling-update.md
docs/user-guide/kubectl/kubectl_rolling-update.md
docs/user-guide/kubectl/kubectl_run.md
docs/user-guide/kubectl/kubectl_run.md
docs/user-guide/kubectl/kubectl_scale.md
docs/user-guide/kubectl/kubectl_scale.md
docs/user-guide/kubectl/kubectl_stop.md
docs/user-guide/kubectl/kubectl_version.md
docs/user-guide/kubectl/kubectl_version.md
contrib/completions/bash/kubectl
View file @
cc3515d7
...
@@ -787,35 +787,6 @@ _kubectl_run()
...
@@ -787,35 +787,6 @@ _kubectl_run()
must_have_one_noun
=()
must_have_one_noun
=()
}
}
_kubectl_stop
()
{
last_command
=
"kubectl_stop"
commands
=()
flags
=()
two_word_flags
=()
flags_with_completion
=()
flags_completion
=()
flags+
=(
"--all"
)
flags+
=(
"--filename="
)
flags_with_completion+
=(
"--filename"
)
flags_completion+
=(
"__handle_filename_extension_flag json|yaml|yml"
)
two_word_flags+
=(
"-f"
)
flags_with_completion+
=(
"-f"
)
flags_completion+
=(
"__handle_filename_extension_flag json|yaml|yml"
)
flags+
=(
"--grace-period="
)
flags+
=(
"--ignore-not-found"
)
flags+
=(
"--output="
)
two_word_flags+
=(
"-o"
)
flags+
=(
"--selector="
)
two_word_flags+
=(
"-l"
)
flags+
=(
"--timeout="
)
must_have_one_flag
=()
must_have_one_noun
=()
}
_kubectl_expose
()
_kubectl_expose
()
{
{
last_command
=
"kubectl_expose"
last_command
=
"kubectl_expose"
...
@@ -1265,7 +1236,6 @@ _kubectl()
...
@@ -1265,7 +1236,6 @@ _kubectl()
commands+
=(
"port-forward"
)
commands+
=(
"port-forward"
)
commands+
=(
"proxy"
)
commands+
=(
"proxy"
)
commands+
=(
"run"
)
commands+
=(
"run"
)
commands+
=(
"stop"
)
commands+
=(
"expose"
)
commands+
=(
"expose"
)
commands+
=(
"autoscale"
)
commands+
=(
"autoscale"
)
commands+
=(
"label"
)
commands+
=(
"label"
)
...
...
docs/user-guide/kubectl/kubectl.md
View file @
cc3515d7
...
@@ -102,7 +102,6 @@ kubectl
...
@@ -102,7 +102,6 @@ kubectl
*
[
kubectl rolling-update
](
kubectl_rolling-update.md
)
- Perform a rolling update of the given ReplicationController.
*
[
kubectl rolling-update
](
kubectl_rolling-update.md
)
- Perform a rolling update of the given ReplicationController.
*
[
kubectl run
](
kubectl_run.md
)
- Run a particular image on the cluster.
*
[
kubectl run
](
kubectl_run.md
)
- Run a particular image on the cluster.
*
[
kubectl scale
](
kubectl_scale.md
)
- Set a new size for a Replication Controller.
*
[
kubectl scale
](
kubectl_scale.md
)
- Set a new size for a Replication Controller.
*
[
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 on 24-Nov-2015
###### Auto generated by spf13/cobra on 24-Nov-2015
...
...
pkg/kubectl/cmd/stop.go
View file @
cc3515d7
...
@@ -17,6 +17,7 @@ limitations under the License.
...
@@ -17,6 +17,7 @@ limitations under the License.
package
cmd
package
cmd
import
(
import
(
"fmt"
"io"
"io"
"github.com/spf13/cobra"
"github.com/spf13/cobra"
...
@@ -56,10 +57,11 @@ func NewCmdStop(f *cmdutil.Factory, out io.Writer) *cobra.Command {
...
@@ -56,10 +57,11 @@ func NewCmdStop(f *cmdutil.Factory, out io.Writer) *cobra.Command {
options
:=
&
StopOptions
{}
options
:=
&
StopOptions
{}
cmd
:=
&
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"stop (-f FILENAME | TYPE (NAME | -l label | --all))"
,
Use
:
"stop (-f FILENAME | TYPE (NAME | -l label | --all))"
,
Short
:
"Deprecated: Gracefully shut down a resource by name or filename."
,
Short
:
"Deprecated: Gracefully shut down a resource by name or filename."
,
Long
:
stop_long
,
Long
:
stop_long
,
Example
:
stop_example
,
Example
:
stop_example
,
Deprecated
:
fmt
.
Sprintf
(
"use %q instead."
,
"delete"
),
Run
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
Run
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
cmdutil
.
CheckErr
(
cmdutil
.
ValidateOutputArgs
(
cmd
))
cmdutil
.
CheckErr
(
cmdutil
.
ValidateOutputArgs
(
cmd
))
cmdutil
.
CheckErr
(
RunStop
(
f
,
cmd
,
args
,
out
,
options
))
cmdutil
.
CheckErr
(
RunStop
(
f
,
cmd
,
args
,
out
,
options
))
...
...
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