Skip to content

Commit

Permalink
pkg/dynamiclifecycle: Register dynamiclifecycle
Browse files Browse the repository at this point in the history
Adds the dynamiclifecycle.Cell to agent cells and register the table as an experimental table in CLI.

Signed-off-by: Ovidiu Tirla <otirla@google.com>
  • Loading branch information
ovidiutirla committed Oct 24, 2024
1 parent af9721e commit c918e56
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cilium-dbg/cmd/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
clientPkg "github.com/cilium/cilium/pkg/client"
"github.com/cilium/cilium/pkg/datapath/tables"
"github.com/cilium/cilium/pkg/dynamicconfig"
"github.com/cilium/cilium/pkg/dynamiclifecycle"
"github.com/cilium/cilium/pkg/hive/health"
"github.com/cilium/cilium/pkg/hive/health/types"
"github.com/cilium/cilium/pkg/loadbalancer/experimental"
Expand Down Expand Up @@ -65,6 +66,7 @@ func init() {
statedbTableCommand[*experimental.Frontend](experimental.FrontendTableName),
statedbTableCommand[*experimental.Backend](experimental.BackendTableName),
statedbTableCommand[dynamicconfig.DynamicConfig](dynamicconfig.TableName),
statedbTableCommand[*dynamiclifecycle.DynamicFeature](dynamiclifecycle.TableName),
)
StatedbCmd.AddCommand(
statedbDumpCmd,
Expand Down
6 changes: 6 additions & 0 deletions daemon/cmd/cells.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (
"github.com/cilium/cilium/pkg/dial"
"github.com/cilium/cilium/pkg/driftchecker"
"github.com/cilium/cilium/pkg/dynamicconfig"
"github.com/cilium/cilium/pkg/dynamiclifecycle"
"github.com/cilium/cilium/pkg/egressgateway"
"github.com/cilium/cilium/pkg/endpoint"
"github.com/cilium/cilium/pkg/endpointcleanup"
Expand Down Expand Up @@ -290,6 +291,11 @@ var (
// Provides a wrapper of the cilium config that can be watched dynamically
dynamicconfig.Cell,

// Provides the manager for WithDynamicFeature()
// Which allows to group the cell lifecycles together and control the enablement
// by leveraging the dynamicconfig.Cell.
dynamiclifecycle.Cell,

// Allows agent to monitor the configuration drift and publish drift metric
driftchecker.Cell,

Expand Down

0 comments on commit c918e56

Please sign in to comment.