mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-08-07 01:59:55 +00:00
Fix issue where addon checksum was never stored
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
committed by
Brad Davidson
parent
2e5c9e5cad
commit
2a68c7c8a4
@@ -212,8 +212,9 @@ func (w *watcher) deploy(path string, compareChecksum bool) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Emit event, Update Addon checksum and modtime only if apply was successful
|
||||
// Emit event, Update Addon checksum only if apply was successful
|
||||
w.recorder.Eventf(&addon, corev1.EventTypeNormal, "AppliedManifest", "Applied manifest at %q", path)
|
||||
addon.Spec.Checksum = checksum
|
||||
_, err = w.addons.Update(&addon)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user