https://github.com/graillus/translations-refresher
Automatic rollout kubernetes deployments on Loco translations updates.
https://github.com/graillus/translations-refresher
kubernetes loco mutation-webhook translations
Last synced: about 2 months ago
JSON representation
Automatic rollout kubernetes deployments on Loco translations updates.
- Host: GitHub
- URL: https://github.com/graillus/translations-refresher
- Owner: graillus
- Created: 2021-02-12T17:16:54.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-12T12:12:27.000Z (almost 3 years ago)
- Last Synced: 2025-01-15T22:39:31.403Z (3 months ago)
- Topics: kubernetes, loco, mutation-webhook, translations
- Language: Go
- Homepage:
- Size: 64.5 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
translations-refresher
======================Automatic rollout kubernetes deployments on Loco translations updates.
## Usage
Run the app locally
```bash
go run *.go -kubeconfig ~/.kube/config
```Build docker image
```bash
docker build -t translations-refresher:test .
```Install Helm chart
```bash
helm install translations-refresher deploy/helm
```## Testing
1. Install Kind (Kubernetes IN Docker) https://kind.sigs.k8s.io/docs/user/quick-start/#installation
2. Launch the local cluster
```bash
kind create cluster --name translations --config test/cluster.yaml
```3. Load the docker image inside the cluster
```bash
kind load docker-image translations-refresher:test --name translations
```4. Install the chart
```bash
helm install translations-refresher deploy/helm \
--set image.tag=test \
--set env.LOCO_API_KEY_DOCUMENTS= \
--set env.LOCO_API_KEY_CATALOG= \
--set env.LOCO_API_KEY_EMAILS=
```5. Install the test deployment
```bash
kubectl apply -f test/deployment.yaml
```The refresher is now running in the cluster and should have mutated the test deployment.
```bash
kubectl describe deployment/test-app
```