Skip to content

Commit

Permalink
Add aws-iam-authenticator to Docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
Jberlinsky committed Jul 13, 2020
1 parent 72b76db commit e447b92
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ RUN pip install awscli
RUN curl -L -o /usr/bin/kubectl https://amazon-eks.s3.us-west-2.amazonaws.com/1.15.10/2020-02-22/bin/linux/amd64/kubectl
RUN chmod +x /usr/bin/kubectl

RUN curl -o /usr/bin/aws-iam-authenticator https://amazon-eks.s3.us-west-2.amazonaws.com/1.17.7/2020-07-08/bin/linux/amd64/aws-iam-authenticator
RUN chmod +x /usr/bin/aws-iam-authenticator

COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v2

- name: Trigger deploy
uses: Consensys/kubernetes-action@master
uses: Jberlinsky/kubernetes-action@master
env:
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }}
with:
Expand All @@ -39,15 +39,15 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Configure AWS Credentials
- name: Jberlinsky AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Trigger deploy
uses: Consensys/kubernetes-action@master
uses: Jberlinsky/kubernetes-action@master
env:
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }}
with:
Expand Down Expand Up @@ -85,7 +85,7 @@ Make sure your users has the proper IAM permissions to access your cluster and t
```yaml
- name: Save container image
id: image-save
uses: Consensys/kubernetes-action@master
uses: Jberlinsky/kubernetes-action@master
env:
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }}
with:
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "Kubernetes Action"
description: "Interacts with kubernetes clusters calling kubectl commands. Integrates support for AWS EKS."
name: "Kubernetes Action with aws-iam-authenticator"
description: "Interacts with kubernetes clusters calling kubectl commands. Integrates support for AWS EKS via aws-iam-authenticator."
branding:
icon: 'anchor'
color: 'blue'
Expand Down

0 comments on commit e447b92

Please sign in to comment.