-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(upgrade): upgrade command basic skeleton
- Loading branch information
1 parent
1a6865a
commit a30b148
Showing
5 changed files
with
351 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package upgrade | ||
|
||
import ( | ||
"context" | ||
"github.com/influxdata/influxdb/v2" | ||
"github.com/influxdata/influxdb/v2/kit/errors" | ||
"go.uber.org/zap" | ||
) | ||
|
||
func setupAdmin(ctx context.Context, v2 *influxDBv2) (*influxdb.OnboardingResults, error) { | ||
return nil, errors.New("not implemented") | ||
} | ||
|
||
// upgradeDatabases creates databases, buckets, retention policies and shard info according to 1.x meta and copies data | ||
func upgradeDatabases(ctx context.Context, v1 *influxDBv1, v2 *influxDBv2, orgID influxdb.ID, log *zap.Logger) (map[string][]string, error) { | ||
return nil, errors.New("not implemented") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package upgrade | ||
|
||
import ( | ||
"errors" | ||
"go.uber.org/zap" | ||
) | ||
|
||
// Generates security upgrade script. | ||
func generateSecurityScript(v1 *influxDBv1, dbBuckets map[string][]string, log *zap.Logger) error { | ||
return errors.New("not implemented") | ||
} |
Oops, something went wrong.