Add sync and suspend for image update automations#3885
Conversation
There was a problem hiding this comment.
I think we can remove the 'Sync without source' option, as for image update automation resources, there is no source to reconcile anyway. For example, in the changes we've done recently for image repositories (which also have no associated source), we used the 'Sync' option only.
Sidenote: It's somewhat confusing that the options we present in the UI are the opposite of what the Flux CLI uses. As an example, the following command is used to reconcile a resource without also reconciling its source:
# Trigger a Kustomization apply outside of the reconciliation interval
flux reconcile kustomization podinfo
The following command reconciles the resource with its source:
# Trigger a sync of the Kustomization's source and apply changes
flux reconcile kustomization podinfo --with-source
In my opinion, the UI should match the Flux CLI to avoid possible user confusion. By the way this is just a suggestion and can be addressed separately as it's unrelated to the changes of this PR.
…g with an additional ui change to checkbox actions that re-disables buttons when removing all checked items
36521cb to
704b093
Compare


Allows sync and suspend for image update automations + fixes a bug where buttons were not disabled when un-checking the last checked button (having variable outside of useEffect prevented update -> see CheckboxActions component)
Screen.Recording.2023-07-25.at.1.17.27.PM.mov