summaryrefslogtreecommitdiff
path: root/build/csisamples
diff options
context:
space:
mode:
authorEdison Xiang <xiangxinyong@huawei.com>2019-09-06 23:24:31 +0800
committeredisonxiang <xiang.edison@gmail.com>2019-09-09 10:01:00 +0800
commit26bf9732af9d82b404dbeadb6c6ae889c79d2251 (patch)
tree3766e787d26f12fd0c4ead50f1d1f581a5febe75 /build/csisamples
parentusing cobra and pflag (diff)
downloadkubeedge-26bf9732af9d82b404dbeadb6c6ae889c79d2251.tar.gz
fix nonstandard definition with kevin and fisher
Co-Authored-By: Kevin Wang <wangzefeng@huawei.com> Co-Authored-By: Fei Xu <xufei40@huawei.com>
Diffstat (limited to 'build/csisamples')
-rw-r--r--build/csisamples/hostpath/deploy/csicontroller.yaml13
-rw-r--r--build/csisamples/hostpath/deploy/csinode.yaml1
2 files changed, 8 insertions, 6 deletions
diff --git a/build/csisamples/hostpath/deploy/csicontroller.yaml b/build/csisamples/hostpath/deploy/csicontroller.yaml
index e1c6d0c25..d24321840 100644
--- a/build/csisamples/hostpath/deploy/csicontroller.yaml
+++ b/build/csisamples/hostpath/deploy/csicontroller.yaml
@@ -2,7 +2,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: csi-controller
- namespace: default
+ namespace: kubeedge
---
kind: ClusterRole
@@ -49,7 +49,7 @@ metadata:
subjects:
- kind: ServiceAccount
name: csi-controller
- namespace: default
+ namespace: kubeedge
roleRef:
kind: ClusterRole
name: external-controller-runner
@@ -59,7 +59,7 @@ roleRef:
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
- namespace: default
+ namespace: kubeedge
name: external-controller-cfg
rules:
- apiGroups: [""]
@@ -77,11 +77,11 @@ kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: csi-controller-role-cfg
- namespace: default
+ namespace: kubeedge
subjects:
- kind: ServiceAccount
name: csi-controller
- namespace: default
+ namespace: kubeedge
roleRef:
kind: Role
name: external-controller-cfg
@@ -92,6 +92,7 @@ kind: StatefulSet
apiVersion: apps/v1
metadata:
name: csi-hostpath-controller
+ namespace: kubeedge
spec:
serviceName: "csi-hostpath-controller"
replicas: 1
@@ -131,7 +132,7 @@ spec:
- "--v=5"
- "--drivername=$(CSI_DRIVERNAME)"
- "--endpoint=$(CSI_ENDPOINT)"
- - "--kubeedgeendpoint=$(KUBEEDGE_ENDPOINT)"
+ - "--kubeedge-endpoint=$(KUBEEDGE_ENDPOINT)"
- "--nodeid=$(KUBE_NODE_NAME)"
env:
- name: CSI_DRIVERNAME
diff --git a/build/csisamples/hostpath/deploy/csinode.yaml b/build/csisamples/hostpath/deploy/csinode.yaml
index 5859a5535..d30d63652 100644
--- a/build/csisamples/hostpath/deploy/csinode.yaml
+++ b/build/csisamples/hostpath/deploy/csinode.yaml
@@ -2,6 +2,7 @@ kind: DaemonSet
apiVersion: apps/v1beta2
metadata:
name: csi-hostpath-edge
+ namespace: kubeedge
spec:
selector:
matchLabels: