Skip to content

Commit 67305ce

Browse files
Merge pull request #17060 from sabre1041/volumesource-error-msg
Updated error message for supported VolumeSource types
2 parents a7ba63d + 81a3f7c commit 67305ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/specgen/generate/kube/volume.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ func VolumeFromSource(volumeSource v1.VolumeSource, configMaps []v1.ConfigMap, s
245245
case volumeSource.EmptyDir != nil:
246246
return VolumeFromEmptyDir(volumeSource.EmptyDir, volName)
247247
default:
248-
return nil, errors.New("HostPath, ConfigMap, EmptyDir, and PersistentVolumeClaim are currently the only supported VolumeSource")
248+
return nil, errors.New("HostPath, ConfigMap, EmptyDir, Secret, and PersistentVolumeClaim are currently the only supported VolumeSource")
249249
}
250250
}
251251

0 commit comments

Comments
 (0)