RAILIANCE-WP-0016: finish unattended hybrid Option A backups
Core in-cluster CronJobs with cnpg-option-a-backup image + NetworkPolicy; R01 activity-core schedule enabled; status healthy; evidence recorded.
This commit is contained in:
parent
65e71884a9
commit
4a06c0884a
6 changed files with 196 additions and 158 deletions
|
|
@ -88,15 +88,20 @@ degraded_detail=()
|
|||
|
||||
IFS=',' read -r -a expected <<<"$expected_clusters"
|
||||
|
||||
# Declared unattended plan: workstation stopgap or activity-core primary
|
||||
# Declared unattended plan modes
|
||||
workstation_schedule=0
|
||||
activity_core_schedule=0
|
||||
in_cluster_schedule=0
|
||||
if [[ "$schedule_mode" == "workstation-cron" ]]; then
|
||||
workstation_schedule=1
|
||||
fi
|
||||
if [[ "$schedule_mode" == "activity-core" ]]; then
|
||||
activity_core_schedule=1
|
||||
fi
|
||||
if [[ "$schedule_mode" == "in-cluster-cron" || "$schedule_mode" == activity-core* ]]; then
|
||||
# in-cluster-cron is primary for CoulombCore; activity-core* covers hybrid labels
|
||||
in_cluster_schedule=1
|
||||
fi
|
||||
|
||||
for cluster in "${clusters[@]}"; do
|
||||
if ! kubectl get cluster "$cluster" -n "$namespace" >/dev/null 2>&1; then
|
||||
|
|
@ -159,6 +164,11 @@ for cluster in "${clusters[@]}"; do
|
|||
schedule_note="${schedule_note:+$schedule_note; }activity-core"
|
||||
echo "${cluster}: schedule declaration = activity-core"
|
||||
fi
|
||||
if ((in_cluster_schedule)); then
|
||||
schedule_ok=1
|
||||
schedule_note="${schedule_note:+$schedule_note; }in-cluster-cron"
|
||||
echo "${cluster}: schedule declaration = in-cluster-cron"
|
||||
fi
|
||||
|
||||
ts="${last_success[$cluster]:-}"
|
||||
success_ok=0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue