Repository navigation
Nothing to apply is not an error
This release fixes updates that ignored an image already on the machine, and a stack shown in error when it had nothing to apply.
Proven on the bench
Like every Palier feature, these ran in a virtual machine with a real Docker.
| What | Scenario | What happened |
|---|---|---|
| No pull for a version tag | A target image placed on the machine under its tag, and a service with pull_policy: always on a registry that does not answer |
No pull: the image on the machine is used, the step fails as expected, the rollback brings both services back. |
| Moving tags still pulled | latest moved in the registry while the machine keeps the old image under latest |
The update pulls and runs the new image. |
| Rollback on an unchanged tag | A latest that exits at once |
After the rollback, latest names the original image again on the machine, and no copy of the broken image is left. |
Not proven on the bench: the stack with nothing to apply. Its state before the fix was reproduced on the bench with the real tymeslot and PostgreSQL images; the fix itself is covered by unit tests, the bench machine was gone before the run after the fix.
What is fixed
An image already on the machine is used
Since 0.7.0, Palier pulled the image of every service it updated. An image already on the machine under the target tag was replaced by the registry's, and an update failed whenever the registry did not answer. Palier now pulls only a tag that is not a version, such as latest, the only kind a registry gives another image over time.
A rollback keeps its tag
After a failed update that kept the same tag, such as latest to latest, Palier removed the image it had pulled by its name. The rollback had just given that name back to the original image: the tag left the machine and the broken image stayed. Palier now removes the pulled image by its ID.
Nothing to apply is not an error
A stack whose application only had a version still maturing, and whose database only had a newer major the application does not cite, showed "Incomplete plan, it will not be applied". There was nothing wrong: nothing could be applied yet.
- The AI now receives only the release notes of versions a plan can choose. The notes of a version still maturing wait until it is proposed.
- A target still maturing is reported as such, instead of "not a version available in the registry".
- A plan without any step is no longer an incomplete plan: the stack is up to date, and the explanations are listed under "Nothing to apply".
Install
ghcr.io/kolapsis/palier:0.8.1
See Installation to verify the signature and the attestation.