-
Notifications
You must be signed in to change notification settings - Fork 64
Quota check preceding resource check #614
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
Merged
metalcycling
merged 28 commits into
project-codeflare:main
from
metalcycling:quota-management
Aug 30, 2023
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
69163df
Quota release when AppWrapper is completed
metalcycling 79df8d1
Merge remote-tracking branch 'upstream/main' into quota-management
metalcycling 5ef78b6
Quota release testing. Fix in the Fits function to allocate consumer.
metalcycling 839f23a
Merge remote-tracking branch 'upstream/main' into quota-management
metalcycling 8277a66
Merge remote-tracking branch 'upstream/main' into quota-management
metalcycling 02364f7
Merge remote-tracking branch 'upstream/main' into quota-management
metalcycling 0a2b83f
Merge remote-tracking branch 'upstream/main' into quota-management
metalcycling cd058bb
Merge remote-tracking branch 'upstream/main' into quota-management
metalcycling c4b0eea
Merge remote-tracking branch 'upstream/main' into quota-management
metalcycling b2dd8e1
Aggregate all the resources names accross all children in the tree to…
metalcycling 6e822e8
Merge remote-tracking branch 'upstream/main' into quota-management
metalcycling 3c3487d
Reverted changes from previous commits to current version of main
metalcycling d397d1f
Added GPU as one of the default resources
metalcycling c95bbae
Merge remote-tracking branch 'upstream/main' into quota-management
metalcycling fbad3a4
Formatting fixes
metalcycling 975e731
Merge remote-tracking branch 'upstream/main' into quota-management
metalcycling 935ca78
Merge remote-tracking branch 'upstream/main' into quota-management
metalcycling d155445
Fixed bug in quota management library that didn't preempt jobs when b…
metalcycling fac47ac
Merge remote-tracking branch 'upstream/main' into quota-management
metalcycling 185ebf8
Merge remote-tracking branch 'upstream/main' into quota-management
metalcycling 5dfeb97
Quota check preceeding resource check update. This version allows to …
metalcycling 2dcca14
Interface fix
metalcycling 014a5e7
Added some comments and TODOs
metalcycling a6d35ea
Merge remote-tracking branch 'upstream/main' into quota-management
metalcycling 615757b
Kuttl quota borrowing test
metalcycling 8a4aa10
Separated borrowing tests so that quotas are resetted
metalcycling ed5c924
Added missing files for the borrowing test
metalcycling 34ffda2
Added commands to build quota tree when the test is run
metalcycling File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
--- | ||
apiVersion: ibm.com/v1 | ||
kind: QuotaSubtree | ||
metadata: | ||
name: context-root | ||
namespace: kube-system | ||
labels: | ||
tree: quota_context | ||
spec: | ||
children: | ||
- name: context-root | ||
quotas: | ||
requests: | ||
cpu: 1075m | ||
memory: 1045Mi | ||
nvidia.com/gpu: 16 | ||
--- | ||
apiVersion: ibm.com/v1 | ||
kind: QuotaSubtree | ||
metadata: | ||
name: service-root | ||
namespace: kube-system | ||
labels: | ||
tree: quota_service | ||
spec: | ||
children: | ||
- name: service-root | ||
quotas: | ||
requests: | ||
cpu: 1075m | ||
memory: 1045Mi | ||
nvidia.com/gpu: 16 | ||
--- | ||
apiVersion: ibm.com/v1 | ||
kind: QuotaSubtree | ||
metadata: | ||
name: context-root-children | ||
namespace: kube-system | ||
labels: | ||
tree: quota_context | ||
spec: | ||
parent: context-root | ||
children: | ||
- name: gold | ||
quotas: | ||
hardLimit: false | ||
requests: | ||
cpu: 1075m | ||
memory: 450Mi | ||
nvidia.com/gpu: 8 | ||
- name: silver | ||
quotas: | ||
hardLimit: false | ||
requests: | ||
cpu: 1075m | ||
memory: 400Mi | ||
nvidia.com/gpu: 8 | ||
- name: bronze | ||
quotas: | ||
hardLimit: true | ||
requests: | ||
cpu: 900m | ||
memory: 300Mi | ||
nvidia.com/gpu: 8 | ||
- name: default | ||
quotas: | ||
hardLimit: false | ||
requests: | ||
cpu: 0m | ||
memory: 0Mi | ||
nvidia.com/gpu: 0 | ||
--- | ||
apiVersion: ibm.com/v1 | ||
kind: QuotaSubtree | ||
metadata: | ||
name: service-root-children | ||
namespace: kube-system | ||
labels: | ||
tree: quota_service | ||
spec: | ||
parent: service-root | ||
children: | ||
- name: gold | ||
quotas: | ||
requests: | ||
cpu: 1075m | ||
memory: 1045Mi | ||
nvidia.com/gpu: 16 | ||
- name: default | ||
quotas: | ||
hardLimit: false | ||
requests: | ||
cpu: 0m | ||
memory: 0Mi | ||
nvidia.com/gpu: 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Verify CRDs existence | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: appwrappers.mcad.ibm.com | ||
status: | ||
acceptedNames: | ||
kind: AppWrapper | ||
listKind: AppWrapperList | ||
plural: appwrappers | ||
singular: appwrapper | ||
storedVersions: | ||
- v1beta1 | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: quotasubtrees.ibm.com | ||
status: | ||
acceptedNames: | ||
kind: QuotaSubtree | ||
singular: quotasubtree | ||
plural: quotasubtrees | ||
storedVersions: | ||
- v1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Verify subtree creations | ||
apiVersion: ibm.com/v1 | ||
kind: QuotaSubtree | ||
metadata: | ||
name: context-root | ||
namespace: kube-system | ||
labels: | ||
tree: quota_context | ||
--- | ||
apiVersion: ibm.com/v1 | ||
kind: QuotaSubtree | ||
metadata: | ||
name: service-root | ||
namespace: kube-system | ||
labels: | ||
tree: quota_service | ||
--- | ||
apiVersion: ibm.com/v1 | ||
kind: QuotaSubtree | ||
metadata: | ||
name: context-root-children | ||
namespace: kube-system | ||
labels: | ||
tree: quota_context | ||
--- | ||
apiVersion: ibm.com/v1 | ||
kind: QuotaSubtree | ||
metadata: | ||
name: service-root-children | ||
namespace: kube-system | ||
labels: | ||
tree: quota_service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Verify test namespace existence | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Verify job is running | ||
--- | ||
apiVersion: mcad.ibm.com/v1beta1 | ||
kind: AppWrapper | ||
metadata: | ||
name: my-job-1 | ||
namespace: test | ||
status: | ||
state: Running |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.