diff --git a/docs/spec/v1alpha1/imageupdateautomations.md b/docs/spec/v1alpha1/imageupdateautomations.md index 6fe31da9..23296fc1 100644 --- a/docs/spec/v1alpha1/imageupdateautomations.md +++ b/docs/spec/v1alpha1/imageupdateautomations.md @@ -231,27 +231,28 @@ func (r Result) Objects() map[ObjectIdentifier][]ImageRef { The methods let you range over the objects and images without descending the data structure. Here's an example of using the fields and methods in a template: -```go -commitTemplate := ` -`Automated image update - -Automation name: {{ .AutomationObject }} - -Files: -{{ range $filename, $_ := .Updated.Files -}} -- {{ $filename }} -{{ end -}} - -Objects: -{{ range $resource, $_ := .Updated.Objects -}} -- {{ $resource.Kind }} {{ $resource.Name }} -{{ end -}} - -Images: -{{ range .Updated.Images -}} -- {{.}} -{{ end -}} -` +```yaml +spec: + commit: + messsageTemplate: | + Automated image update + + Automation name: {{ .AutomationObject }} + + Files: + {{ range $filename, $_ := .Updated.Files -}} + - {{ $filename }} + {{ end -}} + + Objects: + {{ range $resource, $_ := .Updated.Objects -}} + - {{ $resource.Kind }} {{ $resource.Name }} + {{ end -}} + + Images: + {{ range .Updated.Images -}} + - {{.}} + {{ end -}} ``` ## Status