forked from redhat-developer/odo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add runtime label based on metadata:language/projectType (redhat-deve…
…loper#6112) * Add runtime label based on metadata:language/projectType * Add integration tests for odo dev * odo deploy integration test * Reverse priority between pojectType and language
- Loading branch information
1 parent
b4bc9a8
commit 643ffc4
Showing
19 changed files
with
495 additions
and
14 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
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
93 changes: 93 additions & 0 deletions
93
tests/examples/source/devfiles/nodejs/devfile-with-metadata-language.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,93 @@ | ||
commands: | ||
- exec: | ||
commandLine: npm install | ||
component: runtime | ||
group: | ||
isDefault: true | ||
kind: build | ||
workingDir: /project | ||
id: install | ||
- exec: | ||
commandLine: npm start | ||
component: runtime | ||
group: | ||
isDefault: true | ||
kind: run | ||
workingDir: /project | ||
id: run | ||
- exec: | ||
commandLine: npm run debug | ||
component: runtime | ||
group: | ||
isDefault: true | ||
kind: debug | ||
workingDir: /project | ||
id: debug | ||
- exec: | ||
commandLine: npm test | ||
component: runtime | ||
group: | ||
isDefault: true | ||
kind: test | ||
workingDir: /project | ||
id: test | ||
- id: deploy | ||
composite: | ||
commands: | ||
- deploy-nginx | ||
group: | ||
kind: deploy | ||
isDefault: true | ||
- id: deploy-nginx | ||
apply: | ||
component: nginx | ||
components: | ||
- container: | ||
endpoints: | ||
- name: http-3000 | ||
targetPort: 3000 | ||
image: registry.access.redhat.com/ubi8/nodejs-14:latest | ||
memoryLimit: 1024Mi | ||
mountSources: true | ||
sourceMapping: /project | ||
name: runtime | ||
- name: nginx | ||
kubernetes: | ||
inlined: | | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: nginx | ||
name: nginx | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: nginx | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app: nginx | ||
spec: | ||
containers: | ||
- image: nginx | ||
name: nginx | ||
metadata: | ||
description: Stack with Node.js 14 | ||
displayName: Node.js Runtime | ||
icon: https://nodejs.org/static/images/logos/nodejs-new-pantone-black.svg | ||
language: javascript | ||
name: nodejs-prj | ||
tags: | ||
- NodeJS | ||
- Express | ||
- ubi8 | ||
version: 1.0.1 | ||
schemaVersion: 2.2.0 | ||
starterProjects: | ||
- git: | ||
remotes: | ||
origin: https://github.com/odo-devfiles/nodejs-ex.git | ||
name: nodejs-starter |
92 changes: 92 additions & 0 deletions
92
tests/examples/source/devfiles/nodejs/devfile-with-metadata-no-language-project-type.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,92 @@ | ||
commands: | ||
- exec: | ||
commandLine: npm install | ||
component: runtime | ||
group: | ||
isDefault: true | ||
kind: build | ||
workingDir: /project | ||
id: install | ||
- exec: | ||
commandLine: npm start | ||
component: runtime | ||
group: | ||
isDefault: true | ||
kind: run | ||
workingDir: /project | ||
id: run | ||
- exec: | ||
commandLine: npm run debug | ||
component: runtime | ||
group: | ||
isDefault: true | ||
kind: debug | ||
workingDir: /project | ||
id: debug | ||
- exec: | ||
commandLine: npm test | ||
component: runtime | ||
group: | ||
isDefault: true | ||
kind: test | ||
workingDir: /project | ||
id: test | ||
- id: deploy | ||
composite: | ||
commands: | ||
- deploy-nginx | ||
group: | ||
kind: deploy | ||
isDefault: true | ||
- id: deploy-nginx | ||
apply: | ||
component: nginx | ||
components: | ||
- container: | ||
endpoints: | ||
- name: http-3000 | ||
targetPort: 3000 | ||
image: registry.access.redhat.com/ubi8/nodejs-14:latest | ||
memoryLimit: 1024Mi | ||
mountSources: true | ||
sourceMapping: /project | ||
name: runtime | ||
- name: nginx | ||
kubernetes: | ||
inlined: | | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: nginx | ||
name: nginx | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: nginx | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app: nginx | ||
spec: | ||
containers: | ||
- image: nginx | ||
name: nginx | ||
metadata: | ||
description: Stack with Node.js 14 | ||
displayName: Node.js Runtime | ||
icon: https://nodejs.org/static/images/logos/nodejs-new-pantone-black.svg | ||
name: nodejs-prj | ||
tags: | ||
- NodeJS | ||
- Express | ||
- ubi8 | ||
version: 1.0.1 | ||
schemaVersion: 2.2.0 | ||
starterProjects: | ||
- git: | ||
remotes: | ||
origin: https://github.com/odo-devfiles/nodejs-ex.git | ||
name: nodejs-starter |
Oops, something went wrong.