We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a145f15 + a43cc08 commit ceb58a4Copy full SHA for ceb58a4
pkg/volume/image/image.go
@@ -49,7 +49,7 @@ func (o *imagePlugin) GetPluginName() string { return
49
func (o *imagePlugin) GetVolumeName(spec *volume.Spec) (string, error) { return o.spec.Name(), nil }
50
51
func (o *imagePlugin) CanSupport(spec *volume.Spec) bool {
52
- return spec.Volume.Image != nil
+ return spec != nil && spec.Volume != nil && spec.Volume.Image != nil
53
}
54
55
func (o *imagePlugin) NewMounter(spec *volume.Spec, podRef *v1.Pod) (volume.Mounter, error) {
0 commit comments