Develop a Go web service and automatically publish a Helm Chart using just GitHub.
Last updated Jan 29, 2021
10
Stars
2
Forks
1
Issues
0
Stars/day
Attention Score
0
Topics
Language breakdown
Dockerfile 43.1%
Go 34.5%
Makefile 22.4%
▸ Files
click to expand
README
iron-chart-go
Example repository to develop a Go webservice and automatically publish to a Helm chart using security best practices on GitHub. Let's develop in Kubernetes too. Fork me!
This recompiles your Go code when changes are detected, makes the delve Go debugger available and packs everything in a nice secure container.
Development
# this deploys as a helm chart to your default kubernetes context
% make
see the pods being created
% kubectl get pods
now edit the website source code to see it reload live!
Debugging
# see what's holding up the Pod
% kubectl logs <the-pod-id>
try to remove and redeploy the Chart
% make clean build up logs
Releasing
- Push your changes to
devor a feature branch. - Open a Pull Request and see your changes get linted, built and tested!
- Merge to publish a new Helm Chart release.
Usage
# first add our helm repository
provide a GitHub token if it's private
% helm repo add ironchartgo https://${GITHUB_TOKEN}@raw.githubusercontent.com/ironpeakservices/iron-chart-go/helmrepo/
"ironchartgo" has been added to your repositories
now let's install our Chart from our repository
% helm install mychart ironchartgo/iron-chart-go
Forking
- Fork the repository
- Change all references to ironpeakservices, hazcod or this repository.
- Provide your GitHub secret names in
.github/workflows/. - Create a
helmrepobranch which will host your Chart tarballs.
🔗 More in this category