Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Commit 34b1c99

Browse files
authored
Merge pull request #19 from cmdlabs/helm-v3
Helm v3
2 parents c86df34 + b8617d3 commit 34b1c99

File tree

5 files changed

+23
-44
lines changed

5 files changed

+23
-44
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.0.0] - 2019-12-17
8+
### Changed
9+
- helm v3
10+
### Removed
11+
- velero
12+
- kubectx
13+
- helm tiller
14+
715
## [0.10.0] - 2019-11-26
816
### Updated
917
- alpine to 3.10

Dockerfile

Lines changed: 9 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,52 +3,29 @@ FROM alpine:3.10
33
#Versions
44
ENV KUBECTL_VERSION="1.14.6/2019-08-22"
55
ENV AWS_VERSION="1.16.290"
6-
ENV HELM_VERSION="2.16.1"
7-
ENV HELM_TILLER_VERSION="0.9.3"
8-
ENV HELM_DIFF_VERSION="v2.11.0+5"
9-
ENV KUBECTX_VERSION="0.7.1"
10-
ENV VELERO_VERSION="1.2.0"
6+
ENV AWS_VERSION="1.16.191"
7+
ENV HELM_VERSION="3.0.1"
8+
ENV HELM_DIFF_VERSION="3.0.0-rc.7"
119

1210
#Install Packages
13-
RUN apk add --update --no-cache bash bash-completion curl git groff make ca-certificates less jq python3 fzf ncurses coreutils gettext-dev
11+
RUN apk add --update --no-cache bash bash-completion curl git make ca-certificates less jq python3 coreutils gettext-dev
1412

1513
#kubectl
16-
RUN curl -L https://amazon-eks.s3-us-west-2.amazonaws.com/${KUBECTL_VERSION}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl && \
14+
RUN curl -sL https://amazon-eks.s3-us-west-2.amazonaws.com/${KUBECTL_VERSION}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl && \
1715
chmod +x /usr/local/bin/kubectl
1816

1917
#helm
20-
RUN curl -L https://storage.googleapis.com/kubernetes-helm/helm-v${HELM_VERSION}-linux-amd64.tar.gz -o /tmp/helm.tar.gz && \
18+
RUN curl -sL https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz -o /tmp/helm.tar.gz && \
2119
tar -xvzf /tmp/helm.tar.gz -C /tmp && \
2220
mv /tmp/linux-amd64/helm /usr/local/bin/helm && \
23-
mv /tmp/linux-amd64/tiller /usr/local/bin/tiller && \
2421
chmod +x /usr/local/bin/helm && \
25-
chmod +x /usr/local/bin/tiller && \
26-
helm init -c && \
27-
helm plugin install https://github.com/rimusz/helm-tiller --version ${HELM_TILLER_VERSION} && \
28-
helm plugin install https://github.com/databus23/helm-diff --version ${HELM_DIFF_VERSION} && \
22+
helm repo add stable https://kubernetes-charts.storage.googleapis.com/ && \
2923
helm repo add incubator http://storage.googleapis.com/kubernetes-charts-incubator && \
24+
helm plugin install https://github.com/databus23/helm-diff --version v${HELM_DIFF_VERSION} && \
3025
rm -rf /tmp/*
3126

3227
#aws-cli
33-
RUN pip3 install awscli==${AWS_VERSION}
34-
35-
#kubectx
36-
RUN curl -L https://github.com/ahmetb/kubectx/archive/v${KUBECTX_VERSION}.tar.gz -o /tmp/kubectx.tar.gz && \
37-
tar -xvzf /tmp/kubectx.tar.gz -C /tmp && \
38-
mv /tmp/kubectx-${KUBECTX_VERSION}/kubectx /usr/local/bin/kubectx && \
39-
mv /tmp/kubectx-${KUBECTX_VERSION}/kubens /usr/local/bin/kubens && \
40-
chmod +x /usr/local/bin/kubectx && \
41-
chmod +x /usr/local/bin/kubens && \
42-
mv /tmp/kubectx-${KUBECTX_VERSION}/completion/kubectx.bash /usr/share/bash-completion/completions/kubectx.bash && \
43-
mv /tmp/kubectx-${KUBECTX_VERSION}/completion/kubens.bash /usr/share/bash-completion/completions/kubens.bash && \
44-
rm -rf /tmp/*
45-
46-
#velero
47-
RUN curl -L https://github.com/heptio/velero/releases/download/v${VELERO_VERSION}/velero-v${VELERO_VERSION}-linux-amd64.tar.gz -o /tmp/velero.tar.gz && \
48-
tar -xvzf /tmp/velero.tar.gz -C /tmp && \
49-
mv /tmp/velero-v${VELERO_VERSION}-linux-amd64/velero /usr/local/bin/velero && \
50-
chmod +x /usr/local/bin/velero && \
51-
rm -rf /tmp/*
28+
RUN pip3 install --no-cache-dir awscli==${AWS_VERSION}
5229

5330
#General Setup
5431
RUN mkdir /work

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = 0.10.0
1+
VERSION = 1.0.0
22
IMAGE_NAME ?= cmdlabs/eks-utils
33

44
build:

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,26 @@ https://hub.docker.com/r/cmdlabs/eks-utils
88
docker-eks-utils implements a container containing a variety of tools for managing your EKS cluster.
99

1010
* kubectl
11-
* Helm, including the [Tillerless Helm][] plugin
11+
* Helm v3
1212
* awscli
13-
* [kubectx][] (including [kubens][])
14-
* [velero][]
15-
16-
[Tillerless Helm]: https://github.com/rimusz/helm-tiller
17-
[kubectx]: https://github.com/ahmetb/kubectx
18-
[kubens]: https://github.com/ahmetb/kubectx/blob/master/kubens
19-
[velero]: https://github.com/heptio/velero
2013

2114
## Usage
2215

2316
This container can be used with the [3 Musketeers][] pattern:
2417

2518
* docker-compose.yml
2619
```yml
20+
version: '3.7'
21+
services:
2722
eks:
28-
image: cmdlabs/eks-utils:0.10.0
23+
image: cmdlabs/eks-utils:1.0.0
2924
env_file: .env
3025
working_dir: /work
3126
volumes:
3227
- .:/work
3328
- ~/.kube:/root/.kube
3429
- ~/.aws:/root/.aws
30+
- ~/.helm/repository:/root/.helm/repository
3531
```
3632
3733
* Makefile

run_tests.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@ set -euxo pipefail
44

55
kubectl --help
66
helm --help
7-
helm tiller --help
87
#Cant test helm diff as it requires a kubernetes cluster
98
aws --version
10-
velero help

0 commit comments

Comments
 (0)