Skip to content

Commit e08f091

Browse files
authored
Merge pull request #511 from fluxcd/release-v0.19.1
2 parents 50f930a + 865523a commit e08f091

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,39 @@
22

33
All notable changes to this project are documented in this file.
44

5+
## 0.19.1
6+
7+
**Release date:** 2021-12-03
8+
9+
This prerelease changes the length of the SHA hex added to the SemVer metadata
10+
of a `HelmChart`, when `ReconcileStrategy` is set to `Revision`, to a short SHA
11+
hex of the first 12 characters. This is to prevent situations in which the
12+
SemVer would exceed the length limit of 63 characters when utilized in a Helm
13+
chart as a label value.
14+
15+
Concrete example: `1.2.3+a4303ff0f6fb560ea032f9981c6bd7c7f146d083.1` becomes
16+
`1.2.3+a4303ff0f6fb.1`
17+
18+
:warning: There have been additional user reports about charts complaining
19+
about a `+` character in the label:
20+
21+
```
22+
metadata.labels: Invalid value: "1.2.3+a4303ff0f6fb560ea032f9981c6bd7c7f146d083.1": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')
23+
```
24+
25+
Given the [Helm chart best practices mention to replace this character with a
26+
`_`](https://helm.sh/docs/chart_best_practices/conventions/#version-numbers),
27+
we encourage you to patch this in your (upstream) chart.
28+
Pseudo example using [template functions](https://helm.sh/docs/chart_template_guide/function_list/):
29+
30+
```yaml
31+
{{- replace "+" "_" .Chart.Version | trunc 63 }}
32+
```
33+
34+
Fixes:
35+
- controllers: use short SHA in chart SemVer meta
36+
[#507](https://github.com/fluxcd/source-controller/pull/507)
37+
538
## 0.19.0
639

740
**Release date:** 2021-11-23

config/manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ resources:
66
images:
77
- name: fluxcd/source-controller
88
newName: fluxcd/source-controller
9-
newTag: v0.19.0
9+
newTag: v0.19.1

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require (
2424
github.com/fluxcd/pkg/ssh v0.1.0
2525
github.com/fluxcd/pkg/untar v0.1.0
2626
github.com/fluxcd/pkg/version v0.1.0
27-
github.com/fluxcd/source-controller/api v0.19.0
27+
github.com/fluxcd/source-controller/api v0.19.1
2828
github.com/garyburd/redigo v1.6.3 // indirect
2929
github.com/go-git/go-billy/v5 v5.3.1
3030
github.com/go-git/go-git/v5 v5.4.2

0 commit comments

Comments
 (0)