deislabs / bindle

Bindle: Object Storage for Collections
Apache License 2.0
263 stars 37 forks source link

feat(healthz): add version #353

Closed FrankYang0529 closed 1 year ago

FrankYang0529 commented 1 year ago

resolve https://github.com/deislabs/bindle/issues/350 ref https://github.com/fermyon/spin/pull/786#issuecomment-1283146177

Test step

  1. Build.
    > make build
  2. Run the server.
    > ./target/debug/bindle-server --unauthenticated
  3. Test /healthz.
    
    > curl -i http://localhost:8080/healthz
    HTTP/1.1 200 OK
    content-type: application/json
    content-length: 38
    date: Thu, 27 Oct 2022 11:37:31 GMT

{"status":"OK","version":"0.9.0-rc.1"}

FrankYang0529 commented 1 year ago

Hi @thomastaylor312, could you help me review this PR? I need it to add some warning messages of inconsistent versions in spin#786. Thank you.