Skip to content

Commit

Permalink
update-gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbeeSo committed Dec 11, 2023
1 parent adf5564 commit b2b72f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/mounter/ossfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (f *fuseOssfs) buildPodSpec(
container.VolumeMounts = append(container.VolumeMounts, mimeVolumeMount)
}

if authCfg == nil || authCfg.AuthType != AuthTypeSTS{
if authCfg == nil || authCfg.AuthType != AuthTypeSTS {
passwdMountDir := "/etc/ossfs"
passwdFilename := "passwd-ossfs"
passwdSecretVolume := corev1.Volume{
Expand Down Expand Up @@ -191,7 +191,7 @@ func (f *fuseOssfs) buildPodSpec(
// FUSE foreground option - do not run as daemon
args = append(args, "-f")
container.Args = args

spec.Containers = []corev1.Container{container}
spec.RestartPolicy = corev1.RestartPolicyOnFailure
spec.NodeName = nodeName
Expand Down
2 changes: 1 addition & 1 deletion pkg/oss/nodeserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestGetDiskVolumeOptions(t *testing.T) {
options.URL = "1.1.1.1"
options.AkID = ""
err = checkOssOptions(options)
assert.Equal(t, "Oss Parametes error: AK and authType are both empty ", err.Error())
assert.Equal(t, "Oss Parametes error: AK and authType are both empty or invalid ", err.Error())

options.AkID = "2222"
// reset AkSecret in checkOssOptions when AkID = ""
Expand Down

0 comments on commit b2b72f0

Please sign in to comment.