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
cfdff1ae
Commit
cfdff1ae
authored
Aug 21, 2017
by
Balu Dontu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Multi-Attach volume fix for vSphere
parent
cb8ade18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
reconciler.go
pkg/controller/volume/attachdetach/reconciler/reconciler.go
+5
-0
No files found.
pkg/controller/volume/attachdetach/reconciler/reconciler.go
View file @
cfdff1ae
...
...
@@ -148,6 +148,11 @@ func (rc *reconciler) isMultiAttachForbidden(volumeSpec *volume.Spec) bool {
// Only if this volume is a persistent volume, we have reliable information on wether it's allowed or not to
// multi-attach. We trust in the individual volume implementations to not allow unsupported access modes
if
volumeSpec
.
PersistentVolume
!=
nil
{
// Check for persistent volume types which do not fail when trying to multi-attach
if
volumeSpec
.
PersistentVolume
.
Spec
.
VsphereVolume
!=
nil
{
return
false
}
if
len
(
volumeSpec
.
PersistentVolume
.
Spec
.
AccessModes
)
==
0
{
// No access mode specified so we don't know for sure. Let the attacher fail if needed
return
false
...
...
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