CLI tool for the OpenSLO spec. For more information also check the website: openslo.com.
- Checkout this repository
- Install oslo with
go get github.com/OpenSLO/oslo
brew tap openslo/openslo
brew install oslo
docker run -v "$(pwd):/manifests" ghcr.io/openslo/oslo:latest <command> /manifests/<file>.yaml
For example, if you had an OpenSLO spec file in the current directory called myservice.yaml
,
and you wanted to validate it, the full command would be:
# docker run -v "$(pwd):/manifests" ghcr.io/openslo/oslo:latest validate /manifests/myservice.yaml
Valid!
Right now, the only function is validate
, which you can call with oslo validate
To test out the features of oslo, from the root of the project run
oslo validate test/valid-service.yaml
That will validate against a valid yaml file. There are other files in that
directory to test out the functionality of oslo