Skip to content

Commit

Permalink
pkg/option: disable K8sEventHandover if Cilium is running without KVS…
Browse files Browse the repository at this point in the history
…tore

Running Cilium with K8sEventHandover and without a KVStore configured
causes it on not being able to delete any CNP after being created.

Fixes: e4e83e8 ("daemon: Allow kvstore to be unconfigured")
Signed-off-by: André Martins <andre@cilium.io>
  • Loading branch information
aanm committed Jun 18, 2020
1 parent 8ec15e2 commit 0ee0458
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/option/config.go
Expand Up @@ -2477,6 +2477,10 @@ func (c *DaemonConfig) Populate() {
log.Warningf("Running Cilium with %q=%q requires endpoint CRDs. Changing %s to %t", KVStore, c.KVStore, DisableCiliumEndpointCRDName, false)
c.DisableCiliumEndpointCRD = false
}
if c.K8sEventHandover {
log.Warningf("Running Cilium with %q=%q requires KVStore capability. Changing %s to %t", KVStore, c.KVStore, K8sEventHandover, false)
c.K8sEventHandover = false
}
}

switch c.IPAM {
Expand Down

0 comments on commit 0ee0458

Please sign in to comment.