Skip to content

Commit e093c3e

Browse files
authored
Merge pull request #678 from fluxcd/release-0.38.0
Release v0.38.0
2 parents ec6d687 + e028cd9 commit e093c3e

File tree

4 files changed

+135
-5
lines changed

4 files changed

+135
-5
lines changed

CHANGELOG.md

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,135 @@
11
# Changelog
22

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+
3133
## 0.37.1
4134

5135
**Release date:** 2024-02-01

config/manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ resources:
55
images:
66
- name: fluxcd/image-automation-controller
77
newName: fluxcd/image-automation-controller
8-
newTag: v0.37.1
8+
newTag: v0.38.0

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ require (
1515
github.com/Masterminds/sprig/v3 v3.2.3
1616
github.com/ProtonMail/go-crypto v1.1.0-alpha.2-proton
1717
github.com/cyphar/filepath-securejoin v0.2.5
18-
github.com/fluxcd/image-automation-controller/api v0.37.1
19-
github.com/fluxcd/image-reflector-controller/api v0.31.2
18+
github.com/fluxcd/image-automation-controller/api v0.38.0
19+
github.com/fluxcd/image-reflector-controller/api v0.32.0
2020
github.com/fluxcd/pkg/apis/acl v0.3.0
2121
github.com/fluxcd/pkg/apis/event v0.9.0
2222
github.com/fluxcd/pkg/apis/meta v1.5.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ github.com/fluxcd/cli-utils v0.36.0-flux.7 h1:81zEo/LNmIRWMgtsZy/8L13TMUZHmmJib4
5959
github.com/fluxcd/cli-utils v0.36.0-flux.7/go.mod h1:TcfLhvBjtQnqxYMsHQUAEB2c5WJRVuibtas2Izz5ZTs=
6060
github.com/fluxcd/gitkit v0.6.0 h1:iNg5LTx6ePo+Pl0ZwqHTAkhbUHxGVSY3YCxCdw7VIFg=
6161
github.com/fluxcd/gitkit v0.6.0/go.mod h1:svOHuKi0fO9HoawdK4HfHAJJseZDHHjk7I3ihnCIqNo=
62-
github.com/fluxcd/image-reflector-controller/api v0.31.2 h1:s16ewwfuLBYuh8hENuVgU8SYsSNxRaA4f+AD60/+les=
63-
github.com/fluxcd/image-reflector-controller/api v0.31.2/go.mod h1:tV7g+KXQL3W8w5+fRJU7ubVGc4QAfx1C7XI5qrQvA3U=
62+
github.com/fluxcd/image-reflector-controller/api v0.32.0 h1:mb/v9JzRHcjLcnGqmgsq0+yCcoOyae/TrOWae9T87PE=
63+
github.com/fluxcd/image-reflector-controller/api v0.32.0/go.mod h1:Ap3/KK8MfQAdmuhakg9CweEa3Xwwmvausbqrgd3HBWY=
6464
github.com/fluxcd/pkg/apis/acl v0.3.0 h1:UOrKkBTOJK+OlZX7n8rWt2rdBmDCoTK+f5TY2LcZi8A=
6565
github.com/fluxcd/pkg/apis/acl v0.3.0/go.mod h1:WVF9XjSMVBZuU+HTTiSebGAWMgM7IYexFLyVWbK9bNY=
6666
github.com/fluxcd/pkg/apis/event v0.9.0 h1:iKxU+3v/3bAuC1C1iXg1mjbIiaEQet7WETh8lsfdcpY=

0 commit comments

Comments
 (0)