Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/logging rate limits #2313

Merged
merged 4 commits into from
Sep 8, 2022
Merged

Conversation

jdgonzaleza
Copy link
Contributor

Thank you for contributing to the CF CLI! Please read the following:

  • Please make sure you have implemented changes in line with the contributing guidelines
  • We're not allowed to accept any PRs without a signed CLA, no matter how small.
    If your contribution falls under a company CLA but your membership is not public, expect delays while we confirm.
  • All new code requires tests to protect against regressions.
  • Contributions must be made against the appropriate branch. See the contributing guidelines
  • Contributions must conform to our style guide. Please reach out to us if you have questions.

Does this PR modify CLI v6, CLI v7, or CLI v8?

Please see the contribution doc above or review Architecture Guide.

Description of the Change

We must be able to understand the design of your change from this description.
Keep in mind that the maintainer reviewing this PR may not be familiar with or
have worked with the code here recently, so please walk us through the concepts.

Why Is This PR Valuable?

What benefits will be realized by the code change? What users would want this change? What user need is this change addressing?

Why Should This Be In Core?

Explain why this functionality should be in the cf CLI, as opposed to a plugin.

Applicable Issues

List any applicable Github Issues here

How Urgent Is The Change?

Is the change urgent? If so, explain why it is time-sensitive.

Other Relevant Parties

Who else is affected by the change?

ctlong and others added 4 commits September 7, 2022 15:39
* org-quota and space-quota now show log volume

* code currently assumes responses with log limits. Consider
  backward compatibility before shipping.

* add log volume to space-quotas and org-quotas commands

* will show "unlimited" for old CC API's which is technically correct

* Fix unit tests in ccv3

Co-authored-by: Rebecca Roberts <robertsre@vmware.com>
Co-authored-by: Matthew Kocher <mkocher@vmware.com>
Co-authored-by: Carson Long <lcarson@vmware.com>
* create-space-quota accepts log volume flag

Signed-off-by: Matthew Kocher <mkocher@vmware.com>

* update-space-quota accepts log volume flag

Signed-off-by: Carson Long <lcarson@vmware.com>

* Update create-space-quota flag description

Make it clear that the log volume measured is in bytes rather than log
lines.

Co-authored-by: Rebecca Roberts <robertsre@vmware.com>
* Bump rack from 2.2.3 to 2.2.3.1 in /fixtures/applications/example-app (#2278)

* `cf push` command accepts log rate limit flag

* since `cf push` uses manifests this commit also adds support for log
  rate limit in manifests

* `cf scale` command accepts log rate limit flag

* app summary displayer can now handle rendering log rate and log rate
  limit metrics for running instances

* app summaries will show `0 of 0` if the cloud controller does not
  support log rate limit container metrics

* `cf run-task` command accepts log rate limit flag

* update help text to suggest using ='s with -1 to avoid flag parsing problem

* Flag parser accepts 0B, -1B, 0T, etc for flags

* this affects non-manifest based commands

* Extract constants for instance stats columns

* Extract constant for column count

Signed-off-by: Carson Long <lcarson@vmware.com>
Signed-off-by: Rebecca Roberts <robertsre@vmware.com>
Signed-off-by: Ben Fuller <benjaminf@vmware.com>
Signed-off-by: Matthew Kocher <mkocher@vmware.com>
@jdgonzaleza jdgonzaleza merged commit cfcea0f into master Sep 8, 2022
jdgonzaleza added a commit that referenced this pull request Sep 8, 2022
* Feat: create and update org quotas with log volume (#2298)

* Show org and space quotas (#2299)

* org-quota and space-quota now show log volume

* code currently assumes responses with log limits. Consider
  backward compatibility before shipping.

* add log volume to space-quotas and org-quotas commands

* will show "unlimited" for old CC API's which is technically correct

* Fix unit tests in ccv3

* Create and update space quotas (#2300)

* create-space-quota accepts log volume flag

* update-space-quota accepts log volume flag

* Update create-space-quota flag description

* Make it clear that the log volume measured is in bytes rather than log
  lines.

* Push and scale app and run-task 

* Bump rack from 2.2.3 to 2.2.3.1 in /fixtures/applications/example-app

* `cf push` command accepts log rate limit flag

* since `cf push` uses manifests this commit also adds support for log
  rate limit in manifests

* `cf scale` command accepts log rate limit flag

* app summary displayer can now handle rendering log rate and log rate
  limit metrics for running instances

* app summaries will show `0 of 0` if the cloud controller does not
  support log rate limit container metrics

* `cf run-task` command accepts log rate limit flag

* update help text to suggest using ='s with -1 to avoid flag parsing problem

* Flag parser accepts 0B, -1B, 0T, etc for flags

* this affects non-manifest based commands

* Extract constants for instance stats columns

* Extract constant for column count

Co-authored-by: Carson Long <lcarson@vmware.com>
Co-authored-by: Matthew Kocher <mkocher@vmware.com>
Co-authored-by: Rebecca Roberts <robertsre@vmware.com>
Co-authored-by: Benjamin Fuller <Benjamintf1@gmail.com>
@moleske moleske deleted the feature/logging-rate-limits branch September 15, 2022 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants