forked from kubernetes-csi/external-provisioner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'release-tools/' changes from 734c2b950..406a79acf
406a79acf Merge pull request kubernetes-csi#267 from huww98/gomodcache 9cec273d8 Set GOMODCACHE to avoid re-download toolchain 98f23071d Merge pull request kubernetes-csi#260 from TerryHowe/update-csi-driver-version e9d8712d0 Merge pull request kubernetes-csi#259 from stmcginnis/deprecated-kind-kube-root faf79ff66 Remove --kube-root deprecated kind argument 18b6ac6d2 chore: update CSI driver version to 1.15 git-subtree-dir: release-tools git-subtree-split: 406a79acf021b5564108afebeea7d0ed44648d3f
- Loading branch information
Showing
7,812 changed files
with
265 additions
and
2,213,073 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,23 @@ | ||
#! /bin/bash | ||
|
||
CSI_PROW_SIDECAR_E2E_IMPORT_PATH="github.com/kubernetes-csi/external-provisioner/v5/test/e2e" | ||
CSI_PROW_SIDECAR_E2E_PATH="github.com/kubernetes-csi/external-provisioner/test/e2e" | ||
|
||
. release-tools/prow.sh | ||
|
||
volume_mode_conversion () { | ||
[ "${VOLUME_MODE_CONVERSION_TESTS}" == "true" ] | ||
} | ||
|
||
if volume_mode_conversion; then | ||
install_snapshot_controller() { | ||
CONTROLLER_DIR="https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/${CSI_SNAPSHOTTER_VERSION}" | ||
if [[ ${REPO_DIR} == *"external-snapshotter"* ]]; then | ||
CONTROLLER_DIR="${REPO_DIR}" | ||
fi | ||
SNAPSHOT_RBAC_YAML="${CONTROLLER_DIR}/deploy/kubernetes/snapshot-controller/rbac-snapshot-controller.yaml" | ||
echo "kubectl apply -f ${SNAPSHOT_RBAC_YAML}" | ||
# Ignore: Double quote to prevent globbing and word splitting. | ||
# shellcheck disable=SC2086 | ||
kubectl apply -f ${SNAPSHOT_RBAC_YAML} | ||
|
||
cnt=0 | ||
until kubectl get clusterrolebinding snapshot-controller-role; do | ||
if [ $cnt -gt 30 ]; then | ||
echo "Cluster role bindings:" | ||
kubectl describe clusterrolebinding | ||
echo >&2 "ERROR: snapshot controller RBAC not ready after over 5 min" | ||
exit 1 | ||
fi | ||
echo "$(date +%H:%M:%S)" "waiting for snapshot RBAC setup complete, attempt #$cnt" | ||
cnt=$((cnt + 1)) | ||
sleep 10 | ||
done | ||
|
||
SNAPSHOT_CONTROLLER_YAML="${CSI_PROW_WORK}/snapshot-controller.yaml" | ||
run curl "${CONTROLLER_DIR}/deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml" --output "${SNAPSHOT_CONTROLLER_YAML}" --silent --location | ||
|
||
echo "Enabling prevent-volume-mode-conversion in snapshot-controller" | ||
sed -i -e 's/# end snapshot controller args/- \"--prevent-volume-mode-conversion=true\"\n # end snapshot controller args/' "${SNAPSHOT_CONTROLLER_YAML}" | ||
|
||
echo "kubectl apply -f $SNAPSHOT_CONTROLLER_YAML" | ||
kubectl apply -f "$SNAPSHOT_CONTROLLER_YAML" | ||
|
||
cnt=0 | ||
expected_running_pods=$(kubectl apply --dry-run=client -o "jsonpath={.spec.replicas}" -f "$SNAPSHOT_CONTROLLER_YAML") | ||
expected_namespace=$(kubectl apply --dry-run=client -o "jsonpath={.metadata.namespace}" -f "$SNAPSHOT_CONTROLLER_YAML") | ||
while [ "$(kubectl get pods -n "$expected_namespace" -l app=snapshot-controller | grep 'Running' -c)" -lt "$expected_running_pods" ]; do | ||
if [ $cnt -gt 30 ]; then | ||
echo "snapshot-controller pod status:" | ||
kubectl describe pods -n "$expected_namespace" -l app=snapshot-controller | ||
echo >&2 "ERROR: snapshot controller not ready after over 5 min" | ||
exit 1 | ||
fi | ||
echo "$(date +%H:%M:%S)" "waiting for snapshot controller deployment to complete, attempt #$cnt" | ||
cnt=$((cnt + 1)) | ||
sleep 10 | ||
done | ||
} | ||
fi | ||
|
||
main | ||
#! /bin/bash -e | ||
|
||
# Copyright 2021 The Kubernetes Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# This is for testing csi-release-tools itself in Prow. All other | ||
# repos use prow.sh for that, but as csi-release-tools isn't a normal | ||
# repo with some Go code in it, it has a custom Prow test script. | ||
|
||
./verify-shellcheck.sh "$(pwd)" | ||
./verify-spelling.sh "$(pwd)" | ||
./verify-boilerplate.sh "$(pwd)" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.