mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 11:13:48 +00:00
Fixed error string should not be capitalized
This commit is contained in:
parent
23b66eaabd
commit
a60cbd5535
@ -160,7 +160,7 @@ func (plugin *hostPathPlugin) NewDeleter(spec *volume.Spec) (volume.Deleter, err
|
|||||||
|
|
||||||
func (plugin *hostPathPlugin) NewProvisioner(options volume.VolumeOptions) (volume.Provisioner, error) {
|
func (plugin *hostPathPlugin) NewProvisioner(options volume.VolumeOptions) (volume.Provisioner, error) {
|
||||||
if !plugin.config.ProvisioningEnabled {
|
if !plugin.config.ProvisioningEnabled {
|
||||||
return nil, fmt.Errorf("Provisioning in volume plugin %q is disabled", plugin.GetPluginName())
|
return nil, fmt.Errorf("provisioning in volume plugin %q is disabled", plugin.GetPluginName())
|
||||||
}
|
}
|
||||||
return newProvisioner(options, plugin.host, plugin)
|
return newProvisioner(options, plugin.host, plugin)
|
||||||
}
|
}
|
||||||
@ -341,7 +341,7 @@ func getVolumeSource(spec *volume.Spec) (*v1.HostPathVolumeSource, bool, error)
|
|||||||
return spec.PersistentVolume.Spec.HostPath, spec.ReadOnly, nil
|
return spec.PersistentVolume.Spec.HostPath, spec.ReadOnly, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil, false, fmt.Errorf("Spec does not reference an HostPath volume type")
|
return nil, false, fmt.Errorf("spec does not reference an HostPath volume type")
|
||||||
}
|
}
|
||||||
|
|
||||||
type hostPathTypeChecker interface {
|
type hostPathTypeChecker interface {
|
||||||
|
Loading…
Reference in New Issue
Block a user