-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy path.changie.yaml
More file actions
86 lines (86 loc) · 3.43 KB
/
.changie.yaml
File metadata and controls
86 lines (86 loc) · 3.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
changesDir: .changes
unreleasedDir: unreleased
headerPath: header.tpl.md
changelogPath: CHANGELOG.md
versionExt: md
# NB: Changie's BatchData doesn't have a .Project (our git tag) so we have to rip it out of .Changes.
# Sprig has no urlencoding library but the only unsafe character we have to worry about is /, so replace works fine here.
versionFormat: '## [{{.Version}}](https://github.com/redpanda-data/redpanda-operator/releases/tag/{{(index .Changes 0).Project | replace "/" "%2F"}}%2F{{.Version}}) - {{.Time.Format "2006-01-02"}}'
kindFormat: '### {{.Kind}}'
changeFormat: '* {{.Body}}'
body:
block: true
# All changes specify auto as 'patch' to avoid unintentional major or minor
# version bumps as those are handled manually.
kinds:
- label: Added
auto: patch
- label: Changed
auto: patch
- label: Deprecated
auto: patch
- label: Removed
auto: patch
- label: Fixed
auto: patch
newlines:
afterChangelogHeader: 1
beforeChangelogVersion: 1
endOfVersion: 1
envPrefix: CHANGIE_
# Project keys and version separators are configured to align with the tagging
# semantics of multi-module repositories. `dir/of/module/v<version>`
# https://go.dev/wiki/Modules#what-are-multi-module-repositories
projectsVersionSeparator: "/"
projects:
- label: GoToHelm
key: gotohelm
changelog: gotohelm/CHANGELOG.md
- label: Redpanda Operator
key: operator
changelog: operator/CHANGELOG.md
replacements:
# Update operator's Chart.yaml
- path: operator/chart/Chart.yaml
find: '^version: .*$'
replace: 'version: {{.VersionNoPrefix}}'
- path: operator/chart/Chart.yaml
find: '^appVersion: .*$'
replace: 'appVersion: {{.Version}}'
- path: operator/chart/Chart.yaml
find: '/redpanda-operator:.*$'
replace: '/redpanda-operator:{{.Version}}'
# Update golden files of the operator chart itself.
- path: operator/chart/testdata/*.golden.txtar
find: '/chart: operator-v.*$'
replace: '/chart: operator-{{.Version}}'
- path: operator/chart/testdata/*.golden.txtar
find: '/version: v.*$'
replace: '/version: {{.Version}}'
# Update references to the operator image in redpanda's values.yaml
# The whitespace ensures we update both values without touching the redpanda tag.
# It's fragile but all values are checked via unittests.
- path: charts/redpanda/chart/values.yaml
find: '^ tag: .*$'
replace: ' tag: {{.Version}}'
- path: charts/redpanda/chart/values.yaml
find: '^ tag: .*$'
replace: ' tag: {{.Version}}'
# Update golden files across the entire repo.
# Changie uses go's filepath.Match which doesn't support ** globbing so
# there's some repetition here.
- path: 'charts/redpanda/testdata/*.golden.txtar'
find: 'image: docker.redpanda.com/redpandadata/redpanda-operator:v.*$'
replace: 'image: docker.redpanda.com/redpandadata/redpanda-operator:{{.Version}}'
- path: 'operator/internal/lifecycle/testdata/*.golden.txtar'
find: 'image: docker.redpanda.com/redpandadata/redpanda-operator:v.*$'
replace: 'image: docker.redpanda.com/redpandadata/redpanda-operator:{{.Version}}'
- label: Redpanda Helm Chart
key: charts/redpanda
changelog: charts/redpanda/CHANGELOG.md
- label: Console Helm Chart
key: charts/console
changelog: charts/console/CHANGELOG.md
- label: Connectors Helm Chart
key: charts/connectors
changelog: charts/connectors/CHANGELOG.md