ledger

module
v1.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2022 License: Apache-2.0

README

Collecting versions

Sending by installing the included agent in your cluster

It will collect changes to Deployments and Statefulsets

Sending using the included client

curl -o ledger https://[ledger-installation]/download
chmod +x ledger
./ledger client new-version app env version

Sending using the GraphQL API

export TOKEN=ey...

export version=1.2.3

curl 'https://ledger.development.tbnlabs.be/query' \
 -H "authorization: Bearer $TOKEN" \
  -H 'content-type: application/json' \
  --data-raw "{\"query\":\"mutation { createVersion( input: { application:\\\"$version\\\", environment:\\\"test\\\", version:\\\"$version\\\" } ) { id } }\"}" \
 --compressed \
 --insecure

kubectl exec -ti svc/ledger-server /app/ledger admin new-token agent

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL