mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
[volume] VolumeMode nil pointer check
This commit is contained in:
parent
a7f43a7203
commit
2061924b0f
@ -70,7 +70,7 @@ func TestGetVolumeSpecFromGlobalMapPath(t *testing.T) {
|
||||
}
|
||||
block := v1.PersistentVolumeBlock
|
||||
specMode := spec.PersistentVolume.Spec.VolumeMode
|
||||
if &specMode == nil {
|
||||
if specMode == nil {
|
||||
t.Errorf("Invalid volumeMode from GlobalMapPath spec: %v expected: %v", &specMode, block)
|
||||
}
|
||||
if *specMode != block {
|
||||
|
Loading…
Reference in New Issue
Block a user