Skip to content

Commit

Permalink
fix: Troubleshooting failure to get information when an application h…
Browse files Browse the repository at this point in the history
…as multiple sources

Signed-off-by: KangManJoo <[email protected]>
  • Loading branch information
eogns47 committed Oct 1, 2024
1 parent f78e741 commit 0a9ab64
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 31 deletions.
26 changes: 13 additions & 13 deletions notifications_catalog/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ data:
},
{
"title": "Repository",
"value": "{{.app.spec.source.repoURL}}",
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}",
"short": true
},
{
Expand Down Expand Up @@ -60,7 +60,7 @@ data:
},
{
"name": "Repository",
"value": "{{.app.spec.source.repoURL}}"
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}"
},
{
"name": "Revision",
Expand Down Expand Up @@ -113,7 +113,7 @@ data:
},
{
"title": "Repository",
"value": "{{.app.spec.source.repoURL}}",
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}",
"short": true
}
{{range $index, $c := .app.status.conditions}}
Expand All @@ -137,7 +137,7 @@ data:
},
{
"name": "Repository",
"value": "{{.app.spec.source.repoURL}}"
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}"
}
{{range $index, $c := .app.status.conditions}}
,
Expand All @@ -161,7 +161,7 @@ data:
"name":"Open Repository",
"targets":[{
"os":"default",
"uri":"{{.app.spec.source.repoURL | call .repo.RepoURLToHTTPS}}"
"uri":"{{range .app.spec.sources}}{{.repoURL | call .repo.RepoURLToHTTPS}} {{end}}"
}]
}]
themeColor: '#FF0000'
Expand All @@ -186,7 +186,7 @@ data:
},
{
"title": "Repository",
"value": "{{.app.spec.source.repoURL}}",
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}",
"short": true
}
{{range $index, $c := .app.status.conditions}}
Expand Down Expand Up @@ -214,7 +214,7 @@ data:
},
{
"name": "Repository",
"value": "{{.app.spec.source.repoURL}}"
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}"
}
{{range $index, $c := .app.status.conditions}}
,
Expand Down Expand Up @@ -263,7 +263,7 @@ data:
},
{
"title": "Repository",
"value": "{{.app.spec.source.repoURL}}",
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}",
"short": true
}
{{range $index, $c := .app.status.conditions}}
Expand Down Expand Up @@ -291,7 +291,7 @@ data:
},
{
"name": "Repository",
"value": "{{.app.spec.source.repoURL}}"
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}"
}
{{range $index, $c := .app.status.conditions}}
,
Expand Down Expand Up @@ -344,7 +344,7 @@ data:
},
{
"title": "Repository",
"value": "{{.app.spec.source.repoURL}}",
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}",
"short": true
}
{{range $index, $c := .app.status.conditions}}
Expand All @@ -368,7 +368,7 @@ data:
},
{
"name": "Repository",
"value": "{{.app.spec.source.repoURL}}"
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}",
}
{{range $index, $c := .app.status.conditions}}
,
Expand Down Expand Up @@ -416,7 +416,7 @@ data:
},
{
"title": "Repository",
"value": "{{.app.spec.source.repoURL}}",
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}",
"short": true
}
{{range $index, $c := .app.status.conditions}}
Expand Down Expand Up @@ -444,7 +444,7 @@ data:
},
{
"name": "Repository",
"value": "{{.app.spec.source.repoURL}}"
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}",
}
{{range $index, $c := .app.status.conditions}}
,
Expand Down
6 changes: 3 additions & 3 deletions notifications_catalog/templates/app-deployed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ slack:
},
{
"title": "Repository",
"value": "{{.app.spec.source.repoURL}}",
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}",
"short": true
},
{
Expand Down Expand Up @@ -44,7 +44,7 @@ teams:
},
{
"name": "Repository",
"value": "{{.app.spec.source.repoURL}}"
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}"
},
{
"name": "Revision",
Expand Down Expand Up @@ -72,6 +72,6 @@ teams:
"name":"Open Repository",
"targets":[{
"os":"default",
"uri":"{{.app.spec.source.repoURL | call .repo.RepoURLToHTTPS}}"
"uri":"{{range .app.spec.sources}}{{.repoURL | call .repo.RepoURLToHTTPS}} {{end}}"
}]
}]
6 changes: 3 additions & 3 deletions notifications_catalog/templates/app-health-degraded.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ slack:
},
{
"title": "Repository",
"value": "{{.app.spec.source.repoURL}}",
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}",
"short": true
}
{{range $index, $c := .app.status.conditions}}
Expand All @@ -40,7 +40,7 @@ teams:
},
{
"name": "Repository",
"value": "{{.app.spec.source.repoURL}}"
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}"
}
{{range $index, $c := .app.status.conditions}}
,
Expand All @@ -64,6 +64,6 @@ teams:
"name":"Open Repository",
"targets":[{
"os":"default",
"uri":"{{.app.spec.source.repoURL | call .repo.RepoURLToHTTPS}}"
"uri":"{{range .app.spec.sources}}{{.repoURL | call .repo.RepoURLToHTTPS}} {{end}}"
}]
}]
6 changes: 3 additions & 3 deletions notifications_catalog/templates/app-sync-failed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ slack:
},
{
"title": "Repository",
"value": "{{.app.spec.source.repoURL}}",
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}",
"short": true
}
{{range $index, $c := .app.status.conditions}}
Expand All @@ -44,7 +44,7 @@ teams:
},
{
"name": "Repository",
"value": "{{.app.spec.source.repoURL}}"
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}"
}
{{range $index, $c := .app.status.conditions}}
,
Expand All @@ -68,6 +68,6 @@ teams:
"name":"Open Repository",
"targets":[{
"os":"default",
"uri":"{{.app.spec.source.repoURL | call .repo.RepoURLToHTTPS}}"
"uri":"{{range .app.spec.sources}}{{.repoURL | call .repo.RepoURLToHTTPS}} {{end}}"
}]
}]
6 changes: 3 additions & 3 deletions notifications_catalog/templates/app-sync-running.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ slack:
},
{
"title": "Repository",
"value": "{{.app.spec.source.repoURL}}",
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}",
"short": true
}
{{range $index, $c := .app.status.conditions}}
Expand All @@ -43,7 +43,7 @@ teams:
},
{
"name": "Repository",
"value": "{{.app.spec.source.repoURL}}"
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}"
}
{{range $index, $c := .app.status.conditions}}
,
Expand All @@ -67,6 +67,6 @@ teams:
"name":"Open Repository",
"targets":[{
"os":"default",
"uri":"{{.app.spec.source.repoURL | call .repo.RepoURLToHTTPS}}"
"uri":"{{range .app.spec.sources}}{{.repoURL | call .repo.RepoURLToHTTPS}} {{end}}"
}]
}]
6 changes: 3 additions & 3 deletions notifications_catalog/templates/app-sync-status-unknown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ slack:
},
{
"title": "Repository",
"value": "{{.app.spec.source.repoURL}}",
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}",
"short": true
}
{{range $index, $c := .app.status.conditions}}
Expand All @@ -44,7 +44,7 @@ teams:
},
{
"name": "Repository",
"value": "{{.app.spec.source.repoURL}}"
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}",
}
{{range $index, $c := .app.status.conditions}}
,
Expand All @@ -68,6 +68,6 @@ teams:
"name":"Open Repository",
"targets":[{
"os":"default",
"uri":"{{.app.spec.source.repoURL | call .repo.RepoURLToHTTPS}}"
"uri":"{{range .app.spec.sources}}{{.repoURL | call .repo.RepoURLToHTTPS}} {{end}}"
}]
}]
6 changes: 3 additions & 3 deletions notifications_catalog/templates/app-sync-succeeded.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ slack:
},
{
"title": "Repository",
"value": "{{.app.spec.source.repoURL}}",
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}",
"short": true
}
{{range $index, $c := .app.status.conditions}}
Expand All @@ -44,7 +44,7 @@ teams:
},
{
"name": "Repository",
"value": "{{.app.spec.source.repoURL}}"
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}",
}
{{range $index, $c := .app.status.conditions}}
,
Expand All @@ -68,6 +68,6 @@ teams:
"name":"Open Repository",
"targets":[{
"os":"default",
"uri":"{{.app.spec.source.repoURL | call .repo.RepoURLToHTTPS}}"
"uri":"{{range .app.spec.sources}}{{.repoURL | call .repo.RepoURLToHTTPS}} {{end}}"
}]
}]

0 comments on commit 0a9ab64

Please sign in to comment.