Skip to content

Commit ba91ac4

Browse files
author
Cheng Pan
authored
Merge pull request #105 from leakingtapan/driver-name
Update driver name and topology key
2 parents 6b589a7 + b11b08d commit ba91ac4

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

deploy/kubernetes/v1.12+/node.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ spec:
8181
- name: ADDRESS
8282
value: /csi/csi.sock
8383
- name: DRIVER_REG_SOCK_PATH
84-
value: /var/lib/kubelet/plugins/com.amazon.aws.csi.ebs/csi.sock
84+
value: /var/lib/kubelet/plugins/ebs.csi.aws.com/csi.sock
8585
- name: KUBE_NODE_NAME
8686
valueFrom:
8787
fieldRef:
@@ -128,7 +128,7 @@ spec:
128128
type: Directory
129129
- name: plugin-dir
130130
hostPath:
131-
path: /var/lib/kubelet/plugins/com.amazon.aws.csi.ebs/
131+
path: /var/lib/kubelet/plugins/ebs.csi.aws.com/
132132
type: DirectoryOrCreate
133133
- name: registration-dir
134134
hostPath:

deploy/kubernetes/v1.12+/provisioner.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ spec:
9595
allowPrivilegeEscalation: true
9696
image: quay.io/k8scsi/csi-provisioner:v0.4.1
9797
args:
98-
- --provisioner=com.amazon.aws.csi.ebs
98+
- --provisioner=ebs.csi.aws.com
9999
- --csi-address=$(ADDRESS)
100100
- --v=5
101101
- --feature-gates=Topology=true

deploy/kubernetes/v1.12+/sample_app/storageclass.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ metadata:
44
name: slow
55
annotations:
66
storageclass.kubernetes.io/is-default-class: "true"
7-
provisioner: com.amazon.aws.csi.ebs
7+
provisioner: ebs.csi.aws.com

deploy/kubernetes/v1.[10,11]/node.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ spec:
117117
type: Directory
118118
- name: plugin-dir
119119
hostPath:
120-
path: /var/lib/kubelet/plugins/com.amazon.aws.csi.ebs/
120+
path: /var/lib/kubelet/plugins/ebs.csi.aws.com/
121121
type: DirectoryOrCreate
122122
- name: device-dir
123123
hostPath:

deploy/kubernetes/v1.[10,11]/provisioner.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ spec:
8080
allowPrivilegeEscalation: true
8181
image: quay.io/k8scsi/csi-provisioner:v0.4.1
8282
args:
83-
- --provisioner=com.amazon.aws.csi.ebs
83+
- --provisioner=ebs.csi.aws.com
8484
- --csi-address=$(ADDRESS)
8585
- --v=5
8686
env:

deploy/kubernetes/v1.[10,11]/sample_app/storageclass.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ metadata:
44
name: slow
55
annotations:
66
storageclass.kubernetes.io/is-default-class: "true"
7-
provisioner: com.amazon.aws.csi.ebs
7+
provisioner: ebs.csi.aws.com

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ There are several optional parameters that could be passed into `CreateVolumeReq
5050
| "kmsKeyId" | | | The full ARN of the key to use when encrypting the volume. When not specified, the default KMS key is used |
5151

5252
### Topology
53-
`com.amazon.aws.csi.ebs/zone` is the only topology key that represents the availability zone of which a volume is accessible.
53+
`topology.ebs.csi.aws.com/zone` is the only topology key that represents the availability zone of which a volume is accessible.
5454

5555
To enable topology support on kuberetes, make sure `CSINodeInfo` and `CSIDriverRegistry` feature flags are enabled on both kubelet and kube-apiserver and `CSINodeInfo` CRD is installed on the cluster using:
5656

pkg/driver/driver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ import (
2929
)
3030

3131
const (
32-
driverName = "com.amazon.aws.csi.ebs"
33-
topologyKey = driverName + "/zone"
32+
driverName = "ebs.csi.aws.com"
33+
topologyKey = "topology." + driverName + "/zone"
3434
)
3535

3636
var (

0 commit comments

Comments
 (0)