diff --git a/notifications_catalog/templates/app-deployed.yaml b/notifications_catalog/templates/app-deployed.yaml index 15f7587ecffb2..9a7dc6dcbef13 100644 --- a/notifications_catalog/templates/app-deployed.yaml +++ b/notifications_catalog/templates/app-deployed.yaml @@ -16,16 +16,7 @@ slack: }, { "title": "Repository", - "value": | - {{- if .app.spec.source }} - "{{ .app.spec.source.repoURL }}" - {{- else if .app.spec.sources }} - {{- range .app.spec.sources }} - "{{ .repoURL }}" - {{- end }} - {{- else }} - "no repoURL" - {{- end }} + "value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }} "short": true }, { @@ -53,16 +44,7 @@ teams: }, { "name": "Repository", - "value": | - {{- if .app.spec.source }} - "{{ .app.spec.source.repoURL }}" - {{- else if .app.spec.sources }} - {{- range .app.spec.sources }} - "{{ .repoURL }}" - {{- end }} - {{- else }} - "no repoURL" - {{- end }} + "value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }} }, { "name": "Revision", @@ -90,15 +72,6 @@ teams: "name":"Open Repository", "targets":[{ "os":"default", - "uri": | - {{- if .app.spec.source }} - "{{ .app.spec.source.repoURL }}" - {{- else if .app.spec.sources }} - {{- range .app.spec.sources }} - "{{ .repoURL }}" - {{- end }} - {{- else }} - "no repoURL" - {{- end }} + "uri": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }} }] }] \ No newline at end of file diff --git a/notifications_catalog/templates/app-health-degraded.yaml b/notifications_catalog/templates/app-health-degraded.yaml index 858e5e5e45905..8c34a50d242a3 100644 --- a/notifications_catalog/templates/app-health-degraded.yaml +++ b/notifications_catalog/templates/app-health-degraded.yaml @@ -17,16 +17,7 @@ slack: }, { "title": "Repository", - "value": | - {{- if .app.spec.source }} - "{{ .app.spec.source.repoURL }}" - {{- else if .app.spec.sources }} - {{- range .app.spec.sources }} - "{{ .repoURL }}" - {{- end }} - {{- else }} - "no repoURL" - {{- end }} + "value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }} "short": true } {{range $index, $c := .app.status.conditions}} @@ -49,16 +40,7 @@ teams: }, { "name": "Repository", - "value": | - {{- if .app.spec.source }} - "{{ .app.spec.source.repoURL }}" - {{- else if .app.spec.sources }} - {{- range .app.spec.sources }} - "{{ .repoURL }}" - {{- end }} - {{- else }} - "no repoURL" - {{- end }} + "value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }} } {{range $index, $c := .app.status.conditions}} , @@ -82,15 +64,6 @@ teams: "name":"Open Repository", "targets":[{ "os":"default", - "uri": | - {{- if .app.spec.source }} - "{{ .app.spec.source.repoURL }}" - {{- else if .app.spec.sources }} - {{- range .app.spec.sources }} - "{{ .repoURL }}" - {{- end }} - {{- else }} - "no repoURL" - {{- end }} + "uri": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }} }] }] \ No newline at end of file diff --git a/notifications_catalog/templates/app-sync-failed.yaml b/notifications_catalog/templates/app-sync-failed.yaml index d915b39d4edeb..2fa7b41a1d15a 100644 --- a/notifications_catalog/templates/app-sync-failed.yaml +++ b/notifications_catalog/templates/app-sync-failed.yaml @@ -17,16 +17,7 @@ slack: }, { "title": "Repository", - "value": | - {{- if .app.spec.source }} - "{{ .app.spec.source.repoURL }}" - {{- else if .app.spec.sources }} - {{- range .app.spec.sources }} - "{{ .repoURL }}" - {{- end }} - {{- else }} - "no repoURL" - {{- end }} + "value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }} "short": true } {{range $index, $c := .app.status.conditions}} @@ -53,16 +44,7 @@ teams: }, { "name": "Repository", - "value": | - {{- if .app.spec.source }} - "{{ .app.spec.source.repoURL }}" - {{- else if .app.spec.sources }} - {{- range .app.spec.sources }} - "{{ .repoURL }}" - {{- end }} - {{- else }} - "no repoURL" - {{- end }} + "value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }} } {{range $index, $c := .app.status.conditions}} , @@ -86,15 +68,6 @@ teams: "name":"Open Repository", "targets":[{ "os":"default", - "uri": | - {{- if .app.spec.source }} - "{{ .app.spec.source.repoURL }}" - {{- else if .app.spec.sources }} - {{- range .app.spec.sources }} - "{{ .repoURL }}" - {{- end }} - {{- else }} - "no repoURL" - {{- end }} + "uri": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }} }] }] \ No newline at end of file diff --git a/notifications_catalog/templates/app-sync-running.yaml b/notifications_catalog/templates/app-sync-running.yaml index 029b0985c4973..23a77526483ad 100644 --- a/notifications_catalog/templates/app-sync-running.yaml +++ b/notifications_catalog/templates/app-sync-running.yaml @@ -17,16 +17,7 @@ slack: }, { "title": "Repository", - "value": | - {{- if .app.spec.source }} - "{{ .app.spec.source.repoURL }}" - {{- else if .app.spec.sources }} - {{- range .app.spec.sources }} - "{{ .repoURL }}" - {{- end }} - {{- else }} - "no repoURL" - {{- end }} + "value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }} "short": true } {{range $index, $c := .app.status.conditions}} @@ -52,16 +43,7 @@ teams: }, { "name": "Repository", - "value": | - {{- if .app.spec.source }} - "{{ .app.spec.source.repoURL }}" - {{- else if .app.spec.sources }} - {{- range .app.spec.sources }} - "{{ .repoURL }}" - {{- end }} - {{- else }} - "no repoURL" - {{- end }} + "value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }} } {{range $index, $c := .app.status.conditions}} , @@ -85,15 +67,6 @@ teams: "name":"Open Repository", "targets":[{ "os":"default", - "uri": | - {{- if .app.spec.source }} - "{{ .app.spec.source.repoURL }}" - {{- else if .app.spec.sources }} - {{- range .app.spec.sources }} - "{{ .repoURL }}" - {{- end }} - {{- else }} - "no repoURL" - {{- end }} + "uri": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }} }] }] \ No newline at end of file diff --git a/notifications_catalog/templates/app-sync-status-unknown.yaml b/notifications_catalog/templates/app-sync-status-unknown.yaml index fa464c3aa1e10..8b81b8d211926 100644 --- a/notifications_catalog/templates/app-sync-status-unknown.yaml +++ b/notifications_catalog/templates/app-sync-status-unknown.yaml @@ -22,16 +22,7 @@ slack: }, { "title": "Repository", - "value": | - {{- if .app.spec.source }} - "{{ .app.spec.source.repoURL }}" - {{- else if .app.spec.sources }} - {{- range .app.spec.sources }} - "{{ .repoURL }}" - {{- end }} - {{- else }} - "no repoURL" - {{- end }} + "value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }} "short": true } {{range $index, $c := .app.status.conditions}} @@ -53,16 +44,7 @@ teams: }, { "name": "Repository", - "value": | - {{- if .app.spec.source }} - "{{ .app.spec.source.repoURL }}" - {{- else if .app.spec.sources }} - {{- range .app.spec.sources }} - "{{ .repoURL }}" - {{- end }} - {{- else }} - "no repoURL" - {{- end }} + "value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }} } {{range $index, $c := .app.status.conditions}} , @@ -86,15 +68,6 @@ teams: "name":"Open Repository", "targets":[{ "os":"default", - "uri": | - {{- if .app.spec.source }} - "{{ .app.spec.source.repoURL }}" - {{- else if .app.spec.sources }} - {{- range .app.spec.sources }} - "{{ .repoURL }}" - {{- end }} - {{- else }} - "no repoURL" - {{- end }} + "uri": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }} }] }] \ No newline at end of file diff --git a/notifications_catalog/templates/app-sync-succeeded.yaml b/notifications_catalog/templates/app-sync-succeeded.yaml index 2bc5afdf5303b..a443b5b130abd 100644 --- a/notifications_catalog/templates/app-sync-succeeded.yaml +++ b/notifications_catalog/templates/app-sync-succeeded.yaml @@ -17,16 +17,7 @@ slack: }, { "title": "Repository", - "value": | - {{- if .app.spec.source }} - "{{ .app.spec.source.repoURL }}" - {{- else if .app.spec.sources }} - {{- range .app.spec.sources }} - "{{ .repoURL }}" - {{- end }} - {{- else }} - "no repoURL" - {{- end }} + "value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }} "short": true } {{range $index, $c := .app.status.conditions}} @@ -53,16 +44,7 @@ teams: }, { "name": "Repository", - "value": | - {{- if .app.spec.source }} - "{{ .app.spec.source.repoURL }}" - {{- else if .app.spec.sources }} - {{- range .app.spec.sources }} - "{{ .repoURL }}" - {{- end }} - {{- else }} - "no repoURL" - {{- end }} + "value": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }} } {{range $index, $c := .app.status.conditions}} , @@ -86,15 +68,6 @@ teams: "name":"Open Repository", "targets":[{ "os":"default", - "uri": | - {{- if .app.spec.source }} - "{{ .app.spec.source.repoURL | call .repo.RepoURLToHTTPS }}" - {{- else if .app.spec.sources }} - {{- range .app.spec.sources }} - "{{ .repoURL | call .repo.RepoURLToHTTPS }}" - {{- end }} - {{- else }} - "no repoURL" - {{- end }} + "uri": {{- if .app.spec.source }}"{{ .app.spec.source.repoURL }}"{{- else if .app.spec.sources }}"{{- range .app.spec.sources }}{{ .repoURL }}\n{{- end }}"{{- else }}"no repoURL"{{- end }} }] }] \ No newline at end of file