Skip to content

Commit

Permalink
chore(notifications): remove unneeded operations from templates (argo…
Browse files Browse the repository at this point in the history
…proj#17307)

* chore(deps): bump library/ubuntu in /test/container (argoproj#13409)

Bumps library/ubuntu from `9a0bdde` to `67211c1`.

---
updated-dependencies:
- dependency-name: library/ubuntu
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Michael Firestone <mike.firestone@electriphi.ai>

* rm unneeded operations from templates

Signed-off-by: Michael Firestone <firestonem@gmail.com>
Signed-off-by: Michael Firestone <mike.firestone@electriphi.ai>

* rm more unneeded ops

Signed-off-by: Michael Firestone <mike.firestone@electriphi.ai>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Michael Firestone <mike.firestone@electriphi.ai>
Signed-off-by: Michael Firestone <firestonem@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michael Firestone <mike.firestone@electriphi.ai>
  • Loading branch information
3 people authored and mkieweg committed Jun 11, 2024
1 parent 4cdf873 commit 0099777
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 72 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
36 changes: 12 additions & 24 deletions notifications_catalog/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ data:
"short": true
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"title": "{{$c.type}}",
"value": "{{$c.message}}",
Expand All @@ -68,8 +67,7 @@ data:
"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 @@ -119,8 +117,7 @@ data:
"short": true
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"title": "{{$c.type}}",
"value": "{{$c.message}}",
Expand All @@ -143,8 +140,7 @@ data:
"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 @@ -194,8 +190,7 @@ data:
"short": true
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"title": "{{$c.type}}",
"value": "{{$c.message}}",
Expand All @@ -222,8 +217,7 @@ data:
"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 @@ -273,8 +267,7 @@ data:
"short": true
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"title": "{{$c.type}}",
"value": "{{$c.message}}",
Expand All @@ -301,8 +294,7 @@ data:
"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 @@ -356,8 +348,7 @@ data:
"short": true
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"title": "{{$c.type}}",
"value": "{{$c.message}}",
Expand All @@ -380,8 +371,7 @@ data:
"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 @@ -430,8 +420,7 @@ data:
"short": true
}
{{range $index, $c := .app.status.conditions}}
{{if not $index}},{{end}}
{{if $index}},{{end}}
,
{
"title": "{{$c.type}}",
"value": "{{$c.message}}",
Expand All @@ -458,8 +447,7 @@ data:
"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 0099777

Please sign in to comment.