diff --git a/cmd/backup-operator/main.go b/cmd/backup-operator/main.go index 6c73a1cd7..4e0d45e29 100644 --- a/cmd/backup-operator/main.go +++ b/cmd/backup-operator/main.go @@ -37,8 +37,8 @@ import ( ) var ( - createCRD bool - namespace string + createCRD bool + namespace string clusterWide bool ) @@ -118,9 +118,9 @@ func run(ctx context.Context) { func newControllerConfig() controller.Config { cfg := controller.Config{ - Namespace: namespace, - ClusterWide: clusterWide, - CreateCRD: createCRD, + Namespace: namespace, + ClusterWide: clusterWide, + CreateCRD: createCRD, } return cfg diff --git a/pkg/backup/backup_manager.go b/pkg/backup/backup_manager.go index 1503a448b..82b26b524 100644 --- a/pkg/backup/backup_manager.go +++ b/pkg/backup/backup_manager.go @@ -165,6 +165,5 @@ func getClientWithMaxRev(ctx context.Context, endpoints []string, tc *tls.Config return nil, 0, fmt.Errorf("could not create an etcd client for the max maxirevision purpose from given endpoints (%v)", endpoints) } - return maxClient, maxRev, err -} \ No newline at end of file +} diff --git a/pkg/controller/backup-operator/operator.go b/pkg/controller/backup-operator/operator.go index 9ebdf2788..0115a5ccf 100644 --- a/pkg/controller/backup-operator/operator.go +++ b/pkg/controller/backup-operator/operator.go @@ -51,9 +51,9 @@ type Backup struct { } type Config struct { - Namespace string - ClusterWide bool - CreateCRD bool + Namespace string + ClusterWide bool + CreateCRD bool } type BackupRunner struct {