Open richarddli opened 7 years ago
FWIW, I'm experimenting on an another way of integrating forge with Helm charts - something like this:
if [ -d k8s/ ]; then
echo removing directory k8s/...
rm -rf k8s/
fi
mkdir k8s/
echo rendering k8s/manifests-from-helm-template.yaml...
helm-secrets template \
--name '{{build.name}}' \
--set 'image.repository=\{\{build.images[\"Dockerfile\"]\
.split(\":\")[0]\}\},image.tag=\{\{build.images[\"Dockerfile\
\"].split(\":\")[1]\}\}' . \
-f values.yaml \
-f secrets.yaml \
> k8s/manifests-from-helm-template.yaml
forge build manifest
kubectl apply -f .forge/k8s/$service_name/manifests-from-helm-template.yaml --prune ...
Basically, it works like:
k8s/
..forge/k8s/$service_name/manifests-from-helm-template.yaml
.kubectl apply
to apply the rendered k8s manifests into the clusterI am new with helm, I want to understand what situations integration of helm and forge and CI can be useful. @mumoshu does this really work well for you? Isn't this overengineering?
Forge can output Helm charts, and not just the deployment manifests