mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
csi: remove redundant namespace field from volume status output (#24432)
The `volume status :id` command outputs the namespace for a CSI volume twice. Drop the second output. Ref: https://github.com/hashicorp/nomad/pull/24382#discussion_r1837097250
This commit is contained in:
3
.changelog/24432.txt
Normal file
3
.changelog/24432.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
csi: Removed redundant namespace output from volume status command
|
||||
```
|
||||
@@ -205,11 +205,9 @@ func (c *VolumeStatusCommand) formatBasic(vol *api.CSIVolume) (string, error) {
|
||||
fmt.Sprintf("Controllers Expected|%d", vol.ControllersExpected),
|
||||
fmt.Sprintf("Nodes Healthy|%d", vol.NodesHealthy),
|
||||
fmt.Sprintf("Nodes Expected|%d", vol.NodesExpected),
|
||||
|
||||
fmt.Sprintf("Access Mode|%s", vol.AccessMode),
|
||||
fmt.Sprintf("Attachment Mode|%s", vol.AttachmentMode),
|
||||
fmt.Sprintf("Mount Options|%s", csiVolMountOption(vol.MountOptions, nil)),
|
||||
fmt.Sprintf("Namespace|%s", vol.Namespace),
|
||||
}
|
||||
|
||||
// Exit early
|
||||
|
||||
Reference in New Issue
Block a user