k8s in-cluster daemon with API for performing NAIS-operations
Basic outline
- HTTP POST to API with name of application, version and environment
- Fetches app-config from internal artifact repository
- Extract info from yaml
- Get and inject environment specific variables from Fasit
- Creates appropriate k8s resources
on push:
- run tests
- produce binary
- bump version
- make and publish alpine docker image with binary to dockerhub
- make and publish corresponding helm chart to quay.io
For local development, use minikube. You can run naisd.go with -kubeconfig= for testing without deploying to cluster.
glide install
...to fetch dependecies
To reduce build time, do
go build -i .
initially.