Skip to content

Commit

Permalink
lint run --fix
Browse files Browse the repository at this point in the history
Signed-off-by: Tiger Kaovilai <[email protected]>
  • Loading branch information
kaovilai committed Mar 6, 2025
1 parent f99b74d commit a1c4c95
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion internal/resourcepolicies/resource_policies.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type Action struct {
type VolumePolicy struct {
// Conditions defined list of conditions to match Volumes
Conditions map[string]any `yaml:"conditions"`
Action Action `yaml:"action"`
Action Action `yaml:"action"`
}

// resourcePolicies currently defined slice of volume policies to handle backup
Expand Down
2 changes: 1 addition & 1 deletion pkg/repository/udmrepo/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type ManifestEntryMetadata struct {
}

type RepoManifest struct {
Payload any // The user data of manifest
Payload any // The user data of manifest
Metadata *ManifestEntryMetadata // The metadata data of manifest
}

Expand Down
2 changes: 1 addition & 1 deletion test/util/velero/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ func PrepareVelero(ctx context.Context, caseName string, veleroCfg test.VeleroCo
}

func VeleroUninstall(ctx context.Context, veleroCfg test.VeleroConfig) error {
if stdout, stderr, err := velerexec.RunCommand(exec.CommandContext( //nolint:gosec // test code
if stdout, stderr, err := velerexec.RunCommand(exec.CommandContext(
ctx,
veleroCfg.VeleroCLI,
"uninstall",
Expand Down
6 changes: 3 additions & 3 deletions test/util/velero/velero_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ import (
cliinstall "github.com/vmware-tanzu/velero/pkg/cmd/cli/install"
"github.com/vmware-tanzu/velero/pkg/cmd/util/flag"
veleroexec "github.com/vmware-tanzu/velero/pkg/util/exec"
. "github.com/vmware-tanzu/velero/test" //nolint:stylecheck // test code
. "github.com/vmware-tanzu/velero/test"
common "github.com/vmware-tanzu/velero/test/util/common"
util "github.com/vmware-tanzu/velero/test/util/csi"
. "github.com/vmware-tanzu/velero/test/util/k8s" //nolint:stylecheck // test code
. "github.com/vmware-tanzu/velero/test/util/k8s"
)

const BackupObjectsPrefix = "backups"
Expand Down Expand Up @@ -926,7 +926,7 @@ func InstallVeleroCLI(version string) (string, error) {
return false, errors.WithMessagef(err, "failed to create temp dir for tarball extraction")
}

cmd := exec.Command("tar", "-xvf", tempFile.Name(), "-C", tempVeleroCliDir) //nolint:gosec // test code
cmd := exec.Command("tar", "-xvf", tempFile.Name(), "-C", tempVeleroCliDir)
defer os.Remove(tempFile.Name())

if _, err := cmd.Output(); err != nil {
Expand Down

0 comments on commit a1c4c95

Please sign in to comment.