INNER CODE UNIT · Go

NewCmd

clastix/kamaji · cmd/migrate/cmd.go:22

func NewCmd(scheme *runtime.Scheme) *cobra.Command {
	// CLI flags
	var (
		tenantControlPlane    string
		targetDataStore       string
		cleanupPriorMigration bool
		timeout               time.Duration
	)

	cmd := &cobra.Command{
		Use:          "migrate",
		Short:        "Migrate the data of a TenantControlPlane to another compatible DataStore",
		SilenceUsage: true,
		RunE: func(*cobra.Command, []string) error {
			ctx, cancelFn := context.WithTimeout(context.Background(), timeout)
			defer cancelFn()

			log := ctrl.Log

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…