Skip to content

Commit 6b9603d

Browse files
committed
Added helm-docs to image
1 parent e7dda4f commit 6b9603d

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,14 @@ echo "::group::Install Kubernetes tools"
490490
tar -xz -C /usr/local/bin --no-same-owner --strip 1 linux-${ARCH}/helm
491491
helm version
492492

493+
# install helm-docs: https://github.com/norwoodj/helm-docs#installation
494+
REL="https://github.com/norwoodj/helm-docs/releases/latest"
495+
VER=$(curl -Is $REL | sed -En 's/^location:.+\/tag\/v(.+)\r$/\1/p')
496+
arch=$(uname -m | sed -e 's/aarch64/arm64/') # must be x86_64 or arm64
497+
curl -fsSL $REL/download/helm-docs_${VER}_Linux_${arch}.tar.gz | \
498+
tar -xz -C /usr/local/bin --no-same-owner helm-docs
499+
helm-docs --version
500+
493501
# install Helm plugins
494502
helm plugin install https://github.com/databus23/helm-diff
495503
helm diff version

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ Includes the following components:
2323
- [kube-score](https://github.com/zegl/kube-score)
2424
- [kind](https://kind.sigs.k8s.io/) and [vCluster](https://www.vcluster.com/)
2525
- [Helm](https://helm.sh/)
26-
- [Helmfile](https://github.com/helmfile/helmfile)
26+
- [helm-docs](https://github.com/norwoodj/helm-docs)
2727
- [helm-diff](https://github.com/databus23/helm-diff)
2828
- [helm-ssm](https://github.com/codacy/helm-ssm)
29+
- [Helmfile](https://github.com/helmfile/helmfile)
2930
- [Argo CD](https://argo-cd.readthedocs.io/en/stable/)
3031

3132
As well as the following utilities:

scripts/versions.sh

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ setver go $(v=(`go version`); echo ${v[2]#go})
5454
setver gzip $(v=(`gzip --version | head -1`); echo ${v[-1]})
5555
setver helm $(v=`helm version --short`; v=${v#v}; echo ${v%+*})
5656
setver helm-diff $(helm diff version)
57+
setver helm-docs $(v=(`helm-docs --version`); echo ${v[-1]})
5758
setver helm-ssm $(v=(`helm plugin list | grep ssm`); echo ${v[1]})
5859
setver helmfile $(helmfile version -o short)
5960
setver jo $(jo -V | jq -r .version)

0 commit comments

Comments
 (0)