Skip to content

Commit 0bf4cd0

Browse files
authored
Merge pull request #1400 from tkatila/lint-fixes-from-0.26.1-prep
lint fixes found from 0.26.1 release preparation
2 parents ed08d11 + 342554c commit 0bf4cd0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

cmd/gpu_plugin/gpu_plugin.go

+1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ func (dp *devicePlugin) bypathMountsForPci(cardPath, cardName, bypathDir string)
182182
for _, f := range files {
183183
if strings.HasPrefix(f.Name(), linkPrefix) {
184184
absPath := path.Join(bypathDir, f.Name())
185+
185186
mounts = append(mounts, pluginapi.Mount{
186187
ContainerPath: absPath,
187188
HostPath: absPath,

pkg/apis/deviceplugin/v1/webhook_common.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ func validatePluginImage(image, expectedImageName string, expectedMinVersion *ve
4242
imageName := parts[0]
4343
versionStr := parts[1]
4444

45-
// If user provided faulty SHA digest, the image name may include @sha256 suffix so strip it
45+
// If user provided faulty SHA digest, the image name may include @sha256 suffix so strip it.
4646
if strings.TrimSuffix(imageName, "@sha256") != expectedImageName {
47-
return errors.Errorf("incorrect image name %q. Make sure you use '<vendor>/%s'.", imageName, expectedImageName)
47+
return errors.Errorf("incorrect image name %q. Make sure you use '<vendor>/%s'", imageName, expectedImageName)
4848
}
4949

5050
ver, err := version.ParseSemantic(versionStr)
5151
if err != nil {
52-
return errors.Wrapf(err, "unable to parse version %q. Make sure it's either valid SHA digest or semver tag.", versionStr)
52+
return errors.Wrapf(err, "unable to parse version %q. Make sure it's either valid SHA digest or semver tag", versionStr)
5353
}
5454

5555
if !ver.AtLeast(expectedMinVersion) {

0 commit comments

Comments
 (0)