Skip to content

Commit

Permalink
WIP: Do Not Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
xing-yang committed Nov 16, 2020
1 parent 1e5a7ef commit 1e9fbbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ spec:
serviceAccount: snapshot-controller
containers:
- name: snapshot-controller
image: k8s.gcr.io/sig-storage/snapshot-controller:v3.0.0
image: snapshot-controller:csiprow # k8s.gcr.io/sig-storage/snapshot-controller:v3.0.0
args:
- "--v=5"
- "--leader-election=false"
imagePullPolicy: Always
imagePullPolicy: IfNotPresent #Always
4 changes: 3 additions & 1 deletion release-tools/prow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,9 @@ install_snapshot_controller() {
done


kubectl apply -f "https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/${CSI_SNAPSHOTTER_VERSION}/deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml"
echo "kubectl apply -f ${REPO_DIR}/deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml"
kubectl apply -f "${REPO_DIR}/deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml"
#kubectl apply -f "https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/${CSI_SNAPSHOTTER_VERSION}/deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml"
cnt=0
expected_running_pods=$(curl https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/"${CSI_SNAPSHOTTER_VERSION}"/deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml | grep replicas | cut -d ':' -f 2-)
while [ "$(kubectl get pods -l app=snapshot-controller | grep 'Running' -c)" -lt "$expected_running_pods" ]; do
Expand Down

0 comments on commit 1e9fbbd

Please sign in to comment.