mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-21 09:34:40 +00:00
Merge pull request #71313 from wozniakjan/kubectl/fix_pv_describe_openstack
kubectl: fix PV describe output for Cinder
This commit is contained in:
commit
62e8a1bf40
@ -1041,18 +1041,18 @@ func printCinderVolumeSource(cinder *corev1.CinderVolumeSource, w PrefixWriter)
|
|||||||
w.Write(LEVEL_2, "Type:\tCinder (a Persistent Disk resource in OpenStack)\n"+
|
w.Write(LEVEL_2, "Type:\tCinder (a Persistent Disk resource in OpenStack)\n"+
|
||||||
" VolumeID:\t%v\n"+
|
" VolumeID:\t%v\n"+
|
||||||
" FSType:\t%v\n"+
|
" FSType:\t%v\n"+
|
||||||
" ReadOnly:\t%v\n",
|
" ReadOnly:\t%v\n"+
|
||||||
" SecretRef:\t%v\n"+
|
" SecretRef:\t%v\n",
|
||||||
cinder.VolumeID, cinder.FSType, cinder.ReadOnly, cinder.SecretRef)
|
cinder.VolumeID, cinder.FSType, cinder.ReadOnly, cinder.SecretRef)
|
||||||
}
|
}
|
||||||
|
|
||||||
func printCinderPersistentVolumeSource(cinder *corev1.CinderPersistentVolumeSource, w PrefixWriter) {
|
func printCinderPersistentVolumeSource(cinder *corev1.CinderPersistentVolumeSource, w PrefixWriter) {
|
||||||
w.Write(LEVEL_2, "Type:\tCinder (a Persistent Disk resource in OpenStack)\n"+
|
w.Write(LEVEL_2, "Type:\tCinder (a Persistent Disk resource in OpenStack)\n"+
|
||||||
" VolumeID:\t%v\n"+
|
" VolumeID:\t%v\n"+
|
||||||
" FSType:\t%v\n"+
|
" FSType:\t%v\n"+
|
||||||
" ReadOnly:\t%v\n",
|
" ReadOnly:\t%v\n"+
|
||||||
" SecretRef:\t%v\n"+
|
" SecretRef:\t%v\n",
|
||||||
cinder.VolumeID, cinder.SecretRef, cinder.FSType, cinder.ReadOnly, cinder.SecretRef)
|
cinder.VolumeID, cinder.FSType, cinder.ReadOnly, cinder.SecretRef)
|
||||||
}
|
}
|
||||||
|
|
||||||
func printScaleIOVolumeSource(sio *corev1.ScaleIOVolumeSource, w PrefixWriter) {
|
func printScaleIOVolumeSource(sio *corev1.ScaleIOVolumeSource, w PrefixWriter) {
|
||||||
|
Loading…
Reference in New Issue
Block a user