Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
golangci
  • Loading branch information
miampf committed Oct 17, 2024
1 parent 10b05ee commit 8fc4293
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion e2e/aks-runtime/aks_runtime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func TestAKSRuntime(t *testing.T) {
resourceBytes, err := kuberesource.EncodeUnstructured(toWrite)
require.NoError(err)
require.NoError(os.WriteFile(path.Join(workdir, "resources.yaml"), resourceBytes, 0o644))
require.NoError(az.KataPolicyGen(t, path.Join(workdir, "resources.yaml")))
require.NoError(az.KataPolicyGen(path.Join(workdir, "resources.yaml")))

// load in generated resources and patch the runtime handler again
resourceBytes, err = os.ReadFile(path.Join(workdir, "resources.yaml"))
Expand Down
3 changes: 1 addition & 2 deletions e2e/internal/az/confcom.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ package az
import (
"os/exec"
"strings"
"testing"
)

// KataPolicyGenVersion gets the version string of `az confcom katapolicygen`.
Expand All @@ -21,6 +20,6 @@ func KataPolicyGenVersion() (string, error) {
}

// KataPolicyGen executes `az confcom katapolicygen --yaml <resourcePath>`.
func KataPolicyGen(t *testing.T, resourcePath string) error {
func KataPolicyGen(resourcePath string) error {
return exec.Command("az", "confcom", "katapolicygen", "--yaml", resourcePath).Run()
}
1 change: 1 addition & 0 deletions e2e/internal/contrasttest/contrasttest.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ func (ct *ContrastTest) FactorPlatformTimeout(timeout time.Duration) time.Durati
}
}

// MakeNamespace creates a namespace string using a given *testing.T.
func MakeNamespace(t *testing.T) string {
buf := make([]byte, 4)
re := regexp.MustCompile("[a-z0-9-]+")
Expand Down
2 changes: 1 addition & 1 deletion packages/by-name/contrast/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ let
makeWrapper
];

ldflags = [
ldflags = [
"-s"
];

Expand Down

0 comments on commit 8fc4293

Please sign in to comment.