Skip to content

Commit 1332f65

Browse files
committed
Release v0.8.0
Signed-off-by: Stefan Prodan <[email protected]>
1 parent 2a48f6d commit 1332f65

File tree

6 files changed

+70
-7
lines changed

6 files changed

+70
-7
lines changed

CHANGELOG.md

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

3+
## 0.8.0
4+
5+
**Release date:** 2021-04-06
6+
7+
This prerelease adds support for signing commits with GPG.
8+
9+
This prerelease comes with a breaking change to the leader election ID
10+
from `e189b2df.fluxcd.io` to `image-reflector-controller-leader-election`
11+
to be more descriptive. This change should not have an impact on most
12+
installations, as the default replica count is `1`. If you are running
13+
a setup with multiple replicas, it is however advised to scale down
14+
before upgrading.
15+
16+
The controller exposes a gauge metric to track the suspended status
17+
of `ImageUpdateAutomation` objects: `gotk_suspend_status{kind,name,namespace}`.
18+
19+
Features:
20+
* Enable GPG Signing of Commits
21+
[#136](https://github.com/fluxcd/image-automation-controller/pull/136)
22+
23+
Improvements:
24+
* Record suspension metrics
25+
[#129](https://github.com/fluxcd/image-automation-controller/pull/129)
26+
* Update ImageUpdateAutomation Status with Patch
27+
[#132](https://github.com/fluxcd/image-automation-controller/pull/132)
28+
* Set leader election deadline to 30s
29+
[#137](https://github.com/fluxcd/image-automation-controller/pull/137)
30+
* Update kyaml to v0.10.16
31+
[#141](https://github.com/fluxcd/image-automation-controller/pull/141)
32+
33+
Fixes:
34+
* Ensure that an unchanged image is not in update result
35+
[#144](https://github.com/fluxcd/image-automation-controller/pull/144)
36+
* Fix problem with pushing further commits to a "push branch"
37+
[#143](https://github.com/fluxcd/image-automation-controller/pull/143)
38+
* Ignore broken symlinks and outside path, in commit
39+
[#142](https://github.com/fluxcd/image-automation-controller/pull/142)
40+
341
## 0.7.0
442

543
**Release date:** 2021-03-17

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SOURCE_VER ?= v0.10.0
99

1010
# Version of the image-reflector-controller from which to get the ImagePolicy CRD.
1111
# Change this if you bump the image-reflector-controller/api version in go.mod.
12-
REFLECTOR_VER ?= v0.7.1
12+
REFLECTOR_VER ?= v0.8.0
1313

1414
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
1515
ifeq (,$(shell go env GOBIN))

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.7.0
8+
newTag: v0.8.0

docs/spec/v1alpha1/imageupdateautomations.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,18 @@ type ImageUpdateAutomationSpec struct {
1818
// ready to make changes.
1919
// +required
2020
Checkout GitCheckoutSpec `json:"checkout"`
21+
2122
// Interval gives an lower bound for how often the automation
2223
// run should be attempted.
2324
// +required
2425
Interval metav1.Duration `json:"interval"`
26+
2527
// Update gives the specification for how to update the files in
2628
// the repository. This can be left empty, to use the default
2729
// value.
2830
// +kubebuilder:default={"strategy":"Setters"}
2931
Update *UpdateStrategy `json:"update,omitempty"`
32+
3033
// Commit specifies how to commit to the git repository.
3134
// +required
3235
Commit CommitSpec `json:"commit"`
@@ -132,13 +135,19 @@ type CommitSpec struct {
132135
// AuthorName gives the name to provide when making a commit
133136
// +required
134137
AuthorName string `json:"authorName"`
138+
135139
// AuthorEmail gives the email to provide when making a commit
136140
// +required
137141
AuthorEmail string `json:"authorEmail"`
142+
138143
// MessageTemplate provides a template for the commit message,
139144
// into which will be interpolated the details of the change made.
140145
// +optional
141146
MessageTemplate string `json:"messageTemplate,omitempty"`
147+
148+
// SigningKey provides the option to sign commits with a GPG key
149+
// +optional
150+
SigningKey *SigningKey `json:"signingKey,omitempty"`
142151
}
143152
```
144153

@@ -167,6 +176,23 @@ spec:
167176
[ci skip]
168177
```
169178

179+
The `signingKey` field holds the reference to a secret that contains a `git.asc`
180+
key corresponding to the ASCII Armored file containing the GPG signing keypair as the value.
181+
For example,
182+
183+
```yaml
184+
spec:
185+
commit:
186+
authorName: Fluxbot
187+
authorEmail: [email protected]
188+
signingKey:
189+
secretRef:
190+
name: gpg-private-key
191+
```
192+
193+
will result in commits with the author `Fluxbot <[email protected]>` signed with the GPG key
194+
present in the `gpg-private-key` secret.
195+
170196
### Commit template data
171197

172198
The message template is a [Go text template][go-text-template]. The data available to the template

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ replace github.com/fluxcd/image-automation-controller/api => ./api
66

77
require (
88
github.com/cyphar/filepath-securejoin v0.2.2
9-
github.com/fluxcd/image-automation-controller/api v0.7.0
9+
github.com/fluxcd/image-automation-controller/api v0.8.0
1010
// If you bump this, change REFLECTOR_VER in the Makefile to match
11-
github.com/fluxcd/image-reflector-controller/api v0.7.1
11+
github.com/fluxcd/image-reflector-controller/api v0.8.0
1212
github.com/fluxcd/pkg/apis/meta v0.8.0
1313
github.com/fluxcd/pkg/gittestserver v0.2.1
1414
github.com/fluxcd/pkg/runtime v0.10.1

go.sum

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d/go.mod h1:ZZM
306306
github.com/fatih/camelcase v1.0.0/go.mod h1:yN2Sb0lFhZJUdVvtELVWefmrXpuZESvPmqwoZc+/fpc=
307307
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
308308
github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU=
309-
github.com/fluxcd/image-reflector-controller/api v0.7.1 h1:Cng36D1J25WYZ0ZB6dwzDtGR9MIyIcSUMYxHpb0IYXA=
310-
github.com/fluxcd/image-reflector-controller/api v0.7.1/go.mod h1:J18L71jiHYrAu2dg0tgOkOjP+GtQldC1oslhTeX0jqc=
309+
github.com/fluxcd/image-reflector-controller/api v0.8.0 h1:6dTIcyJFApmcmT4HbitWBFvh6ne8jpp8QQseH9Q5hv0=
310+
github.com/fluxcd/image-reflector-controller/api v0.8.0/go.mod h1:J18L71jiHYrAu2dg0tgOkOjP+GtQldC1oslhTeX0jqc=
311311
github.com/fluxcd/pkg/apis/meta v0.8.0 h1:wqWpUsxhKHB1ZztcvOz+vnyhdKW9cWmjFp8Vci/XOdk=
312312
github.com/fluxcd/pkg/apis/meta v0.8.0/go.mod h1:yHuY8kyGHYz22I0jQzqMMGCcHViuzC/WPdo9Gisk8Po=
313313
github.com/fluxcd/pkg/gittestserver v0.1.0/go.mod h1:HWZaoib03fQeSsauCAN2iAFdr6bnjKQ+CFxMFD2mwDY=
@@ -1617,7 +1617,6 @@ sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.9/go.mod h1:dzAXnQb
16171617
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.14/go.mod h1:LEScyzhFmoF5pso/YSeBstl57mOzx9xlU9n85RGrDQg=
16181618
sigs.k8s.io/controller-runtime v0.8.3 h1:GMHvzjTmaWHQB8HadW+dIvBoJuLvZObYJ5YoZruPRao=
16191619
sigs.k8s.io/controller-runtime v0.8.3/go.mod h1:U/l+DUopBc1ecfRZ5aviA9JDmGFQKvLf5YkZNx2e0sU=
1620-
sigs.k8s.io/kustomize v1.0.11 h1:Yb+6DDt9+aR2AvQApvUaKS/ugteeG4MPyoFeUHiPOjk=
16211620
sigs.k8s.io/kustomize v2.0.3+incompatible h1:JUufWFNlI44MdtnjUqVnvh29rR37PQFzPbLXqhyOyX0=
16221621
sigs.k8s.io/kustomize v2.0.3+incompatible/go.mod h1:MkjgH3RdOWrievjo6c9T245dYlB5QeXV4WCbnt/PEpU=
16231622
sigs.k8s.io/kustomize/kyaml v0.10.16 h1:4rn0PTEK4STOA5kbpz72oGskjpKYlmwru4YRgVQFv+c=

0 commit comments

Comments
 (0)