Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
ericzzzzzzz committed Apr 22, 2024
1 parent d72ba2a commit c2c1c22
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions cmd/sidecarlogartifacts/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ package main
import (
"encoding/json"
"flag"
"github.com/tektoncd/pipeline/internal/sidecarlogartifacts"
"github.com/tektoncd/pipeline/pkg/pod"
"log"
"os"
"strings"

"github.com/tektoncd/pipeline/internal/sidecarlogartifacts"
"github.com/tektoncd/pipeline/pkg/pod"
)

func main() {
Expand Down
7 changes: 4 additions & 3 deletions internal/sidecarlogartifacts/sidecarlogartifacts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ package sidecarlogartifacts
import (
"context"
"encoding/json"
"os"
"path/filepath"
"testing"

"github.com/google/go-cmp/cmp"
v1 "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1"
"github.com/tektoncd/pipeline/test/diff"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
fakekubeclientset "k8s.io/client-go/kubernetes/fake"
"os"
"path/filepath"
"testing"
)

func TestLookForArtifacts_WaitForFiles(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion pkg/pod/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,6 @@ func usesWindows(tr *v1.TaskRun) bool {
// that will allow it to run in namespaces with "restricted" pod security admission.
// It will also provide arguments to the binary that allow it to surface the step artifacts.
func createArtifactsSidecar(taskSpec v1.TaskSpec, image string, setSecurityContext, windows bool) (v1.Sidecar, error) {

var stepNames []string

for i, s := range taskSpec.Steps {
Expand Down
2 changes: 1 addition & 1 deletion pkg/pod/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ import (
"context"
"encoding/json"
"fmt"
"github.com/tektoncd/pipeline/internal/sidecarlogartifacts"
"strconv"
"strings"
"time"

"github.com/hashicorp/go-multierror"
"github.com/tektoncd/pipeline/internal/sidecarlogartifacts"
"github.com/tektoncd/pipeline/internal/sidecarlogresults"
"github.com/tektoncd/pipeline/pkg/apis/config"
"github.com/tektoncd/pipeline/pkg/apis/pipeline"
Expand Down

0 comments on commit c2c1c22

Please sign in to comment.