Skip to content

Commit

Permalink
Logging: clear conditions on update
Browse files Browse the repository at this point in the history
  • Loading branch information
dbason committed Oct 26, 2022
1 parent 2b010a7 commit 37e26cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/logging/pkg/agent/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ func (m *LoggingNode) updateConfig(config *node.LoggingCapabilityConfig) {

m.config = config

if !m.config.Enabled && len(m.config.Conditions) > 0 {
m.conditions.Set(health.CondBackend, health.StatusDisabled, strings.Join(m.config.Conditions, ", "))
} else {
m.conditions.Clear(health.CondBackend)
}

for _, ch := range m.listeners {
clone := util.ProtoClone(config)
select {
Expand Down

0 comments on commit 37e26cf

Please sign in to comment.