Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
  • Loading branch information
dims committed Dec 22, 2023
1 parent 2443b2a commit 253a98b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
3 changes: 2 additions & 1 deletion pkg/client/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package client
import (
"context"
"fmt"
"github.com/dims/hydrophone/pkg/common"
"log"
"time"

Expand All @@ -28,6 +27,8 @@ import (
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/informers"
"k8s.io/client-go/tools/cache"

"github.com/dims/hydrophone/pkg/common"
)

// Contains all the necessary channels to transfer data
Expand Down
5 changes: 3 additions & 2 deletions pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ package client

import (
"context"
"github.com/dims/hydrophone/pkg/common"
"k8s.io/client-go/rest"
"log"
"os"
"path/filepath"

"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"

"github.com/dims/hydrophone/pkg/common"
)

var (
Expand Down
3 changes: 2 additions & 1 deletion pkg/client/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ package client

import (
"context"
"github.com/dims/hydrophone/pkg/common"
"io"

corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/remotecommand"

"github.com/dims/hydrophone/pkg/common"
)

func downloadFile(config *rest.Config, clientset *kubernetes.Clientset,
Expand Down
3 changes: 2 additions & 1 deletion pkg/client/pod_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ package client

import (
"bufio"
"github.com/dims/hydrophone/pkg/common"

v1 "k8s.io/api/core/v1"
"k8s.io/client-go/kubernetes"

"github.com/dims/hydrophone/pkg/common"
)

// List pod resource with the given namespace
Expand Down
1 change: 0 additions & 1 deletion pkg/common/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ const (
ServiceAccountName = "conformance-serviceaccount"
ConformanceContainer = "conformance-container"
OutputContainer = "output-container"
conformanceTest = "\\[Conformance\\]"
)
5 changes: 3 additions & 2 deletions pkg/service/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package service
import (
"context"
"fmt"
"github.com/dims/hydrophone/pkg/common"
"log"
"os"
"path/filepath"
Expand All @@ -32,13 +31,15 @@ import (
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"

"github.com/dims/hydrophone/pkg/common"
)

var (
ctx = context.Background()
)

// Initializes the kube config clientset
// Init Initializes the kube config clientset
func Init(cfg *common.ArgConfig) (*rest.Config, *kubernetes.Clientset) {
config, err := rest.InClusterConfig()
if err != nil {
Expand Down

0 comments on commit 253a98b

Please sign in to comment.