Skip to content

Commit

Permalink
copilot-agent: rename dir as copilot-agent
Browse files Browse the repository at this point in the history
Signed-off-by: 佑祎 <[email protected]>
  • Loading branch information
zwzhang0107 committed Nov 17, 2023
1 parent ebf047f commit 8c7c30c
Show file tree
Hide file tree
Showing 14 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ build: build-yarn-operator

.PHONY: build-yarn-copilot
build-yarn-copilot: ## Build yarn-copilot binary.
go build -o bin/yarn-copilot cmd/yarn-copilot/main.go
go build -o bin/yarn-copilot cmd/yarn-copilot-agent/main.go

.PHONY: build-yarn-operator
build-yarn-operator: ## Build yarn-operator binary.
Expand Down
6 changes: 3 additions & 3 deletions cmd/yarn-copilot/main.go → cmd/yarn-copilot-agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import (
"k8s.io/klog/v2"
"sigs.k8s.io/controller-runtime/pkg/manager/signals"

"github.com/koordinator-sh/goyarn/cmd/yarn-copilot/options"
"github.com/koordinator-sh/goyarn/pkg/copilot/nm"
"github.com/koordinator-sh/goyarn/pkg/copilot/server"
"github.com/koordinator-sh/goyarn/cmd/yarn-copilot-agent/options"
"github.com/koordinator-sh/goyarn/pkg/copilot-agent/nm"
"github.com/koordinator-sh/goyarn/pkg/copilot-agent/server"
)

func main() {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN go mod download
COPY cmd/ cmd/
COPY pkg/ pkg/

RUN GOOS=linux GOARCH=amd64 go build -a -o koord-yarn-copilot cmd/yarn-copilot/main.go
RUN GOOS=linux GOARCH=amd64 go build -a -o koord-yarn-copilot cmd/yarn-copilot-agent/main.go

FROM nvidia/cuda:11.2.2-base-ubuntu20.04
RUN apt-get add --update bash net-tools iproute2 logrotate less rsync util-linux lvm2
Expand Down
2 changes: 1 addition & 1 deletion pkg/copilot/nm/nm.go → pkg/copilot-agent/nm/nm.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"github.com/koordinator-sh/koordinator/pkg/koordlet/util/system"
"k8s.io/klog/v2"

"github.com/koordinator-sh/goyarn/pkg/copilot/utils"
"github.com/koordinator-sh/goyarn/pkg/copilot-agent/utils"
)

const (
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"

"github.com/koordinator-sh/goyarn/pkg/copilot/nm"
"github.com/koordinator-sh/goyarn/pkg/copilot-agent/nm"
)

func ParseContainerInfo(yarnContainer *nm.YarnContainer, op *nm.NodeMangerOperator) *ContainerInfo {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
v1 "k8s.io/api/core/v1"
"k8s.io/klog/v2"

"github.com/koordinator-sh/goyarn/pkg/copilot/nm"
"github.com/koordinator-sh/goyarn/pkg/copilot-agent/nm"
)

type YarnCopilotServer struct {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8c7c30c

Please sign in to comment.