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

implement quantity comparison #558

Merged
merged 2 commits into from
Dec 16, 2019
Merged

implement quantity comparison #558

merged 2 commits into from
Dec 16, 2019

Conversation

realshuting
Copy link
Member

Fix #428.

In order to handle quantity comparison (pattern in a rule is defined with string, e.g. "1Gi"), we first parse the pattern:

  • if it's with type quantity, then compare by the quantities
  • if it's a normal string, then a wildcard match

@realshuting realshuting merged commit 4149d70 into master Dec 16, 2019
@realshuting realshuting deleted the 428_quantity branch December 16, 2019 23:53
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.

Handle memory/cpu or volumes comparison
2 participants