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
caf7b9eb
Commit
caf7b9eb
authored
Feb 26, 2016
by
Fabio Yeon
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #21688 from pmorie/kubectl-describe-pod-config
Add describe output for ConfigMap volumes
parents
5de5ecb6
4c61f2ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
describe.go
pkg/kubectl/describe.go
+8
-1
No files found.
pkg/kubectl/describe.go
View file @
caf7b9eb
...
@@ -529,6 +529,8 @@ func describeVolumes(volumes []api.Volume, out io.Writer) {
...
@@ -529,6 +529,8 @@ func describeVolumes(volumes []api.Volume, out io.Writer) {
printGitRepoVolumeSource
(
volume
.
VolumeSource
.
GitRepo
,
out
)
printGitRepoVolumeSource
(
volume
.
VolumeSource
.
GitRepo
,
out
)
case
volume
.
VolumeSource
.
Secret
!=
nil
:
case
volume
.
VolumeSource
.
Secret
!=
nil
:
printSecretVolumeSource
(
volume
.
VolumeSource
.
Secret
,
out
)
printSecretVolumeSource
(
volume
.
VolumeSource
.
Secret
,
out
)
case
volume
.
VolumeSource
.
ConfigMap
!=
nil
:
printConfigMapVolumeSource
(
volume
.
VolumeSource
.
ConfigMap
,
out
)
case
volume
.
VolumeSource
.
NFS
!=
nil
:
case
volume
.
VolumeSource
.
NFS
!=
nil
:
printNFSVolumeSource
(
volume
.
VolumeSource
.
NFS
,
out
)
printNFSVolumeSource
(
volume
.
VolumeSource
.
NFS
,
out
)
case
volume
.
VolumeSource
.
ISCSI
!=
nil
:
case
volume
.
VolumeSource
.
ISCSI
!=
nil
:
...
@@ -581,10 +583,15 @@ func printGitRepoVolumeSource(git *api.GitRepoVolumeSource, out io.Writer) {
...
@@ -581,10 +583,15 @@ func printGitRepoVolumeSource(git *api.GitRepoVolumeSource, out io.Writer) {
}
}
func
printSecretVolumeSource
(
secret
*
api
.
SecretVolumeSource
,
out
io
.
Writer
)
{
func
printSecretVolumeSource
(
secret
*
api
.
SecretVolumeSource
,
out
io
.
Writer
)
{
fmt
.
Fprintf
(
out
,
" Type:
\t
Secret (a
secret that should populate this volume
)
\n
"
+
fmt
.
Fprintf
(
out
,
" Type:
\t
Secret (a
volume populated by a Secret
)
\n
"
+
" SecretName:
\t
%v
\n
"
,
secret
.
SecretName
)
" SecretName:
\t
%v
\n
"
,
secret
.
SecretName
)
}
}
func
printConfigMapVolumeSource
(
configMap
*
api
.
ConfigMapVolumeSource
,
out
io
.
Writer
)
{
fmt
.
Fprintf
(
out
,
" Type:
\t
ConfigMap (a volume populated by a ConfigMap)
\n
"
+
" Name:
\t
%v
\n
"
,
configMap
.
Name
)
}
func
printNFSVolumeSource
(
nfs
*
api
.
NFSVolumeSource
,
out
io
.
Writer
)
{
func
printNFSVolumeSource
(
nfs
*
api
.
NFSVolumeSource
,
out
io
.
Writer
)
{
fmt
.
Fprintf
(
out
,
" Type:
\t
NFS (an NFS mount that lasts the lifetime of a pod)
\n
"
+
fmt
.
Fprintf
(
out
,
" Type:
\t
NFS (an NFS mount that lasts the lifetime of a pod)
\n
"
+
" Server:
\t
%v
\n
"
+
" Server:
\t
%v
\n
"
+
...
...
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