You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
When we do an automation run, we compare the state of the cluster to the available images, then apply the differences to the git repo. This mostly does what you'd want in practice, but it relies on the cluster state being mostly equal to what's in the git repo, and that is not always the case.
For example, this sequence is possible:
the image DB sees a new tag :v2 for an image and fetches its metadata;
the automator looks at the cluster, and sees that it is running :v1, and there is a new image :v2 available;
the automator commits a change that updates the image to :v2 and pushes it upstream;
the commit is fetched from the upstream repo;
the automator looks at the cluster, and sees that it is running :v1, and there is a new image :v2 available;
the automator tries to commit a change but there is no change to be made.
Usually this is harmless, but occasionally, if other things get changed at the same time, it will result in some bogus annotations (and therefore bogus events).
Instead, it would be better if the automation (and push-button releases) looked at the config as given by the git repo, and only used the cluster state to determine whether operations are safe to go ahead.
The text was updated successfully, but these errors were encountered:
squaremo
changed the title
Use git repo rather than cluster state in automation calculations
Use git repo rather than cluster state in release calculations
Mar 27, 2018
When we do an automation run, we compare the state of the cluster to the available images, then apply the differences to the git repo. This mostly does what you'd want in practice, but it relies on the cluster state being mostly equal to what's in the git repo, and that is not always the case.
For example, this sequence is possible:
:v2
for an image and fetches its metadata;:v1
, and there is a new image:v2
available;:v2
and pushes it upstream;:v1
, and there is a new image:v2
available;Usually this is harmless, but occasionally, if other things get changed at the same time, it will result in some bogus annotations (and therefore bogus events).
Instead, it would be better if the automation (and push-button releases) looked at the config as given by the git repo, and only used the cluster state to determine whether operations are safe to go ahead.
The text was updated successfully, but these errors were encountered: