generated from giantswarm/template-app
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ab0408
commit 7abb46f
Showing
2 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
echo "Checking if loki app is in deployed state" | ||
|
||
deployed=$(kubectl get app -n giantswarm loki -o yaml | yq .status.release.status) | ||
|
||
if [[ "$deployed" != "deployed" ]]; then | ||
echo "loki app is not in deployed state. Please fix the app before retrying" | ||
exit 1 | ||
else | ||
echo "loki app is indeed in deployed state" | ||
fi | ||
|
||
echo "Checking if loki-canary is enabled" | ||
|
||
canary=$(kubectl get cm -n giantswarm loki-chart-values -oyaml | yq .data.values | yq .loki.lokiCanary.enabled) | ||
|
||
if [[ "$canary" != "true" ]]; then | ||
echo "loki-canary is not enabled. Please enable it before retrying" | ||
exit 1 | ||
else | ||
echo "loki-canary is indeed enabled" | ||
fi |