Skip to content

Commit

Permalink
fixed: restoration operation does not execute (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
aby913 authored May 16, 2024
1 parent dcf5df7 commit 7933c19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build/installer/install_cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -962,8 +962,8 @@ install_velero_plugin_terminus() {
namespace="os-system"
storage_location="terminus-cloud"
bucket="terminus-cloud"
image="beclab/velero:v1.11.0"
plugin="beclab/velero-plugin-for-terminus:v1.0.1"
image="beclab/velero:v1.11.1"
plugin="beclab/velero-plugin-for-terminus:v1.0.2"

if [[ "$provider" == x"" || "$namespace" == x"" || "$bucket" == x"" || "$image" == x"" || "$plugin" == x"" ]]; then
echo "Backup plugin install params invalid."
Expand Down
6 changes: 3 additions & 3 deletions build/installer/publicRestoreInstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ install_velero_plugin_terminus() {
namespace="os-system"
storage_location="terminus-cloud"
bucket="terminus-cloud"
plugin="beclab/velero-plugin-for-terminus:v1.0.1"
plugin="beclab/velero-plugin-for-terminus:v1.0.2"

if [[ "$provider" == x"" || "$namespace" == x"" || "$bucket" == x"" || "$plugin" == x"" ]]; then
echo "velero plugin install params invalid."
Expand Down Expand Up @@ -911,10 +911,10 @@ restore_k8s_os() {
local include_status_rgs="applicationpermissions.sys.bytetrade.io,providerregistries.sys.bytetrade.io"
include_status_rgs+=",applications.app.bytetrade.io,terminus.sys.bytetrade.io,middlewarerequests.apr.bytetrade.io"
include_status_rgs+=",pgclusterbackups.apr.bytetrade.io,pgclusterrestores.apr.bytetrade.io"
include_status_rgs+=",redisclusterbackups.redis.kun,distributedredisclusters.redis.kun"
include_status_rgs+=",redisclusterbackups.redis.kun"

log_info 'Creating k8s restore task ...'
ensure_success $sh_c "${VELERO} -n os-system restore create --status-include-resources $include_status_rgs --status-exclude-resources perconaservermongodbs.psmdb.percona.com --selector 'managered-by notin (mongo-backup-mongo-cluster,mongo-restore-mongo-cluster)' --from-backup $backupName"
ensure_success $sh_c "${VELERO} -n os-system restore create --status-include-resources $include_status_rgs --status-exclude-resources perconaservermongodbs.psmdb.percona.com,distributedredisclusters.redis.kun --selector 'managered-by notin (mongo-backup-mongo-cluster,mongo-restore-mongo-cluster)' --from-backup $backupName"

check_restore_available
}
Expand Down

0 comments on commit 7933c19

Please sign in to comment.