Skip to content

Commit

Permalink
rm unneeded operations from templates
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Firestone <firestonem@gmail.com>
Signed-off-by: Michael Firestone <mike.firestone@electriphi.ai>
  • Loading branch information
Michael Firestone committed Feb 25, 2024
1 parent a0daa0c commit 2c35d85
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 48 deletions.
36 changes: 12 additions & 24 deletions docs/operator-manual/notifications/catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ slack:
"short": true
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"title": "{{$c.type}}",
"value": "{{$c.message}}",
Expand All @@ -90,8 +89,7 @@ teams:
"value": "{{.app.status.sync.revision}}"
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"name": "{{$c.type}}",
"value": "{{$c.message}}"
Expand Down Expand Up @@ -145,8 +143,7 @@ slack:
"short": true
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"title": "{{$c.type}}",
"value": "{{$c.message}}",
Expand All @@ -169,8 +166,7 @@ teams:
"value": "{{.app.spec.source.repoURL}}"
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"name": "{{$c.type}}",
"value": "{{$c.message}}"
Expand Down Expand Up @@ -224,8 +220,7 @@ slack:
"short": true
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"title": "{{$c.type}}",
"value": "{{$c.message}}",
Expand All @@ -252,8 +247,7 @@ teams:
"value": "{{.app.spec.source.repoURL}}"
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"name": "{{$c.type}}",
"value": "{{$c.message}}"
Expand Down Expand Up @@ -307,8 +301,7 @@ slack:
"short": true
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"title": "{{$c.type}}",
"value": "{{$c.message}}",
Expand All @@ -335,8 +328,7 @@ teams:
"value": "{{.app.spec.source.repoURL}}"
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"name": "{{$c.type}}",
"value": "{{$c.message}}"
Expand Down Expand Up @@ -394,8 +386,7 @@ slack:
"short": true
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"title": "{{$c.type}}",
"value": "{{$c.message}}",
Expand All @@ -418,8 +409,7 @@ teams:
"value": "{{.app.spec.source.repoURL}}"
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"name": "{{$c.type}}",
"value": "{{$c.message}}"
Expand Down Expand Up @@ -472,8 +462,7 @@ slack:
"short": true
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"title": "{{$c.type}}",
"value": "{{$c.message}}",
Expand All @@ -500,8 +489,7 @@ teams:
"value": "{{.app.spec.source.repoURL}}"
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"name": "{{$c.type}}",
"value": "{{$c.message}}"
Expand Down
6 changes: 2 additions & 4 deletions notifications_catalog/templates/app-deployed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ slack:
"short": true
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"title": "{{$c.type}}",
"value": "{{$c.message}}",
Expand All @@ -52,8 +51,7 @@ teams:
"value": "{{.app.status.sync.revision}}"
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"name": "{{$c.type}}",
"value": "{{$c.message}}"
Expand Down
6 changes: 2 additions & 4 deletions notifications_catalog/templates/app-health-degraded.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ slack:
"short": true
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"title": "{{$c.type}}",
"value": "{{$c.message}}",
Expand All @@ -44,8 +43,7 @@ teams:
"value": "{{.app.spec.source.repoURL}}"
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"name": "{{$c.type}}",
"value": "{{$c.message}}"
Expand Down
6 changes: 2 additions & 4 deletions notifications_catalog/templates/app-sync-failed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ slack:
"short": true
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"title": "{{$c.type}}",
"value": "{{$c.message}}",
Expand All @@ -48,8 +47,7 @@ teams:
"value": "{{.app.spec.source.repoURL}}"
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"name": "{{$c.type}}",
"value": "{{$c.message}}"
Expand Down
6 changes: 2 additions & 4 deletions notifications_catalog/templates/app-sync-running.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ slack:
"short": true
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"title": "{{$c.type}}",
"value": "{{$c.message}}",
Expand All @@ -47,8 +46,7 @@ teams:
"value": "{{.app.spec.source.repoURL}}"
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"name": "{{$c.type}}",
"value": "{{$c.message}}"
Expand Down
6 changes: 2 additions & 4 deletions notifications_catalog/templates/app-sync-status-unknown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ slack:
"short": true
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"title": "{{$c.type}}",
"value": "{{$c.message}}",
Expand All @@ -48,8 +47,7 @@ teams:
"value": "{{.app.spec.source.repoURL}}"
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"name": "{{$c.type}}",
"value": "{{$c.message}}"
Expand Down
6 changes: 2 additions & 4 deletions notifications_catalog/templates/app-sync-succeeded.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ slack:
"short": true
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"title": "{{$c.type}}",
"value": "{{$c.message}}",
Expand All @@ -48,8 +47,7 @@ teams:
"value": "{{.app.spec.source.repoURL}}"
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"name": "{{$c.type}}",
"value": "{{$c.message}}"
Expand Down

0 comments on commit 2c35d85

Please sign in to comment.