This repository was archived by the owner on Apr 27, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +21
-8
lines changed Expand file tree Collapse file tree 3 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 1
- FROM golang:1.12
2
-
3
- RUN set -x && \
4
- GO111MODULE=on go get -u -v github.com/kubernetes-sigs/aws-iam-authenticator/cmd/aws-iam-authenticator
5
-
6
1
FROM ubuntu:18.04
7
2
8
3
MAINTAINER Kazuki Suda <ksuda@zlab.co.jp>
9
4
10
5
ARG KUBERNETES_VERSION=
11
6
7
+ # Do NOT update the next line manually, please use ./scripts/update-aws-iam-authenticator.sh instead
8
+ ARG AWS_IAM_AUTHENTICATOR_VERSION=v0.4.0
9
+
12
10
RUN set -x && \
13
11
apt-get update && \
14
12
apt-get install -y jq curl && \
13
+ # Download and install kubectl
15
14
[ -z "$KUBERNETES_VERSION" ] && KUBERNETES_VERSION=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt) ||: && \
16
15
curl -s -LO https://storage.googleapis.com/kubernetes-release/release/${KUBERNETES_VERSION}/bin/linux/amd64/kubectl && \
17
16
chmod +x ./kubectl && \
18
17
mv ./kubectl /usr/local/bin/kubectl && \
19
18
kubectl version --client && \
19
+ # Download and install aws-iam-authenticator
20
+ curl -s -L -o /usr/local/bin/aws-iam-authenticator "https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/${AWS_IAM_AUTHENTICATOR_VERSION}/aws-iam-authenticator_$(echo " $AWS_IAM_AUTHENTICATOR_VERSION" | tr -d v)_linux_amd64" && \
21
+ chmod +x /usr/local/bin/aws-iam-authenticator && \
22
+ aws-iam-authenticator version && \
20
23
rm -rf /var/lib/apt/lists/*
21
24
22
- COPY --from=0 /go/bin/aws-iam-authenticator /usr/local/bin/
23
-
24
25
RUN mkdir -p /opt/resource
25
26
COPY assets/* /opt/resource/
Original file line number Diff line number Diff line change 4
4
5
5
A Concourse resource for controlling the Kubernetes cluster.
6
6
7
- * This resource supports AWS EKS.*
7
+ * This resource supports AWS EKS. (kubernetes-sigs/aws-iam-authenticator@v0.4.0) *
8
8
9
9
## Versions
10
10
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -e -o pipefail; [[ -n " $DEBUG " ]] && set -x
4
+
5
+ AWS_IAM_AUTHENTICATOR_VERSION=" $1 "
6
+ if [[ -z " $AWS_IAM_AUTHENTICATOR_VERSION " ]]; then
7
+ echo " Usage: $0 <version>" >&2
8
+ exit 1
9
+ fi
10
+
11
+ sed -i -e " s/^ARG AWS_IAM_AUTHENTICATOR_VERSION=v[0-9\.]*$/ARG AWS_IAM_AUTHENTICATOR_VERSION=$AWS_IAM_AUTHENTICATOR_VERSION /" Dockerfile
12
+ sed -i -e " s/aws-iam-authenticator@v[0-9\.]*/aws-iam-authenticator@${AWS_IAM_AUTHENTICATOR_VERSION} /" README.md
You can’t perform that action at this time.
0 commit comments