8000 feat: add kubelogin to Dockerfile (#210) · Azure/aks-mcp@fece55b · GitHub
[go: up one dir, main page]

Skip to content

Commit fece55b

Browse files
feat: add kubelogin to Dockerfile (#210)
Signed-off-by: Qasim Sarfraz <qasimsarfraz@microsoft.com>
1 parent 6cd6aa2 commit fece55b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ RUN echo $TARGETARCH; curl -LO "https://dl.k8s.io/release/$(curl -L -s https://d
4343
chmod +x kubectl && \
4444
mv kubectl /usr/local/bin/kubectl
4545

46+
# Install kubelogin
47+
RUN KUBELOGIN_VERSION="v0.2.10" && \
48+
curl -LO "https://github.com/Azure/kubelogin/releases/download/${KUBELOGIN_VERSION}/kubelogin-linux-${TARGETARCH}.zip" && \
49+
unzip kubelogin-linux-${TARGETARCH}.zip && \
50+
mv bin/linux_${TARGETARCH}/kubelogin /usr/local/bin/kubelogin && \
51+
chmod +x /usr/local/bin/kubelogin && \
52+
rm -r bin/linux_${TARGETARCH} kubelogin-linux-${TARGETARCH}.zip
53+
4654
# Install helm
4755
RUN HELM_ARCH=${TARGETARCH} && \
4856
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 && \

0 commit comments

Comments
 (0)
0