File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,13 @@ def reconcile(self, event=None) -> None: # noqa: C901
253
253
if self ._unit_lifecycle .authorized_leader and not self ._upgrade .in_progress :
254
254
# Run before checking `self._upgrade.is_compatible` in case incompatible upgrade was
255
255
# forced & completed on all units.
256
+ # Side effect: on machines, if charm was upgraded to a charm with the same snap
257
+ # revision, compatibility checks will be skipped.
258
+ # (The only real use case for this would be upgrading the charm code to an incompatible
259
+ # version without upgrading the snap. In that situation, the upgrade may appear
260
+ # successful and the user will not be notified of the charm incompatibility. This case
261
+ # is much less likely than the forced incompatible upgrade & the impact is not as bad
262
+ # as the impact if we did not handle the forced incompatible upgrade case.)
256
263
self ._upgrade .set_versions_in_app_databag ()
257
264
if self ._upgrade .unit_state is upgrade .UnitState .RESTARTING : # Kubernetes only
258
265
if not self ._upgrade .is_compatible :
You can’t perform that action at this time.
0 commit comments