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

Commit 3607805

Browse files
authored
Fix Health Degraded (#349)
It should check app.status.health.status Signed-off-by: Shyukri Shyukriev <shyukri.shyukriev@mariadb.com>
1 parent 557281c commit 3607805

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

catalog/install.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ data:
108108
"color": "#f4c030",
109109
"fields": [
110110
{
111-
"title": "Sync Status",
112-
"value": "{{.app.status.sync.status}}",
111+
"title": "Health Status",
112+
"value": "{{.app.status.health.status}}",
113113
"short": true
114114
},
115115
{
@@ -133,8 +133,8 @@ data:
133133
teams:
134134
facts: |
135135
[{
136-
"name": "Sync Status",
137-
"value": "{{.app.status.sync.status}}"
136+
"name": "Health Status",
137+
"value": "{{.app.status.health.status}}"
138138
},
139139
{
140140
"name": "Repository",

catalog/templates/app-health-degraded.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ slack:
1111
"color": "#f4c030",
1212
"fields": [
1313
{
14-
"title": "Sync Status",
15-
"value": "{{.app.status.sync.status}}",
14+
"title": "Health Status",
15+
"value": "{{.app.status.health.status}}",
1616
"short": true
1717
},
1818
{
@@ -36,8 +36,8 @@ teams:
3636
title: Application {{.app.metadata.name}} has degraded.
3737
facts: |
3838
[{
39-
"name": "Sync Status",
40-
"value": "{{.app.status.sync.status}}"
39+
"name": "Health Status",
40+
"value": "{{.app.status.health.status}}"
4141
},
4242
{
4343
"name": "Repository",

docs/catalog.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ slack:
134134
"color": "#f4c030",
135135
"fields": [
136136
{
137-
"title": "Sync Status",
138-
"value": "{{.app.status.sync.status}}",
137+
"title": "Health Status",
138+
"value": "{{.app.status.health.status}}",
139139
"short": true
140140
},
141141
{
@@ -159,8 +159,8 @@ slack:
159159
teams:
160160
facts: |
161161
[{
162-
"name": "Sync Status",
163-
"value": "{{.app.status.sync.status}}"
162+
"name": "Health Status",
163+
"value": "{{.app.status.health.status}}"
164164
},
165165
{
166166
"name": "Repository",

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/argoproj/notifications-engine v0.3.1-0.20211117165611-0e1f1eda5f52
88
github.com/evanphx/json-patch v4.9.0+incompatible
99
github.com/ghodss/yaml v1.0.0
10-
github.com/golang/mock v1.4.4
10+
github.com/golang/mock v1.5.0
1111
github.com/grpc-ecosystem/go-grpc-middleware v1.2.0 // indirect
1212
github.com/olekukonko/tablewriter v0.0.4
1313
github.com/prometheus/client_golang v1.7.1

go.sum

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,9 @@ github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfb
341341
github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
342342
github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
343343
github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
344-
github.com/golang/mock v1.4.4 h1:l75CXGRSwbaYNpl/Z2X1XIIAMSCquvXgpVZDhwEIJsc=
345344
github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4=
345+
github.com/golang/mock v1.5.0 h1:jlYHihg//f7RRwuPfptm04yp4s7O6Kw8EZiVYIGcH0g=
346+
github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8=
346347
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
347348
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
348349
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=

0 commit comments

Comments
 (0)