From dd90ee327fef00629c8d06a39923e871ff44f2ad Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Thu, 30 Apr 2020 17:04:05 -0400 Subject: [PATCH] docstring improvements and typo fixes --- nomad/structs/csi.go | 4 ++++ nomad/structs/node.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nomad/structs/csi.go b/nomad/structs/csi.go index 457de5128e98..c69fada688f1 100644 --- a/nomad/structs/csi.go +++ b/nomad/structs/csi.go @@ -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 diff --git a/nomad/structs/node.go b/nomad/structs/node.go index b8d4ea5f96b0..a49cda0310b6 100644 --- a/nomad/structs/node.go +++ b/nomad/structs/node.go @@ -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