get-eda-resources tool (alias ger) exports Nokia EDA resources using the Kubernetes API (kubectl required).
It can be used to copy EDA resources between namespaces or clusters without taking a full EDA backup.
curl eda.dev/uvx | sh -s -- \
https://github.com/eda-labs/get-eda-resources/archive/refs/heads/main.zipAfter installation, the commands are available as:
get-eda-resources --help
ger --helpget-eda-resources --namespace <namespace>Exported files are written to eda-resources/<namespace> by default.
--version,-V: Print the tool version and exit.version: Subcommand that prints the tool version and exits.--namespace: Kubernetes namespace to export from (default:eda).--out-dir: Directory where exported resources are written (default:eda-resources).--archive: Create a tar.gz archive of exported resources.--set-namespace: Rewrite exported resource namespaces to this value.--group: CRD group suffix to match (default:eda.nokia.com).--verbose,-v: Enable debug logging.
waitforinput.core.eda.nokia.comresources are excluded from export.eda.nokia.com/source=derivedtagged resources are excluded from export.
get-eda-resources edit [-d DIR] toponode --cx-mode [--namespace NS] [--file PATH]-d/--directory: Export root directory (default:eda-resources). Same role as export--out-dir.toponode --cx-mode: For eachTopoNodeintoponodes.core.nokia.com.yaml: setsspec.onBoardedtofalse; removesspec.productionAddress; movesspec.macAddressandspec.serialNumberintometadata.annotationsunder the same keys (string values). The file defaults to<directory>/<namespace>/toponodes.core.nokia.com.yaml. If you omit--namespaceand-dcontains exactly one subdirectory, that name is used as the namespace; otherwise the default namespace iseda. Passing-n/--namespacealways overrides this.-f/--file: Use an explicit YAML path instead of the default under-d/--namespace.
Without --cx-mode, the command exits with a reminder to pass the flag (no file changes).
To apply exported resources to another cluster or namespace, you can use the
etc script until edactl is available
as a native binary.