mirror of https://github.com/k3s-io/k3s
Fix issue where addon checksum was never stored
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>pull/3946/head
parent
656c190629
commit
7cf85c235a
|
@ -212,8 +212,9 @@ func (w *watcher) deploy(path string, compareChecksum bool) error {
|
||||||
return err
|
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)
|
w.recorder.Eventf(&addon, corev1.EventTypeNormal, "AppliedManifest", "Applied manifest at %q", path)
|
||||||
|
addon.Spec.Checksum = checksum
|
||||||
_, err = w.addons.Update(&addon)
|
_, err = w.addons.Update(&addon)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue