Service deploy model updates.

pull/32/head
Artem Golub 5 years ago
parent d68cee373f
commit 197067d789

@ -41,12 +41,13 @@ export interface KeyValuePair {
export interface ServiceDeploy { export interface ServiceDeploy {
mode: string mode: string
replicas: number replicas: number
labels: [] labels: KeyValuePair[]
update_config: { update_config: {
parallelism: number parallelism: number
delay: string delay: string
order: string order: string
} }
rollback_config: string
restart_policy: { restart_policy: {
condition: string condition: string
delay: string delay: string
@ -56,7 +57,7 @@ export interface ServiceDeploy {
endpoint_mode: string endpoint_mode: string
placement: { placement: {
constraints: [] constraints: []
preferences: [] preferences: KeyValuePair[]
} }
max_replicas_per_node: number max_replicas_per_node: number
resources: { resources: {
@ -88,7 +89,7 @@ export interface Service {
init: boolean init: boolean
isolation: string isolation: string
container_name?: string container_name?: string
deploy: object deploy: ServiceDeploy
build: ServiceBuildObject build: ServiceBuildObject
image: string image: string
restart: string restart: string

Loading…
Cancel
Save