Skip to content

Commit

Permalink
tetragon: Rename base variable to initialSensor
Browse files Browse the repository at this point in the history
It screws up the namespace and we can't reference base object
later on, which will happen in following changes.

Signed-off-by: Jiri Olsa <[email protected]>
  • Loading branch information
olsajiri committed Mar 7, 2024
1 parent 113a6c4 commit 062c895
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/tetragon/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,12 +429,12 @@ func tetragonExecute() error {
obs.LogPinnedBpf(observerDir)

// load base sensor
base := base.GetInitialSensor()
if err := base.Load(observerDir); err != nil {
initialSensor := base.GetInitialSensor()
if err := initialSensor.Load(observerDir); err != nil {
return err
}
defer func() {
base.Unload()
initialSensor.Unload()
}()

onReconfig := func(data *config.Data) {
Expand Down

0 comments on commit 062c895

Please sign in to comment.