https://github.com/api7/migration-v3
https://github.com/api7/migration-v3
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/api7/migration-v3
- Owner: api7
- Created: 2023-03-31T15:07:19.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-31T15:07:39.000Z (almost 3 years ago)
- Last Synced: 2025-04-06T02:19:59.148Z (10 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
This tool automates the migratation of Apache APISIX configuration file from v2 to v3
== Usage
. Install a Python virtual environment:
+
[source,bash]
----
python3 -m venv .venv
----
+
. Activate the virtual environment:
+
[source,bash]
----
. .venv/bin/activate
----
+
. Install PyYAML:
+
[source,bash]
----
pip install pyyaml
----
+
. Put the configuration file `config.yaml` in the same folder as the script
. Run the script
+
[source,bash]
----
python migrate.py
----
The script displays the result on the console.
== Limitations
* Loses comments
* Loses order