Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
rename csi
Browse files Browse the repository at this point in the history
  • Loading branch information
Binyang2014 committed Sep 23, 2020
1 parent dd4f0e8 commit 82a4d27
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
kind: DaemonSet
apiVersion: apps/v1
metadata:
name: dshuttle-csi-daemon
name: dshuttle-csi
spec:
selector:
matchLabels:
app: dshuttle-csi-daemon
app: dshuttle-csi
template:
metadata:
labels:
app: dshuttle-csi-daemon
app: dshuttle-csi
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
Expand Down Expand Up @@ -65,7 +65,7 @@ spec:
mountPath: /plugin
- name: registration-dir
mountPath: /registration
- name: dshuttle-csi-daemon
- name: dshuttle-csi
securityContext:
privileged: true
runAsUser: 0
Expand Down
2 changes: 1 addition & 1 deletion src/dshuttle-csi/deploy/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ prerequisite:
- dshuttle-worker

template-list:
- dshuttle-csi-daemon.yaml
- dshuttle-csi.yaml
- start.sh
- stop.sh

Expand Down
4 changes: 2 additions & 2 deletions src/dshuttle-csi/deploy/start.sh.template
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
pushd $(dirname "$0") > /dev/null

kubectl apply --overwrite=true -f dshuttle-csi-driver.yaml || exit $?
kubectl apply --overwrite=true -f dshuttle-csi-daemon.yaml || exit $?
kubectl apply --overwrite=true -f dshuttle-csi.yaml || exit $?

sleep 10
# Wait until the service is ready.
PYTHONPATH="../../../deployment" python -m k8sPaiLibrary.monitorTool.check_pod_ready_status -w -k app -v dshuttle-csi-daemon || exit $?
PYTHONPATH="../../../deployment" python -m k8sPaiLibrary.monitorTool.check_pod_ready_status -w -k app -v dshuttle-csi || exit $?

popd > /dev/null
{%- endif %}
8 changes: 4 additions & 4 deletions src/dshuttle-csi/deploy/stop.sh.template
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
{%- if cluster_cfg['cluster']['common']['dshuttle'] == 'true' %}
pushd $(dirname "$0") > /dev/null

if kubectl get daemonset | grep -q "dshuttle-csi-daemon"; then
kubectl delete daemonset dshuttle-csi-daemon || exit $?
if kubectl get daemonset | grep -q "dshuttle-csi"; then
kubectl delete daemonset dshuttle-csi || exit $?
fi

if kubectl get csidriver | grep -q "alluxio"; then
kubectl delete csidriver alluxio || exit $?
if kubectl get csidriver | grep -q "dshuttle"; then
kubectl delete csidriver dshuttle || exit $?
fi

popd > /dev/null
Expand Down

0 comments on commit 82a4d27

Please sign in to comment.