diff --git a/core/src/plugins/kubernetes/local-mode.ts b/core/src/plugins/kubernetes/local-mode.ts index eecae6c54f..cddf5f2b5f 100644 --- a/core/src/plugins/kubernetes/local-mode.ts +++ b/core/src/plugins/kubernetes/local-mode.ts @@ -441,8 +441,6 @@ class FailureCounter { } } -const localAppFailureCounter = new FailureCounter(10) - function getLocalServiceCommand({ spec: localModeSpec }: StartLocalModeParams): OsCommand | undefined { const command = localModeSpec.command if (!command || command.length === 0) { @@ -451,6 +449,8 @@ function getLocalServiceCommand({ spec: localModeSpec }: StartLocalModeParams): return { command: command.join(" ") } } +const localAppFailureCounter = new FailureCounter(10) + function getLocalAppProcess(configParams: StartLocalModeParams): RecoverableProcess | undefined { const localServiceCmd = getLocalServiceCommand(configParams) const { service, log } = configParams