-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add suppport for cpuLimit, cpuRequest and memoryRequest (#5252)
* update Devfile library and api Signed-off-by: anandrkskd <[email protected]> * resolve problem occured by update Signed-off-by: anandrkskd <[email protected]> * add test for cpuLimit,cpuRequest,memoryRequest Signed-off-by: anandrkskd <[email protected]> * resolve branch conflicts Signed-off-by: anandrkskd <[email protected]> * update schema version to 2.2.0 for test devfiles Signed-off-by: anandrkskd <[email protected]> * revert - update schema version to 2.2.0 for test devfiles Signed-off-by: anandrkskd <[email protected]> * downgrade devfile library Signed-off-by: anandrkskd <[email protected]> * update test, remove duplication Signed-off-by: anandrkskd <[email protected]> * replace oc with kubectl Signed-off-by: anandrkskd <[email protected]> * restructure when Signed-off-by: anandrkskd <[email protected]> * force push Signed-off-by: anandrkskd <[email protected]> * rebase and update the test to use cliRunner Signed-off-by: anandrkskd <[email protected]> * remove golint issues Signed-off-by: anandrkskd <[email protected]>
- Loading branch information
1 parent
8601ff4
commit 0e42e99
Showing
25 changed files
with
1,780 additions
and
61 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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
53 changes: 53 additions & 0 deletions
53
tests/examples/source/devfiles/nodejs/devfile-with-MR-CL-CR.yaml
This file contains 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,53 @@ | ||
schemaVersion: 2.2.0 | ||
metadata: | ||
name: nodejs | ||
projectType: nodejs | ||
language: nodejs | ||
starterProjects: | ||
- name: nodejs-starter | ||
git: | ||
remotes: | ||
origin: "https://github.com/odo-devfiles/nodejs-ex.git" | ||
components: | ||
- name: runtime | ||
container: | ||
image: registry.access.redhat.com/ubi8/nodejs-12:1-36 | ||
memoryLimit: 1024Mi | ||
memoryRequest: 512Mi | ||
cpuLimit: '1' | ||
cpuRequest: 200m | ||
endpoints: | ||
- name: "3000-tcp" | ||
targetPort: 3000 | ||
mountSources: true | ||
commands: | ||
- id: devbuild | ||
exec: | ||
component: runtime | ||
commandLine: npm install | ||
workingDir: ${PROJECTS_ROOT} | ||
group: | ||
kind: build | ||
isDefault: true | ||
- id: build | ||
exec: | ||
component: runtime | ||
commandLine: npm install | ||
workingDir: ${PROJECTS_ROOT} | ||
group: | ||
kind: build | ||
- id: devrun | ||
exec: | ||
component: runtime | ||
commandLine: npm start | ||
workingDir: ${PROJECTS_ROOT} | ||
group: | ||
kind: run | ||
isDefault: true | ||
- id: run | ||
exec: | ||
component: runtime | ||
commandLine: npm start | ||
workingDir: ${PROJECTS_ROOT} | ||
group: | ||
kind: run |
This file contains 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
35 changes: 35 additions & 0 deletions
35
vendor/github.com/devfile/api/v2/pkg/validation/components.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
vendor/github.com/devfile/api/v2/pkg/validation/validation-rule.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.