Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

br: implement federation volume backup controller #5013

Merged
merged 13 commits into from
May 31, 2023
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ check: $(addprefix check-,$(ALL_CHECKS)) tidy
check-%:
./hack/verify-$*.sh

generate:
./hack/update-all.sh

crd:
./hack/update-crd.sh

Expand Down
1 change: 1 addition & 0 deletions cmd/backup-manager/app/backup/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ func (bo *Options) backupData(
// Currently, we only support aws ebs volume snapshot.
specificArgs = append(specificArgs, "--type=aws-ebs")
specificArgs = append(specificArgs, fmt.Sprintf("--volume-file=%s", localCSBFile))
specificArgs = append(specificArgs, "--operator-paused-gc-and-scheduler=true")
logCallback = func(line string) {
if strings.Contains(line, successTag) {
extract := strings.Split(line, successTag)[1]
Expand Down
4 changes: 2 additions & 2 deletions cmd/br-federation-manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,13 @@ func main() {
klog.Infof("br-federation-manager exited")
}

func initFederationKubeClients(cliCfg *controller.BrFedCLIConfig) (map[string]*fedversioned.Clientset, error) {
func initFederationKubeClients(cliCfg *controller.BrFedCLIConfig) (map[string]fedversioned.Interface, error) {
files, err := os.ReadDir(cliCfg.FederationKubeConfigPath)
if err != nil {
return nil, err
}

clients := make(map[string]*fedversioned.Clientset)
clients := make(map[string]fedversioned.Interface)
for _, f := range files {
if f.IsDir() || f.Name() == "..data" {
continue
Expand Down
Loading