|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## 0.38.0 |
| 4 | + |
| 5 | +**Release date:** 2024-05-06 |
| 6 | + |
| 7 | +This prerelease graduates the `ImageUpdateAutomation` API to v1beta2. |
| 8 | + |
| 9 | +### `image.toolkit.fluxcd.io/v1beta2` |
| 10 | + |
| 11 | +After upgrading the controller to v0.38.0, please update the |
| 12 | +`ImageUpdateAutomation` **Custom Resources** in Git by replacing |
| 13 | +`image.toolkit.fluxcd.io/v1beta1` with `image.toolkit.fluxcd.io/v1beta2` in all |
| 14 | +YAML manifests. Bumping the API version in manifests can be done gradually. It |
| 15 | +is advised not to delay this procedure as the `v1beta1` version will be removed |
| 16 | +after 6 months. |
| 17 | + |
| 18 | +### Highlights |
| 19 | + |
| 20 | +#### New API specification format |
| 21 | + |
| 22 | +[The specification for the `v1beta2` |
| 23 | +API](https://github.com/fluxcd/image-automation-controller/tree/v0.38.0/docs/spec/v1beta2) |
| 24 | +has been written in a new format with the aim to be more valuable to a user. |
| 25 | +Featuring separate sections with examples, and information on how to write and |
| 26 | +work with them. |
| 27 | + |
| 28 | +#### New template data `Changed` and deprecation of `Updated` |
| 29 | + |
| 30 | +A new Git commit message template data named `Changed` is introduced to replace |
| 31 | +`Updated` template data. `Changed` is designed to accommodate for all the types |
| 32 | +of updates made by ImaegUpdateAutomation, unlike only full image reference |
| 33 | +updates captured by `Updated`. The message template can now be used to render |
| 34 | +the old and new values for better presentation of the updates. For example: |
| 35 | + |
| 36 | +``` |
| 37 | +Automation: default/test-update-auto |
| 38 | +
|
| 39 | +- File: foo-deployment.yaml |
| 40 | + - Object: Deployment/default/foo |
| 41 | + Changes: |
| 42 | + - 2.2.2 -> 5.0.3 |
| 43 | +
|
| 44 | +- File: podinfo-deployment.yaml |
| 45 | + - Object: Deployment/default/infopod |
| 46 | + Changes: |
| 47 | + - v1.0 -> 5.0.3 |
| 48 | + - Object: Deployment/default/podinfo |
| 49 | + Changes: |
| 50 | + - ghcr.io/stefanprodan/podinfo:4.0.6 -> ghcr.io/stefanprodan/podinfo:5.0.3 |
| 51 | + - bar -> ghcr.io/stefanprodan/podinfo |
| 52 | + - 4.0.6 -> 5.0.3 |
| 53 | +``` |
| 54 | + |
| 55 | +`Updated` template data is deprecated, but is still available in the message |
| 56 | +template, for existing users. It is recommended to migrate to `Changed` template |
| 57 | +data. See the new API specification docs for details about the new template |
| 58 | +data. |
| 59 | + |
| 60 | +#### ImagePolicy selector support |
| 61 | + |
| 62 | +`ImageUpdateAutomation` now supports selecting `ImagePolicies` using label |
| 63 | +selectors in the new field `.spec.policySelector`. For example: |
| 64 | + |
| 65 | +```yaml |
| 66 | +apiVersion: image.toolkit.fluxcd.io/v1beta2 |
| 67 | +kind: ImageUpdateAutomation |
| 68 | +metadata: |
| 69 | + name: update-app |
| 70 | +spec: |
| 71 | + policySelector: |
| 72 | + matchLabels: |
| 73 | + app.kubernetes.io/component: foo |
| 74 | + app.kubernetes.io/instance: bar |
| 75 | + ... |
| 76 | +``` |
| 77 | + |
| 78 | +See the new API specification docs for details and more examples. |
| 79 | + |
| 80 | +#### short-circuit reconciliations |
| 81 | + |
| 82 | +For same push branch and checkout branch, the controller now checks with the |
| 83 | +remote Git repository if there's any new commit and the image policies for any |
| 84 | +new latest image before performing full reconciliation, otherwise the |
| 85 | +reconciliation returns early. This helps avoid cloning the Git repository every |
| 86 | +reconciliation even when there is no new change. |
| 87 | + |
| 88 | +#### Enhancements in events and notifications |
| 89 | + |
| 90 | +The events and notifications have been improved to provide better information. |
| 91 | +Notifications are sent for: initial successful reconciliation, update |
| 92 | +pushes, failures and successful failure recovery. |
| 93 | + |
| 94 | + |
| 95 | +In addition, the controller is now built with Go 1.22, the Kubernetes |
| 96 | +dependencies have been updated to v1.30.0, and various other dependencies have |
| 97 | +been updated to their latest version. |
| 98 | + |
| 99 | +### Full changelog |
| 100 | + |
| 101 | +Improvements: |
| 102 | +- Deprecate v1beta1 API |
| 103 | + [#677](https://github.com/fluxcd/image-automation-controller/pull/677) |
| 104 | +- Update source-controller API to v1.3.0 |
| 105 | + [#676](https://github.com/fluxcd/image-automation-controller/pull/676) |
| 106 | +- Update dependencies to Kubernetes 1.30 |
| 107 | + [#670](https://github.com/fluxcd/image-automation-controller/pull/670) |
| 108 | +- ImageUpdateAutomation v1beta2 API with refactored controller |
| 109 | + [#647](https://github.com/fluxcd/image-automation-controller/pull/647) |
| 110 | +- Update dependencies to Kustomize v5.4.0 |
| 111 | + [#662](https://github.com/fluxcd/image-automation-controller/pull/662) |
| 112 | +- Update dependencies to Go 1.22 and Kubernetes 1.29.3 |
| 113 | + [#661](https://github.com/fluxcd/image-automation-controller/pull/661) |
| 114 | +- Add tests for getExtFromSchema |
| 115 | + [#658](https://github.com/fluxcd/image-automation-controller/pull/658) |
| 116 | +- Introduce ResultV2 for update results |
| 117 | + [#642](https://github.com/fluxcd/image-automation-controller/pull/642) |
| 118 | +- updating controller-gen to v0.14.0 |
| 119 | + [#649](https://github.com/fluxcd/image-automation-controller/pull/649) |
| 120 | +- Add predicates for GitRepo and ImagePolicy watches |
| 121 | + [#639](https://github.com/fluxcd/image-automation-controller/pull/639) |
| 122 | +- adding tests for update accept function |
| 123 | + [#636](https://github.com/fluxcd/image-automation-controller/pull/636) |
| 124 | +- Various dependency updates |
| 125 | + [#637](https://github.com/fluxcd/image-automation-controller/pull/637) |
| 126 | + [#652](https://github.com/fluxcd/image-automation-controller/pull/652) |
| 127 | + [#660](https://github.com/fluxcd/image-automation-controller/pull/660) |
| 128 | + [#668](https://github.com/fluxcd/image-automation-controller/pull/668) |
| 129 | + [#665](https://github.com/fluxcd/image-automation-controller/pull/665) |
| 130 | + [#666](https://github.com/fluxcd/image-automation-controller/pull/666) |
| 131 | + [#673](https://github.com/fluxcd/image-automation-controller/pull/673) |
| 132 | + |
3 | 133 | ## 0.37.1
|
4 | 134 |
|
5 | 135 | **Release date:** 2024-02-01
|
|
0 commit comments