This is an automated email from the ASF dual-hosted git repository.

msciabarra pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openserverless-task.git

commit cb3c7b794eed65150b700b3fea96f75621d48b91
Merge: 3d68e84 c46096f
Author: Michele Sciabarra <[email protected]>
AuthorDate: Wed Jul 2 06:25:00 2025 +0200

    Merge pull request #102 from almartino/issue-133
    
    Implement ops admin usage

 admin/docopts.md                                   |    7 +-
 admin/opsfile.yml                                  |   12 +-
 admin/usage/README.md                              |   36 +
 admin/usage/usage-job.tpl.yaml                     |   18 +
 admin/usage/usage.js                               | 7191 ++++++++++++++++++++
 admin/usage/usagechecker/index.ts                  |   34 +
 admin/usage/usagechecker/job-operator.ts           |  124 +
 admin/usage/usagechecker/log-formatter.ts          |   62 +
 admin/usage/usagechecker/models.ts                 |   29 +
 admin/usage/usagechecker/package-lock.json         |  132 +
 admin/usage/usagechecker/package.json              |   20 +
 admin/usage/usagechecker/tests/README.md           |   10 +
 .../usage/usagechecker/tests/log-formatter.test.ts |  118 +
 admin/usage/usagechecker/volume-manager.ts         |  123 +
 14 files changed, 7913 insertions(+), 3 deletions(-)

diff --cc admin/docopts.md
index 2ddba51,841fba4..dffa362
--- a/admin/docopts.md
+++ b/admin/docopts.md
@@@ -29,16 -29,16 +29,18 @@@ You can create namespaces and choose wh
  Usage:
    admin adduser <username> <email> <password> [--all] [--redis] [--mongodb] 
[--minio] [--postgres] [--milvus] [--storagequota=<quota>|auto]
    admin deleteuser <username>
 +  admin listuser [<username>]
    admin compact [--ttl=<ttl>|10]
+   admin usage [--debug]
  ```
  
  ## Commands
  ```
    admin adduser       create a new user in OpenServerless with the username, 
email and password provided
    admin deleteuser    delete a user from the OpenServerless installation via 
the username provided
 +  admin listuser      list all the secrets of an user (default list all the 
users)
    admin compact       create a one shot job which executes couchdb compact 
against all available dbs
+   admin usage         calculates and displays PVC disk usage statistics for 
bound volumes. Shows Total, Size and Available storage per PVC
  ```
  
  ## Options

Reply via email to