From 709162c21bdb333eea4a729a3a0d6a5b537483a3 Mon Sep 17 00:00:00 2001 From: Cyrill Troxler Date: Sat, 19 Jan 2019 14:40:58 +0100 Subject: [PATCH] Set correct vendor version and display it on launch --- pkg/s3/s3-driver.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/s3/s3-driver.go b/pkg/s3/s3-driver.go index 8f0e418..ca505f3 100644 --- a/pkg/s3/s3-driver.go +++ b/pkg/s3/s3-driver.go @@ -42,7 +42,7 @@ type s3Volume struct { } var ( - vendorVersion = "0.1.0" + vendorVersion = "1.0.1-alpha" driverName = "ch.ctrox.csi.s3-driver" ) @@ -70,14 +70,14 @@ func NewS3(nodeID string, endpoint string, cfg *Config) (*s3, error) { func (s3 *s3) newIdentityServer(d *csicommon.CSIDriver) *identityServer { return &identityServer{ DefaultIdentityServer: csicommon.NewDefaultIdentityServer(d), - s3: s3, + s3: s3, } } func (s3 *s3) newControllerServer(d *csicommon.CSIDriver) *controllerServer { return &controllerServer{ DefaultControllerServer: csicommon.NewDefaultControllerServer(d), - s3: s3, + s3: s3, } } @@ -90,6 +90,7 @@ func (s3 *s3) newNodeServer(d *csicommon.CSIDriver) *nodeServer { func (s3 *s3) Run() { glog.Infof("Driver: %v ", driverName) + glog.Infof("Version: %v ", vendorVersion) // Initialize default library driver s3.driver.AddControllerServiceCapabilities([]csi.ControllerServiceCapability_RPC_Type{csi.ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME})