File tree Expand file tree Collapse file tree 4 files changed +14
-8
lines changed
Expand file tree Collapse file tree 4 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,13 @@ type Config struct {
3333
3434// BranchConfig is the branch-based configuration struct.
3535type BranchConfig struct {
36- Interval string `json:"interval"`
37- UpgradesInterval string `json:"upgradesInterval"`
38- TestImage string `json:"testImage"`
39- KubernetesVersionManagement string `json:"kubernetesVersionManagement"`
40- KubebuilderEnvtestKubernetesVersion string `json:"kubebuilderEnvtestKubernetesVersion"`
41- Upgrades []* Upgrade `json:"upgrades"`
36+ Interval string `json:"interval"`
37+ UpgradesInterval string `json:"upgradesInterval"`
38+ TestImage string `json:"testImage"`
39+ KubernetesVersionManagement string `json:"kubernetesVersionManagement"`
40+ KubebuilderEnvtestKubernetesVersion string `json:"kubebuilderEnvtestKubernetesVersion"`
41+ Upgrades []* Upgrade `json:"upgrades"`
42+ Other map [string ]interface {} `json:"other"`
4243}
4344
4445// Template refers a template file and defines the target file name template.
Original file line number Diff line number Diff line change @@ -9,7 +9,10 @@ prow_ignored:
99 upgrades :
1010 - from : " 1.29"
1111 to : " 1.30"
12-
12+ other :
13+ foo :
14+ - from : " 1.29"
15+ to : " 1.30"
1316 templates :
1417 - name : " test.yaml.tpl"
1518 template : " test-{{ .branch }}.yaml.tmp"
Original file line number Diff line number Diff line change 33main
44bar
55foobar
6+ 1.29
671.29
Original file line number Diff line number Diff line change 22{{ ReplaceAll .branch " ." " -" }}
33{{ TrimPrefix " foobar" " foo" }}
44{{ TrimPrefix " foobar" " bar" }}
5- {{ (last $ .config.Upgrades ).From }}
5+ {{ (last $ .config.Upgrades ).From }}
6+ {{ (last $ .config.Other.foo ).from }}
You can’t perform that action at this time.
0 commit comments