Closed pierlagreca closed 2 years ago
Hi @pierlagreca. Thanks for your PR.
I am @kingmakerbot. You can interact with me issuing a slash command in the first line of a comment. Currently, I understand the following commands:
/rebase
: Rebase this PR onto the master branch/merge
: Merge this PR into the master branch/hold
: Adds hold label to prevent merging with /merge/unhold
: Removes the hold label to allow merging with /merge/deploy-staging
: Deploy a staging environment to test this PR/undeploy-staging
: Manually undeploy the staging environmentMake sure this PR appears in the CrownLabs changelog, adding one of the following labels:
kind/breaking
: :boom: Breaking Changekind/feature
: :rocket: New Featurekind/bug
: :bug: Bug Fixkind/cleanup
: :broom: Code Refactoringkind/docs
: :memo: Documentation/rebase
/rebase
/rebase
/rebase
/rebase
/rebase
/deploy-staging
/deploy-staging
/rebase
/deploy-staging
/deploy-staging
/undeploy-staging
Your staging environment has been correctly teared-down!
/deploy-staging
/deploy-staging
/deploy-staging
/deploy-staging
/deploy-staging
/undeploy-staging
Your staging environment has been correctly teared-down!
/deploy-staging
Your staging environment has been correctly teared-down!
This PR adds a new controller that computes the amount of cpu minutes usage for each Tenant, and a minutes counter in the Tenant object. This controller is bound to the
Tenant Operator
and it is scheduled to be executed every 5 minutes, when in execution the controller iterates on each instance and increases the token consumption counter of the tenant by an amount of seconds for each cpu core used, depending on last esecution of the controller itself or the creation timestamp of the instances.