mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-22 05:40:50 +02:00
feat: check container config before update (#925)
* feat: check container config before restart * fix: only skip when hostconfig and config differ * fix: update test mocks to not fail tests * test: add verify config tests
This commit is contained in:
parent
fdf6e46e7b
commit
12467712a1
6 changed files with 151 additions and 13 deletions
|
@ -269,6 +269,9 @@ func writeStartupMessage(c *cobra.Command, sched time.Time, filtering string) {
|
|||
}
|
||||
|
||||
log.Info("Watchtower ", version, "\n", notifs, "\n", filtering, "\n", schedMessage)
|
||||
if log.IsLevelEnabled(log.TraceLevel) {
|
||||
log.Warn("trace level enabled: log will include sensitive information as credentials and tokens")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -330,8 +333,10 @@ func runUpdatesWithNotifications(filter t.Filter) *metrics.Metric {
|
|||
}
|
||||
metricResults, err := actions.Update(client, updateParams)
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
log.Error(err)
|
||||
}
|
||||
notifier.SendNotification()
|
||||
log.Debugf("Session done: %v scanned, %v updated, %v failed",
|
||||
metricResults.Scanned, metricResults.Updated, metricResults.Failed)
|
||||
return metricResults
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue