Skip to content

Commit

Permalink
Remove tar build rules
Browse files Browse the repository at this point in the history
  • Loading branch information
xxx0624 committed Jun 28, 2023
1 parent 3b06de6 commit 3892d49
Show file tree
Hide file tree
Showing 30 changed files with 10 additions and 38 deletions.
5 changes: 0 additions & 5 deletions ecs-agent/daemon_images/csi-driver/Dockerfile.csi_driver

This file was deleted.

20 changes: 0 additions & 20 deletions ecs-agent/daemon_images/csi-driver/build-image-as-tar

This file was deleted.

Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ CSI_DRIVER_SOURCES=$(shell find $(SOURCEDIR) -name '*.go')

OS?=linux
ARCH?=amd64
.PHONY: build-image
build-image: bin/csi-driver
OS=$(OS) ARCH=$(ARCH) ./build-image-as-tar

# Build binary for linux only
.PHONY: bin/csi-driver
Expand All @@ -22,7 +19,7 @@ bin/csi-driver: $(CSI_DRIVER_SOURCES)

.PHONY: test
test:
go test -v -race -tags unit -timeout=120s ./...
go test -v -race -tags unit -timeout=60s ./...

# please include this `mockgen` into PATH
bin/mockgen: | bin
Expand All @@ -34,4 +31,4 @@ mockgen: bin/mockgen

.PHONY: clean
clean:
rm -rf bin/*
rm -rf bin/
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"google.golang.org/grpc"
"k8s.io/klog/v2"

"github.com/aws/amazon-ecs-agent/ecs-agent/daemon_images/csi-driver/util"
"github.com/aws/amazon-ecs-agent/ecs-agent/daemon_images/csi-driver/version"
"github.com/aws/amazon-ecs-agent/ecs-agent/daemonimages/csidriver/util"
"github.com/aws/amazon-ecs-agent/ecs-agent/daemonimages/csidriver/version"
)

type Driver struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package driver
import (
mountutils "k8s.io/mount-utils"

"github.com/aws/amazon-ecs-agent/ecs-agent/daemon_images/csi-driver/mounter"
"github.com/aws/amazon-ecs-agent/ecs-agent/daemonimages/csidriver/mounter"
)

// Mounter is the interface implemented by NodeMounter.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package driver
import (
"fmt"

"github.com/aws/amazon-ecs-agent/ecs-agent/daemon_images/csi-driver/mounter"
"github.com/aws/amazon-ecs-agent/ecs-agent/daemonimages/csidriver/mounter"
)

func (m *NodeMounter) PathExists(path string) (bool, error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"google.golang.org/grpc/status"
"k8s.io/klog/v2"

"github.com/aws/amazon-ecs-agent/ecs-agent/daemon_images/csi-driver/volume"
"github.com/aws/amazon-ecs-agent/ecs-agent/daemonimages/csidriver/volume"
)

// nodeService represents the node service of CSI driver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package driver
import (
"fmt"

"github.com/aws/amazon-ecs-agent/ecs-agent/daemon_images/csi-driver/mounter"
"github.com/aws/amazon-ecs-agent/ecs-agent/daemonimages/csidriver/mounter"
)

// IsBlockDevice checks if the given path is a block device
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

"k8s.io/klog/v2"

"github.com/aws/amazon-ecs-agent/ecs-agent/daemon_images/csi-driver/driver"
"github.com/aws/amazon-ecs-agent/ecs-agent/daemonimages/csidriver/driver"
)

func main() {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package volume
import (
"k8s.io/apimachinery/pkg/api/resource"

"github.com/aws/amazon-ecs-agent/ecs-agent/daemon_images/csi-driver/util/fs"
"github.com/aws/amazon-ecs-agent/ecs-agent/daemonimages/csidriver/util/fs"
)

// MetricsProvider exposes metrics (e.g. used,available space) related to a
Expand Down

0 comments on commit 3892d49

Please sign in to comment.