Skip to content

Change notification template to send only about updated containers #1628

Answered by piksel
Andrey-1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! If I understand what you want correctly, you can just remove the fresh iteration from the template:

{{- if .Report -}}
  {{- with .Report -}}
    {{- if ( .Updated ) -}}
{{len .Scanned}} Scanned, {{len .Updated}} Updated, {{len .Failed}} Failed
    {{- range .Updated}}
- {{.Name}} : updated
     {{- end -}}
     {{- range .Skipped}}
- {{.Name}} : {{.State}}: {{.Error}}
     {{- end -}}
     {{- range .Failed}}
- {{.Name}} : {{.State}}: {{.Error}}
     {{- end -}}
     {{- end -}}
  {{- end -}}
{{- end -}}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Andrey-1
Comment options

Answer selected by Andrey-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #1627 on April 13, 2023 14:35.