Skip to content

Commit

Permalink
actually don't allow cross namespace migration
Browse files Browse the repository at this point in the history
closes #54 for now
  • Loading branch information
BeryJu committed Sep 25, 2021
1 parent 7fc6217 commit b6f284f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,17 @@ var rootCmd = &cobra.Command{
m := migrator.New(kubeConfig)
m.Force = force

// We can only support operating in a single namespace currently
// Since cross-namespace PVC mounts are not a thing
// we'd have to transfer the data over the network, which uh
// I don't really feel like implementing it
if sourceNamespace != "" {
m.SourceNamespace = sourceNamespace
m.DestNamespace = sourceNamespace
}
if pvcNewNamespace != "" {
m.DestNamespace = pvcNewNamespace
}
// if pvcNewNamespace != "" {
// m.DestNamespace = pvcNewNamespace
// }

m.DestPVCSize = pvcNewSize
m.DestPVCStorageClass = pvcNewStorageClass
Expand Down

0 comments on commit b6f284f

Please sign in to comment.