Cloning a cluster to a different namespace wont clone dependencies

Summary

On the web console, when cloning a cluster from one namespace into another, none of the cluster dependencies are cloned. This causes an error stating that such dependencies where not found on the specified namespace.

Captura_de_pantalla_2021-06-18_a_la_s__10.28.21

Steps to reproduce

  • Enter the web console
  • Click on the "Clone Cluster Configuration" button
  • Choose a namespace different than the one used by the cluster you wish to clone
  • A notification popup like the one above will appear

Expected Behaviour

Every dependency of the cluster, if not existent, should also be cloned to the specified namespace. There should also be a warning for the user stating so.

Environment

  • StackGres version: 1.0.0-alpha4