Skip to content

Commit ce4f4ba

Browse files
authored
Merge pull request #307 from fluxcd/release-v0.20.0
Release v0.20.0
2 parents 643b9c7 + b1d4cb3 commit ce4f4ba

File tree

5 files changed

+55
-8
lines changed

5 files changed

+55
-8
lines changed

CHANGELOG.md

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

3+
## 0.20.0
4+
5+
**Release date:** 2022-02-01
6+
7+
This prerelease comes with support for referencing `GitRepositories` from another namespace
8+
using the `spec.sourceRef.namespace` field in `ImageUpdateAutomations`.
9+
10+
Platform admins can disable cross-namespace references with the
11+
`--no-cross-namespace-refs=true` flag. When this flag is set,
12+
automations can only refer to Git repositories in the same namespace
13+
as the automation object, preventing tenants from accessing another tenant's repositories.
14+
15+
The controller is now statically built and includes libgit2 along with
16+
its main dependencies. The base image used to build and
17+
run the controller, was changed from Debian Unstable (Sid) to Alpine 3.15.
18+
19+
The controller container images are signed with
20+
[Cosign and GitHub OIDC](https://github.com/sigstore/cosign/blob/22007e56aee419ae361c9f021869a30e9ae7be03/KEYLESS.md),
21+
and a Software Bill of Materials in [SPDX format](https://spdx.dev) has been published on the release page.
22+
23+
Starting with this version, the controller deployment conforms to the
24+
Kubernetes [restricted pod security standard](https://kubernetes.io/docs/concepts/security/pod-security-standards/#restricted):
25+
- all Linux capabilities were dropped
26+
- the root filesystem was set to read-only
27+
- the seccomp profile was set to the runtime default
28+
- run as non-root was enabled
29+
- the user and group ID was set to 65534
30+
31+
**Breaking changes**:
32+
- The use of new seccomp API requires Kubernetes 1.19.
33+
- The controller container is now executed under 65534:65534 (userid:groupid).
34+
This change may break deployments that hard-coded the user ID of 'controller' in their PodSecurityPolicy.
35+
36+
Features:
37+
- Add support for cross-namespace sourceRef in ImageUpdateAutomation
38+
[#299](https://github.com/fluxcd/image-automation-controller/pull/299)
39+
- Allow disabling cross-namespace references
40+
[#305](https://github.com/fluxcd/image-automation-controller/pull/305)
41+
42+
Improvements:
43+
- Publish SBOM and sign release artifacts
44+
[#302](https://github.com/fluxcd/image-automation-controller/pull/302)
45+
- Drop capabilities, enable seccomp and enforce runAsNonRoot
46+
[#295](https://github.com/fluxcd/image-automation-controller/pull/295)
47+
- Statically build using musl toolchain and target alpine
48+
[#303](https://github.com/fluxcd/image-automation-controller/pull/303)
49+
350
## 0.19.0
451

552
**Release date:** 2022-01-07

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ CACHE := cache
2121

2222
# Version of the source-controller from which to get the GitRepository CRD.
2323
# Change this if you bump the source-controller/api version in go.mod.
24-
SOURCE_VER ?= v0.21.0
24+
SOURCE_VER ?= v0.21.1
2525

2626
# Version of the image-reflector-controller from which to get the ImagePolicy CRD.
2727
# Change this if you bump the image-reflector-controller/api version in go.mod.
28-
REFLECTOR_VER ?= v0.15.0
28+
REFLECTOR_VER ?= v0.16.0
2929

3030
# Repository root based on Git metadata.
3131
REPOSITORY_ROOT := $(shell git rev-parse --show-toplevel)

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.19.0
8+
newTag: v0.20.0

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ require (
88
github.com/Masterminds/sprig/v3 v3.2.2
99
github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7
1010
github.com/cyphar/filepath-securejoin v0.2.2
11-
github.com/fluxcd/image-automation-controller/api v0.19.0
11+
github.com/fluxcd/image-automation-controller/api v0.20.0
1212
// If you bump this, change REFLECTOR_VER in the Makefile to match
13-
github.com/fluxcd/image-reflector-controller/api v0.15.0
13+
github.com/fluxcd/image-reflector-controller/api v0.16.0
14+
github.com/fluxcd/pkg/apis/acl v0.0.3
1415
github.com/fluxcd/pkg/apis/meta v0.10.2
1516
github.com/fluxcd/pkg/gittestserver v0.5.0
1617
github.com/fluxcd/pkg/runtime v0.12.4
@@ -49,7 +50,6 @@ require (
4950
github.com/davecgh/go-spew v1.1.1 // indirect
5051
github.com/emirpasic/gods v1.12.0 // indirect
5152
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
52-
github.com/fluxcd/pkg/apis/acl v0.0.3 // indirect
5353
github.com/fluxcd/pkg/gitutil v0.1.0 // indirect
5454
github.com/fluxcd/pkg/version v0.1.0 // indirect
5555
github.com/fsnotify/fsnotify v1.5.1 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,8 @@ github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d/go.mod h1:ZZM
354354
github.com/fatih/camelcase v1.0.0/go.mod h1:yN2Sb0lFhZJUdVvtELVWefmrXpuZESvPmqwoZc+/fpc=
355355
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
356356
github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
357-
github.com/fluxcd/image-reflector-controller/api v0.15.0 h1:2XUKXLhWjbS7X8k1Ur/LJaIv2C8kbpErB46yw4Xmf4U=
358-
github.com/fluxcd/image-reflector-controller/api v0.15.0/go.mod h1:SPUqO4kodOglDFpZ+GhW/XBhKo71mWIqFRc+oT0jCfc=
357+
github.com/fluxcd/image-reflector-controller/api v0.16.0 h1:1O1YdoK7LsJgWLyvfZTSbvQcUQCBcgJ573HA0arlQQY=
358+
github.com/fluxcd/image-reflector-controller/api v0.16.0/go.mod h1:OIe3mSXc3OwQiNbiQ9vNXWYtNif31hc7WAbZWlFUUnc=
359359
github.com/fluxcd/pkg/apis/acl v0.0.3 h1:Lw0ZHdpnO4G7Zy9KjrzwwBmDZQuy4qEjaU/RvA6k1lc=
360360
github.com/fluxcd/pkg/apis/acl v0.0.3/go.mod h1:XPts6lRJ9C9fIF9xVWofmQwftvhY25n1ps7W9xw0XLU=
361361
github.com/fluxcd/pkg/apis/meta v0.10.2 h1:pnDBBEvfs4HaKiVAYgz+e/AQ8dLvcgmVfSeBroZ/KKI=

0 commit comments

Comments
 (0)