Skip to content

Commit

Permalink
udpate format
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonwang371 committed Jan 18, 2022
1 parent 886f1f8 commit f7dcf2a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
run: test -z "$(set -o pipefail && $(go env GOPATH)/bin/goimports -l . | tee goimports.out)" || { cat goimports.out && exit 1; }

- name: Open this to see how to fix goimports if it fails
run: echo Run goimports -w .
run: echo Run goimports -d .
if: failure()

- name: list directories
Expand Down
2 changes: 1 addition & 1 deletion apiserver/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import (
"k8s.io/klog/v2"

"github.com/prometheus/client_golang/prometheus/promhttp"
api "github.com/ray-project/kuberay/proto/go_client"
"github.com/ray-project/kuberay/apiserver/pkg/interceptor"
"github.com/ray-project/kuberay/apiserver/pkg/manager"
"github.com/ray-project/kuberay/apiserver/pkg/server"
api "github.com/ray-project/kuberay/proto/go_client"
)

var (
Expand Down
1 change: 1 addition & 0 deletions apiserver/pkg/interceptor/interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package interceptor

import (
"context"

"google.golang.org/grpc"
"k8s.io/klog/v2"
)
Expand Down
1 change: 0 additions & 1 deletion apiserver/pkg/manager/client_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ func (c *ClientManager) Time() util.TimeInterface {
return c.time
}


func (c *ClientManager) init() {
// db, kubernetes initialization
klog.Info("Initializing client manager")
Expand Down
4 changes: 2 additions & 2 deletions apiserver/pkg/server/cluster_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package server

import (
"context"

"github.com/golang/protobuf/ptypes/empty"
api "github.com/ray-project/kuberay/proto/go_client"
"github.com/ray-project/kuberay/apiserver/pkg/manager"
"github.com/ray-project/kuberay/apiserver/pkg/util"
api "github.com/ray-project/kuberay/proto/go_client"
)

type ClusterServerOptions struct {
Expand Down Expand Up @@ -42,7 +43,6 @@ func (s *ClusterServer) DeleteCluster(ctx context.Context, request *api.DeleteCl
panic("Implement me")
}


func ValidateCreateClusterRequest(request *api.CreateClusterRequest) error {
if request.Cluster.Name == "" {
return util.NewInvalidInputError("Cluster name is empty. Please specify a valid value.")
Expand Down

0 comments on commit f7dcf2a

Please sign in to comment.