-
Notifications
You must be signed in to change notification settings - Fork 111
/
argo_cm.yaml
65 lines (62 loc) · 1.88 KB
/
argo_cm.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-cm
namespace: argocd
labels:
app.kubernetes.io/name: argocd-cm
app.kubernetes.io/part-of: argocd
data:
resource.customizations.health.lifecycle.keptn.sh_KeptnAppVersion: |
hs = {}
hs.status = "Progressing"
hs.message = "KeptnAppVersion is progressing"
if obj.status.status == "Succeeded" then
hs.status = "Healthy"
hs.message = "KeptnAppVersion is healthy"
end
if obj.status.status == "Failed" then
hs.status = "Degraded"
hs.message = "KeptnAppVersion is degraded"
end
return hs
resource.customizations.health.lifecycle.keptn.sh_KeptnWorkloadVersion: |
hs = {}
hs.status = "Progressing"
hs.message = "KeptnWorkloadVersion is progressing"
if obj.status.status == "Succeeded" then
hs.status = "Healthy"
hs.message = "KeptnWorkloadVersion is healthy"
end
if obj.status.status == "Failed" then
hs.status = "Degraded"
hs.message = "KeptnWorkloadVersion is degraded"
end
return hs
resource.customizations.health.lifecycle.keptn.sh_KeptnTask: |
hs = {}
hs.status = "Progressing"
hs.message = "KeptnTask is progressing"
if obj.status.status == "Succeeded" then
hs.status = "Healthy"
hs.message = "KeptnTask is healthy"
end
if obj.status.status == "Failed" then
hs.status = "Degraded"
hs.message = "KeptnTask is degraded"
end
return hs
resource.customizations.health.lifecycle.keptn.sh_KeptnEvaluation: |
hs = {}
hs.status = "Progressing"
hs.message = "KeptnEvaluation is progressing"
if obj.status.overallStatus == "Succeeded" then
hs.status = "Healthy"
hs.message = "KeptnEvaluation is healthy"
end
if obj.status.overallStatus == "Failed" then
hs.status = "Degraded"
hs.message = "KeptnEvaluation is degraded"
end
return hs