docstring improvements and typo fixes (#7862)

This commit is contained in:
Tim Gross 2020-05-05 10:30:50 -04:00 committed by GitHub
parent a0df437c62
commit 22e3815e8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -712,6 +712,10 @@ func (p *CSIPlugin) AddPlugin(nodeID string, info *CSIInfo) error {
p.ControllersHealthy -= 1
}
}
// note: for this to work as expected, only a single
// controller for a given plugin can be on a given Nomad
// client, they also conflict on the client so this should be
// ok
p.Controllers[nodeID] = info
if info.Healthy {
p.ControllersHealthy += 1

View File

@ -121,7 +121,7 @@ type CSIControllerInfo struct {
// the controller attachment flow.
SupportsAttachDetach bool
// SupportsListVolums is true when the controller implements the ListVolumes
// SupportsListVolumes is true when the controller implements the ListVolumes
// RPC. NOTE: This does not guaruntee that attached nodes will be returned
// unless SupportsListVolumesAttachedNodes is also true.
SupportsListVolumes bool