Skip to content

Commit

Permalink
chore: use dl.k8s.io instead of hardcoded url (#1175)
Browse files Browse the repository at this point in the history
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
  • Loading branch information
aramase committed May 15, 2023
1 parent d63564f commit c4d70d7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Expand Up @@ -108,7 +108,7 @@ RUN mkdir -p /tmp/downloads/helm \
&& mv /tmp/downloads/helm/linux-amd64/helm /usr/local/bin

# Install Kubectl
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v${KUBERNETES_VERSION}/bin/linux/amd64/kubectl \
RUN curl -LO https://dl.k8s.io/release/v${KUBERNETES_VERSION}/bin/linux/amd64/kubectl \
&& chmod +x ./kubectl \
&& mv kubectl /usr/bin/kubectl

Expand Down
4 changes: 2 additions & 2 deletions .pipelines/templates/e2e-test-azure.yaml
Expand Up @@ -35,11 +35,11 @@ jobs:
- script: |
# Download kubectl
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
curl -LO https://dl.k8s.io/release/`curl -s https://dl.k8s.io/release/stable.txt`/bin/linux/amd64/kubectl
chmod +x kubectl
sudo mv kubectl /usr/local/bin/
displayName: 'Install kubectl'
- template: build-images.yaml

- template: aks-setup.yaml
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/soak-test.yaml
Expand Up @@ -21,7 +21,7 @@ jobs:
- script: |
# Download kubectl
echo "Installing kubectl..."
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
curl -LO https://dl.k8s.io/release/`curl -s https://dl.k8s.io/release/stable.txt`/bin/linux/amd64/kubectl
chmod +x kubectl
sudo mv kubectl /usr/local/bin/
displayName: "Install kubectl"
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -202,7 +202,7 @@ mod:

.PHONY: install-kubectl
install-kubectl:
curl -LO https://storage.googleapis.com/kubernetes-release/release/${KIND_K8S_VERSION}/bin/linux/amd64/kubectl && chmod +x ./kubectl && sudo mv kubectl /usr/local/bin/
curl -LO https://dl.k8s.io/release/${KIND_K8S_VERSION}/bin/linux/amd64/kubectl && chmod +x ./kubectl && sudo mv kubectl /usr/local/bin/

.PHONY: e2e-bootstrap
e2e-bootstrap: install-helm
Expand Down
2 changes: 1 addition & 1 deletion arc/conformance/plugin/Dockerfile
Expand Up @@ -23,7 +23,7 @@ RUN curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor >
rm -rf /var/lib/apt/lists/*

# install kubectl
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/${KUBE_VERSION}/bin/linux/${TARGETARCH}/kubectl && \
RUN curl -LO https://dl.k8s.io/release/${KUBE_VERSION}/bin/linux/${TARGETARCH}/kubectl && \
chmod +x kubectl && \
mv kubectl /usr/local/bin/kubectl

Expand Down

0 comments on commit c4d70d7

Please sign in to comment.