File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -248,10 +248,11 @@ void runTest(Integer TEST_ID) {
248
248
249
249
void prepareNode () {
250
250
sh """
251
- if [ ! -f /usr/local/bin/kubectl ]; then
252
- sudo curl -s -L -o /usr/local/bin/kubectl https://dl.k8s.io/release/ \$ (curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl && sudo chmod +x /usr/local/bin/kubectl
251
+ if [ -f /usr/local/bin/kubectl ]; then
252
+ sudo rm -f /usr/local/bin/kubectl
253
253
fi
254
254
255
+ sudo curl -s -L -o /usr/local/bin/kubectl https://dl.k8s.io/release/\$ (curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl && sudo chmod +x /usr/local/bin/kubectl
255
256
kubectl version --client --output=yaml
256
257
257
258
curl -fsSL https://get.helm.sh/helm-v3.18.0-linux-amd64.tar.gz | sudo tar -C /usr/local/bin --strip-components 1 -xzf - linux-amd64/helm
You can’t perform that action at this time.
0 commit comments