Skip to content
Snippets Groups Projects
README.md 766 B
Newer Older
Sandro Lutz's avatar
Sandro Lutz committed
# Cluster Service Update Helper
adietmue's avatar
adietmue committed

Sandro Lutz's avatar
Sandro Lutz committed
This script handles everything needed to trigger a forced update of a service,
(which also causes nodes to pull new images, e.g. newer 'latest' images) and
adietmue's avatar
adietmue committed
can be configured with environment variables:

Sandro Lutz's avatar
Sandro Lutz committed
- `CI_DEPLOY_URL`: The URL of the [Service-Update-Helper-Service](https://gitlab.ethz.ch/amiv/service-update-helper-service)
- `CI_DEPLOY_TOKEN`: authorization token
adietmue's avatar
adietmue committed
- `CI_DEPLOY_SERVICE`: name of the service to update

Exit Codes:

adietmue's avatar
adietmue committed
- **0**: Update triggered with success.
- **1**: Missing environment variables
Sandro Lutz's avatar
Sandro Lutz committed
- **2**: Service-Update-Helper-Service is not reachable (maybe URL is invalid?)
- **3**: Invalid authorization token
- **4**: No permission to update the given service
- **5**: Service not found
- **6**: Update failed