-
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.
Showing
21 changed files
with
201 additions
and
6,493 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
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
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Ignore Helm subcharts | ||
charts/**/charts/*.tgz | ||
|
||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
|
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,6 @@ | ||
dependencies: | ||
- name: cluster | ||
repository: https://cloudnative-pg.github.io/grafana-dashboards | ||
version: 0.0.1 | ||
digest: sha256:f2055d3b9f52be6989a8285cb736ec555f91f133791382787f4beb4387175ca0 | ||
generated: "2024-03-23T16:27:46.965208992+02:00" |
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 |
---|---|---|
|
@@ -36,3 +36,9 @@ home: https://cloudnative-pg.io | |
maintainers: | ||
- name: phisco | ||
email: [email protected] | ||
dependencies: | ||
- name: cluster | ||
alias: monitoring | ||
condition: monitoring.grafanaDashboard.create | ||
version: "0.0" | ||
repository: https://cloudnative-pg.github.io/grafana-dashboards |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.