-
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.
Pod Security Admission support for odo deploy (#6679)
* Use GetPodTemplateSpec instead of deprecated GetContainers * Specify pod admission policy when building Exec Job * Integration test * Update tests/helper/component_podman.go Co-authored-by: Armel Soro <armel@rm3l.org> * add test --------- Co-authored-by: Armel Soro <armel@rm3l.org>
- Loading branch information
Showing
15 changed files
with
188 additions
and
23 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
74 changes: 74 additions & 0 deletions
74
tests/examples/source/devfiles/nodejs/devfile-deploy-exec-long.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,74 @@ | ||
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 | ||
- exec: | ||
commandLine: sleep 20 | ||
component: runtime | ||
id: deploy-exec | ||
- id: deploy | ||
composite: | ||
commands: | ||
- deploy-exec | ||
group: | ||
kind: deploy | ||
isDefault: true | ||
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 | ||
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-prj1-api-abhz | ||
projectType: nodejs | ||
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 | ||
variables: | ||
CONTAINER_IMAGE: quay.io/unknown-account/myimage |
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
6 changes: 4 additions & 2 deletions
6
vendor/github.com/devfile/library/v2/pkg/devfile/generator/generators.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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