Skip to content

Commit

Permalink
Enabled Host-Mount Cache Consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
dcwangmit01 committed Feb 7, 2020
1 parent 6ea1898 commit 27f9c25
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/kdk/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ func (c *KdkEnvConfig) CreateKdkConfig() (err error) {
if err != nil {
log.Warn("Failed to add keybase mount:", err)
} else {
mounts = append(mounts, mount.Mount{Type: mount.TypeBind, Source: source, Target: target, ReadOnly: false})
mounts = append(mounts, mount.Mount{Type: mount.TypeBind, Source: source, Target: target,
ReadOnly: false, Consistency: mount.ConsistencyCached})
volumes[target] = struct{}{}
}

Expand Down Expand Up @@ -190,7 +191,8 @@ func (c *KdkEnvConfig) CreateKdkConfig() (err error) {
log.Infof("Entered container target directory mount %v", target)
}

mounts = append(mounts, mount.Mount{Type: mount.TypeBind, Source: source, Target: target, ReadOnly: false})
mounts = append(mounts, mount.Mount{Type: mount.TypeBind, Source: source, Target: target,
ReadOnly: false, Consistency: mount.ConsistencyCached})
volumes[target] = struct{}{}
} else {
break
Expand Down

0 comments on commit 27f9c25

Please sign in to comment.