Fix issue where addon checksum was never stored

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/3946/head
Brad Davidson 2021-08-26 15:01:24 -07:00 committed by Brad Davidson
parent 656c190629
commit 7cf85c235a
1 changed files with 2 additions and 1 deletions

View File

@ -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
}