From c5abdcb6f1f81a98c48da5ea67fbf3022fc838bf Mon Sep 17 00:00:00 2001 From: riesinger Date: Tue, 12 Feb 2019 19:24:50 -0800 Subject: [PATCH] Fix deploying with sa --- Dockerfile | 2 +- update.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 86eb979..bbc1e01 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.4 +FROM alpine:latest RUN apk --no-cache add curl ca-certificates bash RUN curl -Lo /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl RUN chmod +x /usr/local/bin/kubectl diff --git a/update.sh b/update.sh index ae32dde..aa08c61 100755 --- a/update.sh +++ b/update.sh @@ -20,7 +20,7 @@ if [ ! -z ${PLUGIN_KUBERNETES_CERT} ]; then KUBERNETES_CERT=${PLUGIN_KUBERNETES_CERT} fi -kubectl config set-credentials default --token=${KUBERNETES_TOKEN} +kubectl config set-credentials $PLUGIN_KUBERNETES_USER --token=${KUBERNETES_TOKEN} if [ ! -z ${KUBERNETES_CERT} ]; then echo ${KUBERNETES_CERT} | base64 -d > ca.crt kubectl config set-cluster default --server=${KUBERNETES_SERVER} --certificate-authority=ca.crt