Skip to content

Commit 4c8a512

Browse files
committed
deploy: remove obsolete snapshotter version check
All deployments are greater than 1.16, therefore we can deploy csi-hostpath-snapshotclass.yaml unconditionally.
1 parent 5443144 commit 4c8a512

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

deploy/kubernetes-1.18/snapshotter/csi-hostpath-snapshotclass.yaml renamed to deploy/kubernetes-1.18/hostpath/csi-hostpath-snapshotclass.yaml

File renamed without changes.

deploy/kubernetes-1.20/snapshotter/csi-hostpath-snapshotclass.yaml renamed to deploy/kubernetes-1.20/hostpath/csi-hostpath-snapshotclass.yaml

File renamed without changes.

deploy/util/deploy-hostpath.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -267,14 +267,6 @@ while [ $(kubectl get pods 2>/dev/null | grep '^csi-hostpath.* Running ' | wc -l
267267
sleep 10
268268
done
269269
270-
# deploy snapshotclass
271-
echo "deploying snapshotclass based on snapshotter version"
272-
snapshotter_version="$(rbac_version "${BASE_DIR}/hostpath/csi-hostpath-snapshotter.yaml" csi-snapshotter false)"
273-
driver_version="$(basename "${BASE_DIR}")"
274-
if version_gt "$driver_version" "1.16"; then
275-
kubectl apply -f "${BASE_DIR}/snapshotter/csi-hostpath-snapshotclass.yaml"
276-
fi
277-
278270
# Create a test driver configuration in the place where the prow job
279271
# expects it?
280272
if [ "${CSI_PROW_TEST_DRIVER}" ]; then

0 commit comments

Comments
 (0)