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
036ac359
Commit
036ac359
authored
May 03, 2016
by
AdoHe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update kubectl apply help info
parent
be21fe78
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
2 deletions
+7
-2
kubectl-apply.1
docs/man/man1/kubectl-apply.1
+1
-0
kubectl_apply.md
docs/user-guide/kubectl/kubectl_apply.md
+2
-1
kubectl_apply.yaml
docs/yaml/kubectl/kubectl_apply.yaml
+3
-1
apply.go
pkg/kubectl/cmd/apply.go
+1
-0
No files found.
docs/man/man1/kubectl-apply.1
View file @
036ac359
...
...
@@ -15,6 +15,7 @@ kubectl apply \- Apply a configuration to a resource by filename or stdin
.PP
Apply a configuration to a resource by filename or stdin.
The resource will be created if it doesn't exist yet.
To use 'apply', always create the resource initially with either 'apply' or 'create \-\-save\-config'.
.PP
JSON and YAML formats are accepted.
...
...
docs/user-guide/kubectl/kubectl_apply.md
View file @
036ac359
...
...
@@ -41,6 +41,7 @@ Apply a configuration to a resource by filename or stdin
Apply a configuration to a resource by filename or stdin.
The resource will be created if it doesn't exist yet.
To use 'apply', always create the resource initially with either 'apply' or 'create --save-config'.
JSON and YAML formats are accepted.
...
...
@@ -102,7 +103,7 @@ cat pod.json | kubectl apply -f -
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra on 3
0-Mar
-2016
###### Auto generated by spf13/cobra on 3
-May
-2016
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[

]()
...
...
docs/yaml/kubectl/kubectl_apply.yaml
View file @
036ac359
name
:
apply
synopsis
:
Apply a configuration to a resource by filename or stdin
description
:
"
Apply
a
configuration
to
a
resource
by
filename
or
stdin.
\n
The
resource
will
be
created
if
it
doesn't
exist
yet.
\n\n
JSON
and
YAML
formats
are
accepted."
will
be
created
if
it
doesn't
exist
yet.
\n
To
use
'apply',
always
create
the
resource
initially
with
either
'apply'
or
'create
--save-config'.
\n\n
JSON
and
YAML
formats
are
accepted."
options
:
-
name
:
filename
shorthand
:
f
...
...
pkg/kubectl/cmd/apply.go
View file @
036ac359
...
...
@@ -41,6 +41,7 @@ type ApplyOptions struct {
const
(
apply_long
=
`Apply a configuration to a resource by filename or stdin.
The resource will be created if it doesn't exist yet.
To use 'apply', always create the resource initially with either 'apply' or 'create --save-config'.
JSON and YAML formats are accepted.`
apply_example
=
`# Apply the configuration in pod.json to a pod.
...
...
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