forked from flyteorg/flyteidl
/
model_core_container.go
25 lines (23 loc) · 1.27 KB
/
model_core_container.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
* flyteidl/service/admin.proto
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: version not set
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package flyteadmin
type CoreContainer struct {
Image string `json:"image,omitempty"`
// Command to be executed, if not provided, the default entrypoint in the container image will be used.
Command []string `json:"command,omitempty"`
// These will default to Flyte given paths. If provided, the system will not append known paths. If the task still needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the system will populate these before executing the container.
Args []string `json:"args,omitempty"`
// Container resources requirement as specified by the container engine.
Resources *CoreResources `json:"resources,omitempty"`
// Environment variables will be set as the container is starting up.
Env []CoreKeyValuePair `json:"env,omitempty"`
// Allows extra configs to be available for the container. TODO: elaborate on how configs will become available.
Config []CoreKeyValuePair `json:"config,omitempty"`
Ports []CoreContainerPort `json:"ports,omitempty"`
}