Change default provisioner name from rawfile.hamravesh.com
to rawfile.csi.openebs.io
This commit is contained in:
parent
13a16e70f6
commit
848d87453f
@ -3,7 +3,7 @@ StorageClass:
|
||||
SnapshotClass:
|
||||
FromName: true
|
||||
DriverInfo:
|
||||
Name: rawfile.hamravesh.com
|
||||
Name: rawfile.csi.openebs.io
|
||||
SupportedFsType:
|
||||
ext4:
|
||||
btrfs:
|
||||
|
@ -19,7 +19,7 @@ apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: my-sc
|
||||
provisioner: rawfile.hamravesh.com
|
||||
provisioner: rawfile.csi.openebs.io
|
||||
reclaimPolicy: Delete
|
||||
volumeBindingMode: WaitForFirstConsumer
|
||||
allowVolumeExpansion: true
|
||||
|
@ -1,3 +1,6 @@
|
||||
PROVISIONER_VERSION = "0.3.0"
|
||||
import os
|
||||
|
||||
PROVISIONER_NAME = os.getenv("PROVISIONER_NAME", "rawfile.csi.openebs.io")
|
||||
PROVISIONER_VERSION = "0.4.0"
|
||||
DATA_DIR = "/data"
|
||||
CONFIG = {}
|
||||
|
@ -2,4 +2,4 @@ apiVersion: v2
|
||||
name: rawfile-csi
|
||||
description: RawFile Driver Container Storage Interface
|
||||
type: application
|
||||
version: 0.3.0
|
||||
version: 0.4.0
|
||||
|
@ -1,7 +1,7 @@
|
||||
apiVersion: storage.k8s.io/v1beta1
|
||||
kind: CSIDriver
|
||||
metadata:
|
||||
name: rawfile.hamravesh.com
|
||||
name: {{ .Values.provisionerName }}
|
||||
spec:
|
||||
attachRequired: false
|
||||
podInfoOnMount: true
|
||||
|
@ -42,6 +42,8 @@ spec:
|
||||
image: "{{ .Values.controller.image.repository }}:{{ .Values.controller.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
|
||||
env:
|
||||
- name: PROVISIONER_NAME
|
||||
value: "{{ .Values.provisionerName }}"
|
||||
- name: CSI_ENDPOINT
|
||||
value: unix:///csi/csi.sock
|
||||
- name: IMAGE_REPOSITORY
|
||||
|
@ -60,6 +60,8 @@ spec:
|
||||
securityContext:
|
||||
privileged: true
|
||||
env:
|
||||
- name: PROVISIONER_NAME
|
||||
value: "{{ .Values.provisionerName }}"
|
||||
- name: CSI_ENDPOINT
|
||||
value: unix:///csi/csi.sock
|
||||
- name: IMAGE_REPOSITORY
|
||||
|
@ -1,7 +1,9 @@
|
||||
provisionerName: "rawfile.csi.openebs.io"
|
||||
|
||||
defaults: &defaults
|
||||
image:
|
||||
repository: docker.io/openebs/rawfile-localpv
|
||||
tag: 0.3.0
|
||||
tag: 0.4.0
|
||||
pullPolicy: Always
|
||||
resources:
|
||||
limits:
|
||||
|
@ -4,7 +4,7 @@ import grpc
|
||||
from google.protobuf.wrappers_pb2 import BoolValue
|
||||
|
||||
import rawfile_util
|
||||
from consts import PROVISIONER_VERSION
|
||||
from consts import PROVISIONER_VERSION, PROVISIONER_NAME
|
||||
from csi import csi_pb2, csi_pb2_grpc
|
||||
from declarative import be_mounted, be_unmounted, be_symlink, be_absent
|
||||
from metrics import volume_stats
|
||||
@ -20,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=PROVISIONER_VERSION
|
||||
name=PROVISIONER_NAME, vendor_version=PROVISIONER_VERSION
|
||||
)
|
||||
|
||||
@log_grpc_request
|
||||
|
Loading…
Reference in New Issue
Block a user