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
06b1eae6
Commit
06b1eae6
authored
Jun 25, 2018
by
WanLinghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a return miss bug
parent
7a9a30a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
projected.go
pkg/volume/projected/projected.go
+2
-6
No files found.
pkg/volume/projected/projected.go
View file @
06b1eae6
...
@@ -362,13 +362,9 @@ func (c *projectedVolumeUnmounter) TearDownAt(dir string) error {
...
@@ -362,13 +362,9 @@ func (c *projectedVolumeUnmounter) TearDownAt(dir string) error {
}
}
func
getVolumeSource
(
spec
*
volume
.
Spec
)
(
*
v1
.
ProjectedVolumeSource
,
bool
,
error
)
{
func
getVolumeSource
(
spec
*
volume
.
Spec
)
(
*
v1
.
ProjectedVolumeSource
,
bool
,
error
)
{
var
readOnly
bool
var
volumeSource
*
v1
.
ProjectedVolumeSource
if
spec
.
Volume
!=
nil
&&
spec
.
Volume
.
Projected
!=
nil
{
if
spec
.
Volume
!=
nil
&&
spec
.
Volume
.
Projected
!=
nil
{
volumeSource
=
spec
.
Volume
.
Projected
return
spec
.
Volume
.
Projected
,
spec
.
ReadOnly
,
nil
readOnly
=
spec
.
ReadOnly
}
}
return
volumeSource
,
readOnly
,
fmt
.
Errorf
(
"Spec does not reference a projected volume type"
)
return
nil
,
false
,
fmt
.
Errorf
(
"Spec does not reference a projected volume type"
)
}
}
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