From 213c17bf03c6bdbec6763b1ec7a2d0b3fe253d76 Mon Sep 17 00:00:00 2001 From: Samuel Rowe Date: Wed, 3 Aug 2022 13:07:50 +0530 Subject: [PATCH] feat(frontend): added `updateConfig` to `IEditServiceForm` interface --- services/frontend/src/types/index.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/services/frontend/src/types/index.ts b/services/frontend/src/types/index.ts index 222b038..913acf3 100644 --- a/services/frontend/src/types/index.ts +++ b/services/frontend/src/types/index.ts @@ -191,10 +191,10 @@ export interface IService { update_config?: { parallelism?: number; delay?: string; - failure_action?: string; + failure_action?: "continue" | "pause"; monitor?: string; max_failure_ratio?: string; - order?: string; + order?: "stop-first" | "start-first"; }; }; device_cgroup_rules: string[]; @@ -437,6 +437,14 @@ export interface IEditServiceForm { maxFailureRatio: string; order: "" | "stop-first" | "start-first"; }; + updateConfig: { + parallelism: string; + delay: string; + failureAction: "" | "continue" | "pause"; + monitor: string; + maxFailureRatio: string; + order: "" | "stop-first" | "start-first"; + }; labels: { key: string; value: string;