Add abbreviation for ReadWriteOncePod PV access mode (#1227)
* Bump k8s.io dependencies to 0.22.0 * Add abbreviation for ReadWriteOncePod PV access modemine
parent
5e914dd44b
commit
04e7e28e15
12
go.mod
12
go.mod
|
|
@ -36,12 +36,12 @@ require (
|
|||
golang.org/x/text v0.3.6
|
||||
gopkg.in/yaml.v2 v2.4.0
|
||||
helm.sh/helm/v3 v3.6.3
|
||||
k8s.io/api v0.21.3
|
||||
k8s.io/apimachinery v0.21.3
|
||||
k8s.io/cli-runtime v0.21.3
|
||||
k8s.io/client-go v0.21.3
|
||||
k8s.io/api v0.22.0
|
||||
k8s.io/apimachinery v0.22.0
|
||||
k8s.io/cli-runtime v0.22.0
|
||||
k8s.io/client-go v0.22.0
|
||||
k8s.io/klog/v2 v2.10.0
|
||||
k8s.io/kubectl v0.21.3
|
||||
k8s.io/metrics v0.21.3
|
||||
k8s.io/kubectl v0.22.0
|
||||
k8s.io/metrics v0.22.0
|
||||
sigs.k8s.io/yaml v1.2.0
|
||||
)
|
||||
|
|
|
|||
|
|
@ -134,6 +134,8 @@ func accessMode(aa []v1.PersistentVolumeAccessMode) string {
|
|||
s = append(s, "ROX")
|
||||
case accessContains(dd, v1.ReadWriteMany):
|
||||
s = append(s, "RWX")
|
||||
case accessContains(dd, v1.ReadWriteOncePod):
|
||||
s = append(s, "RWOP")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue