-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/grafa-dashboard-annotations
- Loading branch information
Showing
11 changed files
with
201 additions
and
26 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,32 @@ | ||
name: Verifies that a CNPG cluster has a certain amount of ready instances | ||
description: Verifies that a CNPG cluster has a certain amount of ready instances | ||
inputs: | ||
pooler-name: | ||
description: The name of the pooler to verify | ||
required: true | ||
default: database-cluster | ||
ready-instances: | ||
description: The amount of ready instances to wait for | ||
required: true | ||
default: "3" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Wait for the pooler to become ready | ||
shell: bash | ||
run: | | ||
ITER=0 | ||
while true; do | ||
if [[ $ITER -ge 300 ]]; then | ||
echo "Pooler not ready" | ||
exit 1 | ||
fi | ||
READY_INSTANCES=$(kubectl get deployments.apps ${INPUT_POOLER_NAME} -o jsonpath='{.status.readyReplicas}') | ||
if [[ "$READY_INSTANCES" == ${INPUT_READY_INSTANCES} ]]; then | ||
echo "Pooler up and running" | ||
break | ||
fi | ||
sleep 1 | ||
(( ++ITER )) | ||
done |
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
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,8 @@ | ||
mode: standalone | ||
cluster: | ||
instances: 1 | ||
backups: | ||
enabled: false | ||
pooler: | ||
enabled: true | ||
instances: 1 |
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
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 |
---|---|---|
|
@@ -173,5 +173,5 @@ spec: | |
) > 0.9 | ||
for: 5m | ||
labels: | ||
severity: warning | ||
severity: critical | ||
{{ end }} |
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
Oops, something went wrong.