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

[ui] Complete container creation #7035

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions ododevapispec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,9 @@ paths:
application/json:
schema:
type: object
required:
- name
- image
properties:
name:
description: Name of the container
Expand All @@ -531,6 +534,11 @@ paths:
items: {
type: string
}
env:
description: Environment variables to define
type: array
items:
$ref: '#/components/schemas/Env'
memReq:
description: Requested memory for the deployed container
type: string
Expand All @@ -548,6 +556,24 @@ paths:
type: array
items:
$ref: '#/components/schemas/VolumeMount'
configureSources:
description: If false, mountSources and sourceMapping values are not considered
type: boolean
mountSources:
description: If true, sources are mounted into container's filesystem
type: boolean
sourceMapping:
description: Specific directory on which to mount sources
type: string
annotation:
description: Annotations added to the resources created for this container
$ref: '#/components/schemas/Annotation'
endpoints:
description: Endpoints exposed by the container
type: array
items:
$ref: '#/components/schemas/Endpoint'

responses:
'200':
description: container was successfully added to the devfile
Expand Down Expand Up @@ -1522,6 +1548,12 @@ components:
- cpuRequest
- cpuLimit
- volumeMounts
- annotation
- endpoints
- env
- configureSources
- mountSources
- sourceMapping
properties:
name:
type: string
Expand All @@ -1547,6 +1579,22 @@ components:
type: array
items:
$ref: '#/components/schemas/VolumeMount'
annotation:
$ref: '#/components/schemas/Annotation'
endpoints:
type: array
items:
$ref: '#/components/schemas/Endpoint'
env:
type: array
items:
$ref: '#/components/schemas/Env'
configureSources:
type: boolean
mountSources:
type: boolean
sourceMapping:
type: string
VolumeMount:
type: object
required:
Expand All @@ -1557,6 +1605,50 @@ components:
type: string
path:
type: string
Annotation:
type: object
required:
- deployment
- service
properties:
deployment:
type: object
additionalProperties:
type: string
service:
type: object
additionalProperties:
type: string
Endpoint:
type: object
required:
- name
- targetPort
properties:
name:
type: string
exposure:
type: string
enum: [public,internal,none]
path:
type: string
protocol:
type: string
enum: [http,https,ws,wss,tcp,udp]
secure:
type: boolean
targetPort:
type: integer
Env:
type: object
required:
- name
- value
properties:
name:
type: string
value:
type: string
Image:
type: object
required:
Expand Down
3 changes: 3 additions & 0 deletions pkg/apiserver-gen/.openapi-generator/FILES

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 42 additions & 2 deletions pkg/apiserver-gen/go/model__devstate_container_post_request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 43 additions & 0 deletions pkg/apiserver-gen/go/model_annotation.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 40 additions & 9 deletions pkg/apiserver-gen/go/model_container.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 51 additions & 0 deletions pkg/apiserver-gen/go/model_endpoint.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading