Skip to content

Commit

Permalink
fix: Using newline syntax to fix indentation issues
Browse files Browse the repository at this point in the history
Signed-off-by: KangManJoo <[email protected]>
  • Loading branch information
eogns47 committed Oct 4, 2024
1 parent 9db0775 commit f242fe1
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
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":
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
Expand Down Expand Up @@ -53,7 +53,7 @@ teams:
},
{
"name": "Repository",
"value":
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
Expand Down Expand Up @@ -90,7 +90,7 @@ teams:
"name":"Open Repository",
"targets":[{
"os":"default",
"uri":
"uri": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
Expand Down
8 changes: 4 additions & 4 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":
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
Expand Down Expand Up @@ -49,7 +49,7 @@ teams:
},
{
"name": "Repository",
"value":
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
Expand Down Expand Up @@ -82,7 +82,7 @@ teams:
"name":"Open Repository",
"targets":[{
"os":"default",
"uri":
"uri": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
Expand All @@ -93,4 +93,4 @@ teams:
"no repoURL"
{{- end }}
}]
}]
}]
8 changes: 4 additions & 4 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":
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
Expand Down Expand Up @@ -53,7 +53,7 @@ teams:
},
{
"name": "Repository",
"value":
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
Expand Down Expand Up @@ -86,7 +86,7 @@ teams:
"name":"Open Repository",
"targets":[{
"os":"default",
"uri":
"uri": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
Expand All @@ -95,6 +95,6 @@ teams:
{{- end }}
{{- else }}
"no repoURL"
{{- end }}
{{- end }}
}]
}]
8 changes: 4 additions & 4 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":
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
Expand Down Expand Up @@ -52,7 +52,7 @@ teams:
},
{
"name": "Repository",
"value":
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
Expand Down Expand Up @@ -85,7 +85,7 @@ teams:
"name":"Open Repository",
"targets":[{
"os":"default",
"uri":
"uri": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
Expand All @@ -94,6 +94,6 @@ teams:
{{- end }}
{{- else }}
"no repoURL"
{{- end }}
{{- end }}
}]
}]
8 changes: 4 additions & 4 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":
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
Expand Down Expand Up @@ -53,7 +53,7 @@ teams:
},
{
"name": "Repository",
"value":
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
Expand Down Expand Up @@ -86,7 +86,7 @@ teams:
"name":"Open Repository",
"targets":[{
"os":"default",
"uri":
"uri": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
Expand All @@ -95,6 +95,6 @@ teams:
{{- end }}
{{- else }}
"no repoURL"
{{- end }}
{{- 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":
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
Expand Down Expand Up @@ -53,7 +53,7 @@ teams:
},
{
"name": "Repository",
"value":
"value": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL }}"
{{- else if .app.spec.sources }}
Expand Down Expand Up @@ -86,7 +86,7 @@ teams:
"name":"Open Repository",
"targets":[{
"os":"default",
"uri":
"uri": |
{{- if .app.spec.source }}
"{{ .app.spec.source.repoURL | call .repo.RepoURLToHTTPS }}"
{{- else if .app.spec.sources }}
Expand Down

0 comments on commit f242fe1

Please sign in to comment.