Commit dcb9a3e
committed
Introduce an argo-healthcheck make target
This is a simple quick check to see if all argo applications in all
namespaces are synced and error out if they are not.
Synced example:
$ make argo-healthcheck
make -f common/Makefile argo-healthcheck
make[1]: Entering directory '/home/michele/Engineering/cloud-patterns/multicloud-gitops'
Checking argo applications
mcg-private-hub acm -> Sync: Synced - Health: Healthy
mcg-private-hub config-demo -> Sync: Synced - Health: Healthy
mcg-private-hub golang-external-secrets -> Sync: Synced - Health: Healthy
mcg-private-hub hello-world -> Sync: Synced - Health: Healthy
mcg-private-hub vault -> Sync: Synced - Health: Healthy
openshift-gitops mcg-private-hub -> Sync: Synced - Health: Healthy
make[1]: Leaving directory '/home/michele/Engineering/cloud-patterns/multicloud-gitops'
Not synced example:
$ make argo-healthcheck
make -f common/Makefile argo-healthcheck
make[1]: Entering directory '/home/michele/Engineering/cloud-patterns/multicloud-gitops'
Checking argo applications
mcg-private-hub acm -> Sync: Synced - Health: Healthy
mcg-private-hub config-demo -> Sync: Synced - Health: Degraded
mcg-private-hub golang-external-secrets -> Sync: Synced - Health: Healthy
mcg-private-hub hello-world -> Sync: Synced - Health: Healthy
mcg-private-hub vault -> Sync: Synced - Health: Progressing
openshift-gitops mcg-private-hub -> Sync: Synced - Health: Healthy
Some applications are not synced or are unhealthy
make[1]: *** [common/Makefile:115: argo-healthcheck] Error 1
make[1]: Leaving directory '/home/michele/Engineering/cloud-patterns/multicloud-gitops'
make: *** [Makefile:12: argo-healthcheck] Error 21 parent 41de1a3 commit dcb9a3e
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
111 | 135 | | |
112 | 136 | | |
113 | 137 | | |
| |||
0 commit comments