Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

Commit

Permalink
backup operator: gofmt fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kapouille committed Apr 4, 2019
1 parent 6f84f8a commit 7e40295
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
10 changes: 5 additions & 5 deletions cmd/backup-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ import (
)

var (
createCRD bool
namespace string
createCRD bool
namespace string
clusterWide bool
)

Expand Down Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions pkg/backup/backup_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
6 changes: 3 additions & 3 deletions pkg/controller/backup-operator/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7e40295

Please sign in to comment.