Skip to content

Commit 828ce5a

Browse files
Disable watch caching, not needed for sqlite
1 parent f6e0bad commit 828ce5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/daemons/control/server.go

+2
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ func apiServer(ctx context.Context, cfg *config.Control, runtime *config.Control
156156
certDir := filepath.Join(cfg.DataDir, "tls/temporary-certs")
157157
os.MkdirAll(certDir, 0700)
158158

159+
// TODO: sqlite doesn't need the watch cache, but etcd does, so make this dynamic
160+
args = append(args, "--watch-cache=false")
159161
args = append(args, "--cert-dir", certDir)
160162
args = append(args, "--allow-privileged=true")
161163
args = append(args, "--authorization-mode", strings.Join([]string{modes.ModeNode, modes.ModeRBAC}, ","))

0 commit comments

Comments
 (0)