Automatic rollout kubernetes deployments on Loco translations updates.
Run the app locally
go run *.go -kubeconfig ~/.kube/configBuild docker image
docker build -t translations-refresher:test .Install Helm chart
helm install translations-refresher deploy/helm-
Install Kind (Kubernetes IN Docker) https://kind.sigs.k8s.io/docs/user/quick-start/#installation
-
Launch the local cluster
kind create cluster --name translations --config test/cluster.yaml- Load the docker image inside the cluster
kind load docker-image translations-refresher:test --name translations- Install the chart
helm install translations-refresher deploy/helm \
--set image.tag=test \
--set env.LOCO_API_KEY_DOCUMENTS=<loco_api_key> \
--set env.LOCO_API_KEY_CATALOG=<loco_api_key> \
--set env.LOCO_API_KEY_EMAILS=<loco_api_key>- Install the test deployment
kubectl apply -f test/deployment.yamlThe refresher is now running in the cluster and should have mutated the test deployment.
kubectl describe deployment/test-app