Skip to content

Commit

Permalink
Update driver version to 0.1.0-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheng Pan committed Oct 31, 2018
1 parent cbaf6d6 commit dd79e3c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
# limitations under the License.

IMAGE=amazon/aws-ebs-csi-driver
VERSION=testing
VERSION="0.1.0-alpha"

.PHONY: aws-ebs-csi-driver
aws-ebs-csi-driver:
mkdir -p bin
go build -o bin/aws-ebs-csi-driver ./cmd/aws-ebs-csi-driver
go build -ldflags "-X github.com/kubernetes-sigs/aws-ebs-csi-driver/pkg/driver.VendorVersion=${VERSION}" -o bin/aws-ebs-csi-driver ./cmd/

.PHONY: test
test:
Expand Down
File renamed without changes.
11 changes: 8 additions & 3 deletions pkg/driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,14 @@ import (
)

const (
driverName = "com.amazon.aws.csi.ebs"
vendorVersion = "0.0.1" // FIXME
topologyKey = driverName + "/zone"
driverName = "com.amazon.aws.csi.ebs"
topologyKey = driverName + "/zone"
)

var (
// verion of the driver
// value is set during build
VendorVersion string
)

type Driver struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/driver/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
func (d *Driver) GetPluginInfo(ctx context.Context, req *csi.GetPluginInfoRequest) (*csi.GetPluginInfoResponse, error) {
resp := &csi.GetPluginInfoResponse{
Name: driverName,
VendorVersion: vendorVersion,
VendorVersion: VendorVersion,
}

return resp, nil
Expand Down

0 comments on commit dd79e3c

Please sign in to comment.