File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -384,6 +384,7 @@ type TemplateData struct {
384
384
Name, Namespace string
385
385
}
386
386
Changed update.ResultV2
387
+ Values map[string]string
387
388
}
388
389
389
390
// ResultV2 contains the file changes made during the update. It contains
@@ -481,6 +482,25 @@ There are over 70 available functions. Some of them are defined by the [Go
481
482
template language](https://pkg.go.dev/text/template) itself. Most of the others
482
483
are part of the [Sprig template library](http://masterminds.github.io/sprig/).
483
484
485
+ Additional data can be provided with `.spec.git.commit.messageTemplateValues`.
486
+
487
+ This is a key/value mapping with string values.
488
+
489
+ ` ` ` yaml
490
+ ---
491
+ apiVersion: image.toolkit.fluxcd.io/v1beta2
492
+ kind: ImageUpdateAutomation
493
+ metadata:
494
+ name: <automation-name>
495
+ spec:
496
+ git:
497
+ commit:
498
+ messageTemplate: |-
499
+ Automated image update by Flux for cluster {{ .Values.cluster }}.
500
+ messageTemplateValues:
501
+ cluster: prod
502
+ ` ` `
503
+
484
504
# ### Push
485
505
486
506
` .spec.git.push` is an optional field that specifies how the commits are pushed
You can’t perform that action at this time.
0 commit comments