Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Fix Health Degraded (#349)
Browse files Browse the repository at this point in the history
It should check app.status.health.status

Signed-off-by: Shyukri Shyukriev <[email protected]>
  • Loading branch information
shuker85 authored Nov 18, 2021
1 parent 557281c commit 3607805
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
8 changes: 4 additions & 4 deletions catalog/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ data:
"color": "#f4c030",
"fields": [
{
"title": "Sync Status",
"value": "{{.app.status.sync.status}}",
"title": "Health Status",
"value": "{{.app.status.health.status}}",
"short": true
},
{
Expand All @@ -133,8 +133,8 @@ data:
teams:
facts: |
[{
"name": "Sync Status",
"value": "{{.app.status.sync.status}}"
"name": "Health Status",
"value": "{{.app.status.health.status}}"
},
{
"name": "Repository",
Expand Down
8 changes: 4 additions & 4 deletions catalog/templates/app-health-degraded.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ slack:
"color": "#f4c030",
"fields": [
{
"title": "Sync Status",
"value": "{{.app.status.sync.status}}",
"title": "Health Status",
"value": "{{.app.status.health.status}}",
"short": true
},
{
Expand All @@ -36,8 +36,8 @@ teams:
title: Application {{.app.metadata.name}} has degraded.
facts: |
[{
"name": "Sync Status",
"value": "{{.app.status.sync.status}}"
"name": "Health Status",
"value": "{{.app.status.health.status}}"
},
{
"name": "Repository",
Expand Down
8 changes: 4 additions & 4 deletions docs/catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ slack:
"color": "#f4c030",
"fields": [
{
"title": "Sync Status",
"value": "{{.app.status.sync.status}}",
"title": "Health Status",
"value": "{{.app.status.health.status}}",
"short": true
},
{
Expand All @@ -159,8 +159,8 @@ slack:
teams:
facts: |
[{
"name": "Sync Status",
"value": "{{.app.status.sync.status}}"
"name": "Health Status",
"value": "{{.app.status.health.status}}"
},
{
"name": "Repository",
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/argoproj/notifications-engine v0.3.1-0.20211117165611-0e1f1eda5f52
github.com/evanphx/json-patch v4.9.0+incompatible
github.com/ghodss/yaml v1.0.0
github.com/golang/mock v1.4.4
github.com/golang/mock v1.5.0
github.com/grpc-ecosystem/go-grpc-middleware v1.2.0 // indirect
github.com/olekukonko/tablewriter v0.0.4
github.com/prometheus/client_golang v1.7.1
Expand Down
3 changes: 2 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,9 @@ github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfb
github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
github.com/golang/mock v1.4.4 h1:l75CXGRSwbaYNpl/Z2X1XIIAMSCquvXgpVZDhwEIJsc=
github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4=
github.com/golang/mock v1.5.0 h1:jlYHihg//f7RRwuPfptm04yp4s7O6Kw8EZiVYIGcH0g=
github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
Expand Down

0 comments on commit 3607805

Please sign in to comment.