Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
058a8daa
Unverified
Commit
058a8daa
authored
5 years ago
by
Tim Gross
Committed by
GitHub
5 years ago
Browse files
Options
Download
Email Patches
Plain Diff
docstring improvements and typo fixes (#7862)
parent
65f09ed1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
nomad/structs/csi.go
+4
-0
nomad/structs/csi.go
nomad/structs/node.go
+1
-1
nomad/structs/node.go
with
5 additions
and
1 deletion
+5
-1
nomad/structs/csi.go
+
4
-
0
View file @
058a8daa
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
nomad/structs/node.go
+
1
-
1
View file @
058a8daa
...
...
@@ -121,7 +121,7 @@ type CSIControllerInfo struct {
// the controller attachment flow.
SupportsAttachDetach
bool
// SupportsListVolums is true when the controller implements the ListVolumes
// SupportsListVolum
e
s 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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help