Skip to content

Commit

Permalink
feat: add one-way-replica as additional devMode.sync.mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojciech Kocjan authored and edvald committed Jun 2, 2021
1 parent d512a43 commit bcb16e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/plugins/container/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const hotReloadConfigSchema = () =>
with this module as their \`sourceModule\`.
`)

export type SyncMode = "one-way" | "two-way"
export type SyncMode = "one-way" | "one-way-replica" | "two-way"

export interface DevModeSyncSpec {
source: string
Expand All @@ -196,7 +196,7 @@ const devModeSyncSchema = () =>
.example(["dist/**/*", "*.log"]),
mode: joi
.string()
.allow("one-way", "two-way")
.allow("one-way", "one-way-replica", "two-way")
.default("one-way")
.description("The sync mode to use for the given paths."),
})
Expand Down
1 change: 1 addition & 0 deletions core/src/plugins/kubernetes/dev-mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export function configureDevMode({ target, spec, containerName }: ConfigureDevMo

const mutagenModeMap = {
"one-way": "one-way-safe",
"one-way-replica": "one-way-replica",
"two-way": "two-way-safe",
}

Expand Down

0 comments on commit bcb16e8

Please sign in to comment.