tree: b9b874e6c72854a43bed99b5701b6f9f12ba56f7 [path history] [tgz]
  1. usagechecker/
  2. README.md
  3. usage-job.tpl.yaml
  4. usage.js
admin/usage/README.md

Openserverless Usage task

Development:

The usage implementation is inside the usagechecker folder. The entrypoint is the usagechecker/index.ts file.

Components:

  1. volume-manager: Reads the yaml template file, injects PVC and volume configurations, and renders the final template
  2. log-formatter: Processes raw PVC/log data and generates formatted disk usage (df) output
  3. job-operator: Orchestrates the entire workflow including template rendering, job creation, and Kubernetes deployment
Fetch dependencies
bun install

Execute tests

There are component's tests inside the usagechecker/tests folder.

bun run test

Building:

To build the configurator and generate the usage.js file, run the following command:

bun run build

It will generate the usage.js file and move it in the parent, where it can be used by the opsfile task.