A collection of Helm charts
helm repo add chgl https://chgl.github.io/charts
helm repo update
-
(Optional) Install the pre-commit hooks
pip install pre-commit pre-commit install
-
(Optional) Setup a KinD cluster with Nginx ingress and Calico (to test Ingress and NetworkPolicy resources)
kind create cluster --config=hack/kind-config.yaml kubectl create -f https://docs.projectcalico.org/manifests/tigera-operator.yaml kubectl create -f https://docs.projectcalico.org/manifests/custom-resources.yaml kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/kind/deploy.yaml
-
Make changes to the charts
-
Mount the folder in the kube-powertools container to easily run linters and checks
docker run --rm -it -v $PWD:/usr/src/app quay.io/chgl/kube-powertools:latest
-
Run chart-testing and the
chart-powerlint.sh
script to lint the chartchart-powerlint.sh
-
(Optional) View the results of the polaris audit check in your browser
$ docker run --rm -it -p 9090:8080 -v $PWD:/usr/src/app quay.io/chgl/kube-powertools:latest bash-5.0: helm template charts/fhir-server/ | polaris dashboard --audit-path -
You can now open your browser at http://localhost:9090 and see the results and recommendations.
-
Run
generate-docs.sh
to auto-generate an updated READMEgenerate-docs.sh
-
Bump the version in the changed Chart.yaml according to SemVer (The
ct lint
step above will complain if you forget to update the version.)