diff --git a/.ci/common b/.ci/common index 95b7fb9..0607d45 100644 --- a/.ci/common +++ b/.ci/common @@ -2,7 +2,7 @@ set -ex slugify() { - echo "$1" | sed -r 's/[^a-zA-Z0-9]+/-/g' + echo "$1" | sed -r 's/[^.a-zA-Z0-9]+/-/g' } export IMAGE="openebs/rawfile-localpv" diff --git a/consts.py b/consts.py index 4077b1b..0972568 100644 --- a/consts.py +++ b/consts.py @@ -1,2 +1,3 @@ +PROVISIONER_VERSION = "0.3.0" DATA_DIR = "/data" CONFIG = {} diff --git a/deploy/charts/rawfile-csi/Chart.yaml b/deploy/charts/rawfile-csi/Chart.yaml index e662fb2..783ad76 100644 --- a/deploy/charts/rawfile-csi/Chart.yaml +++ b/deploy/charts/rawfile-csi/Chart.yaml @@ -2,5 +2,4 @@ apiVersion: v2 name: rawfile-csi description: RawFile Driver Container Storage Interface type: application -version: 0.1.6 -appVersion: 0.0.1 +version: 0.3.0 diff --git a/deploy/charts/rawfile-csi/values.yaml b/deploy/charts/rawfile-csi/values.yaml index 268b41d..d811719 100644 --- a/deploy/charts/rawfile-csi/values.yaml +++ b/deploy/charts/rawfile-csi/values.yaml @@ -1,7 +1,7 @@ defaults: &defaults image: repository: docker.io/openebs/rawfile-localpv - tag: master + tag: 0.3.0 pullPolicy: Always resources: limits: diff --git a/rawfile_servicer.py b/rawfile_servicer.py index dc39222..21a20c2 100644 --- a/rawfile_servicer.py +++ b/rawfile_servicer.py @@ -4,6 +4,7 @@ import grpc from google.protobuf.wrappers_pb2 import BoolValue import rawfile_util +from consts import PROVISIONER_VERSION from csi import csi_pb2, csi_pb2_grpc from declarative import be_mounted, be_unmounted, be_symlink, be_absent from metrics import volume_stats @@ -19,7 +20,7 @@ class RawFileIdentityServicer(csi_pb2_grpc.IdentityServicer): @log_grpc_request def GetPluginInfo(self, request, context): return csi_pb2.GetPluginInfoResponse( - name="rawfile.hamravesh.com", vendor_version="0.0.1" + name="rawfile.hamravesh.com", vendor_version=PROVISIONER_VERSION ) @log_grpc_request