GithubHelp home page GithubHelp logo

myquota's Introduction

myquota

This project contains the myquota command line tool that is used to simple the process of managing the resource quotas under the account.

Global environment variables

To use the tool, two environment variables are required.

OCM_ENV: The default value is stage which is point to https://api.stage.openshift.com. prod is https://api.openshift.com.

SUPER_ADMIN_USER_TOKEN: The offline token which can be get from https://cloud.redhat.com/openshift/token.

Besides, the variable export OCM_Debug_Mode=true will open the ocm logs.

Installation

To install the tool run this command:

$ go install gitlab.cee.redhat.com/openshift-group-I/myquota/cmd/myquota@latest

List quota

List quota will formatly print out the usage of the quotas.

To list the usage of the quota.

$ myquota list -u sdqe-quota MCT3326

To list the usage of all the quotas under the account.

$ myquota list -u sdqe-quota

Assign quota

It will check whether the quota exists. If exists, will update the quota to the value specified by the option --number; if not exists, will create a new quota with the value specified by the option --number. If the option --number is not set, the default value is 0.

To assign a quota to the account.

$ myquota assign -u sdqe-quota -n 5 MW00523

Delete quota

It will check wehther the quota is used. if used, and if the option --force is not set, will stop deletion with warning message.

To delete a quota under the account.

$ myquota remove -u sdqe-quota MW00523

myquota's People

Contributors

yasun1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.