Skip to content

Commit

Permalink
fix: check for config revision changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoutsovasilis committed May 10, 2024
1 parent 39150ae commit 7dec8b5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/client/unit.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,14 @@ func (u *Unit) updateState(
}
}

if u.config.GetRevision() != cfg.GetRevision() {
u.config = cfg
triggers |= TriggeredConfigChange
}

switch {
case u.config == cfg:
break
case u.config != nil && cfg == nil:
u.config = cfg
triggers |= TriggeredConfigChange
Expand Down

0 comments on commit 7dec8b5

Please sign in to comment.