Updated error message for supported VolumeSource types

Signed-off-by: Andrew Block <andy.block@gmail.com>
This commit is contained in:
Andrew Block 2023-01-10 14:23:25 -06:00
parent 7c95a5df92
commit 81a3f7cb80
No known key found for this signature in database
GPG Key ID: 02DFE631AEF35EBC
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ func VolumeFromSource(volumeSource v1.VolumeSource, configMaps []v1.ConfigMap, s
case volumeSource.EmptyDir != nil:
return VolumeFromEmptyDir(volumeSource.EmptyDir, volName)
default:
return nil, errors.New("HostPath, ConfigMap, EmptyDir, and PersistentVolumeClaim are currently the only supported VolumeSource")
return nil, errors.New("HostPath, ConfigMap, EmptyDir, Secret, and PersistentVolumeClaim are currently the only supported VolumeSource")
}
}