An open API service indexing awesome lists of open source software.

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.

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
```