Skip to content

Commit 097d0ff

Browse files
author
Mario Valderrama
committed
Squashed 'release-tools/' changes from 734c2b950..406a79acf
406a79acf Merge pull request #267 from huww98/gomodcache 9cec273d8 Set GOMODCACHE to avoid re-download toolchain 98f23071d Merge pull request #260 from TerryHowe/update-csi-driver-version e9d8712d0 Merge pull request #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
1 parent 6bfe740 commit 097d0ff

File tree

7,812 files changed

+265
-2213073
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,812 files changed

+265
-2213073
lines changed

.cloudbuild.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/enhancement.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/support.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/dependabot.yaml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,6 @@
11
version: 2
22
enable-beta-ecosystems: true
33
updates:
4-
- package-ecosystem: gomod
5-
directory: "/"
6-
allow:
7-
- dependency-type: "all"
8-
schedule:
9-
interval: weekly
10-
groups:
11-
golang-dependencies:
12-
patterns:
13-
- "github.com/golang*"
14-
k8s-dependencies:
15-
patterns:
16-
- "k8s.io*"
17-
- "sigs.k8s.io*"
18-
- "github.com/kubernetes-csi*"
19-
github-dependencies:
20-
patterns:
21-
- "*"
22-
exclude-patterns:
23-
- "github.com/golang*"
24-
- "k8s.io*"
25-
- "sigs.k8s.io*"
26-
- "github.com/kubernetes-csi*"
27-
labels:
28-
- "area/dependency"
29-
- "release-note-none"
30-
- "ok-to-test"
31-
open-pull-requests-limit: 10
324
- package-ecosystem: "github-actions"
335
directory: "/"
346
schedule:

.github/workflows/codespell.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
name: Check for spelling errors
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4.2.2
11+
- uses: actions/checkout@v4
1212
- uses: codespell-project/actions-codespell@master
1313
with:
1414
check_filenames: true
15-
skip: ./.git,./.github/workflows/codespell.yml,.git,*.png,*.jpg,*.svg,*.sum,./vendor,go.sum,./release-tools/prow.sh
15+
skip: "*.png,*.jpg,*.svg,*.sum,./.git,./.github/workflows/codespell.yml,./prow.sh"

.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.prow.sh

Lines changed: 23 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,23 @@
1-
#! /bin/bash
2-
3-
CSI_PROW_SIDECAR_E2E_IMPORT_PATH="github.com/kubernetes-csi/external-provisioner/v5/test/e2e"
4-
CSI_PROW_SIDECAR_E2E_PATH="github.com/kubernetes-csi/external-provisioner/test/e2e"
5-
6-
. release-tools/prow.sh
7-
8-
volume_mode_conversion () {
9-
[ "${VOLUME_MODE_CONVERSION_TESTS}" == "true" ]
10-
}
11-
12-
if volume_mode_conversion; then
13-
install_snapshot_controller() {
14-
CONTROLLER_DIR="https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/${CSI_SNAPSHOTTER_VERSION}"
15-
if [[ ${REPO_DIR} == *"external-snapshotter"* ]]; then
16-
CONTROLLER_DIR="${REPO_DIR}"
17-
fi
18-
SNAPSHOT_RBAC_YAML="${CONTROLLER_DIR}/deploy/kubernetes/snapshot-controller/rbac-snapshot-controller.yaml"
19-
echo "kubectl apply -f ${SNAPSHOT_RBAC_YAML}"
20-
# Ignore: Double quote to prevent globbing and word splitting.
21-
# shellcheck disable=SC2086
22-
kubectl apply -f ${SNAPSHOT_RBAC_YAML}
23-
24-
cnt=0
25-
until kubectl get clusterrolebinding snapshot-controller-role; do
26-
if [ $cnt -gt 30 ]; then
27-
echo "Cluster role bindings:"
28-
kubectl describe clusterrolebinding
29-
echo >&2 "ERROR: snapshot controller RBAC not ready after over 5 min"
30-
exit 1
31-
fi
32-
echo "$(date +%H:%M:%S)" "waiting for snapshot RBAC setup complete, attempt #$cnt"
33-
cnt=$((cnt + 1))
34-
sleep 10
35-
done
36-
37-
SNAPSHOT_CONTROLLER_YAML="${CSI_PROW_WORK}/snapshot-controller.yaml"
38-
run curl "${CONTROLLER_DIR}/deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml" --output "${SNAPSHOT_CONTROLLER_YAML}" --silent --location
39-
40-
echo "Enabling prevent-volume-mode-conversion in snapshot-controller"
41-
sed -i -e 's/# end snapshot controller args/- \"--prevent-volume-mode-conversion=true\"\n # end snapshot controller args/' "${SNAPSHOT_CONTROLLER_YAML}"
42-
43-
echo "kubectl apply -f $SNAPSHOT_CONTROLLER_YAML"
44-
kubectl apply -f "$SNAPSHOT_CONTROLLER_YAML"
45-
46-
cnt=0
47-
expected_running_pods=$(kubectl apply --dry-run=client -o "jsonpath={.spec.replicas}" -f "$SNAPSHOT_CONTROLLER_YAML")
48-
expected_namespace=$(kubectl apply --dry-run=client -o "jsonpath={.metadata.namespace}" -f "$SNAPSHOT_CONTROLLER_YAML")
49-
while [ "$(kubectl get pods -n "$expected_namespace" -l app=snapshot-controller | grep 'Running' -c)" -lt "$expected_running_pods" ]; do
50-
if [ $cnt -gt 30 ]; then
51-
echo "snapshot-controller pod status:"
52-
kubectl describe pods -n "$expected_namespace" -l app=snapshot-controller
53-
echo >&2 "ERROR: snapshot controller not ready after over 5 min"
54-
exit 1
55-
fi
56-
echo "$(date +%H:%M:%S)" "waiting for snapshot controller deployment to complete, attempt #$cnt"
57-
cnt=$((cnt + 1))
58-
sleep 10
59-
done
60-
}
61-
fi
62-
63-
main
1+
#! /bin/bash -e
2+
3+
# Copyright 2021 The Kubernetes Authors.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
# This is for testing csi-release-tools itself in Prow. All other
18+
# repos use prow.sh for that, but as csi-release-tools isn't a normal
19+
# repo with some Go code in it, it has a custom Prow test script.
20+
21+
./verify-shellcheck.sh "$(pwd)"
22+
./verify-spelling.sh "$(pwd)"
23+
./verify-boilerplate.sh "$(pwd)"

0 commit comments

Comments
 (0)