mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
add description of mount options to StorageClass describe printer
This commit is contained in:
parent
4ebaddb6b7
commit
37569ca97d
@ -3285,6 +3285,14 @@ func describeStorageClass(sc *storage.StorageClass, events *api.EventList) (stri
|
|||||||
w.Write(LEVEL_0, "Provisioner:\t%s\n", sc.Provisioner)
|
w.Write(LEVEL_0, "Provisioner:\t%s\n", sc.Provisioner)
|
||||||
w.Write(LEVEL_0, "Parameters:\t%s\n", labels.FormatLabels(sc.Parameters))
|
w.Write(LEVEL_0, "Parameters:\t%s\n", labels.FormatLabels(sc.Parameters))
|
||||||
w.Write(LEVEL_0, "AllowVolumeExpansion:\t%s\n", printBoolPtr(sc.AllowVolumeExpansion))
|
w.Write(LEVEL_0, "AllowVolumeExpansion:\t%s\n", printBoolPtr(sc.AllowVolumeExpansion))
|
||||||
|
if len(sc.MountOptions) == 0 {
|
||||||
|
w.Write(LEVEL_0, "MountOptions:\t<none>\n")
|
||||||
|
} else {
|
||||||
|
w.Write(LEVEL_0, "MountOptions:\n")
|
||||||
|
for _, option := range sc.MountOptions {
|
||||||
|
w.Write(LEVEL_1, "%s\n", option)
|
||||||
|
}
|
||||||
|
}
|
||||||
if sc.ReclaimPolicy != nil {
|
if sc.ReclaimPolicy != nil {
|
||||||
w.Write(LEVEL_0, "ReclaimPolicy:\t%s\n", *sc.ReclaimPolicy)
|
w.Write(LEVEL_0, "ReclaimPolicy:\t%s\n", *sc.ReclaimPolicy)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user