Collection of helper scripts for Nirmata Platform Engineering.
Located in env_to_catalog_migration/
, this script migrates Git-based applications from Nirmata environments to catalogs. It automatically handles existing applications and creates new ones with unique names when needed.
Features:
- Migrates Git-based applications from environments to catalogs
- Automatically creates corresponding catalogs if they don't exist
- Handles existing applications by creating new ones with unique names
- Preserves Git repository configuration (URL, branch, path)
- Maintains application state and labels
- Provides detailed logging of the migration process
Usage:
./env_to_catalog_migration/migrate_env_apps_to_catalog.sh <API_ENDPOINT> <API_TOKEN> <CLUSTER_NAME>
Example:
./env_to_catalog_migration/migrate_env_apps_to_catalog.sh https://pe420.nirmata.co "YOUR_API_TOKEN" "123-app-migration"
For detailed documentation, see Environment to Catalog Migration.
The backup script runs daily at 3am and outputs to a log file:
0 3 * * 0-6 /usr/bin/nirmata-backup.sh > /var/log/nirmatabackup.txt
bash
shellcurl
for API callsjq
for JSON processing- Nirmata API access token with appropriate permissions
When adding new scripts:
- Create a new directory for your script if it's a complex tool
- Include a README.md with usage instructions
- Add error handling and logging
- Document prerequisites and dependencies
- Update this main README.md with your script's information