Skip to main content

Promote argo application between environments

Project description

argops

A command-line interface for promoting Argocd applications between environments.

Features:

  • smart promote of value files between environments
  • Dry-run option to see the changes.

Installing

pipx install argops

It's recommended that you add to your ArgoCD .gitignore the *-decrypted.yaml string. This pattern will exclude these temporary files from being committed to your git repository. These files are created by argops during the decryption and encryption of sops secrets. Although argops cleans up these files after use, there's a possibility that they might be left behind if an error occurs during processing.

Usage

To use the tool, simply run it from your terminal on the directory where your environment directories are.

argops \
  --src-dir=<source directory> \
  --dest-dir=<destination directory> \
  --dry-run

By default the source directory is staging and the destination directory production. The --dry-run flag will show you what changes will it do without making them.

Once you know that the changes are OK, remove the --dry-run option.

Known issues

Comments of promoted secrets are over the changed line

When you promote an environment specific values file, there are inline comments on the keys that have changed. However, sops doesn't support this format and adds the comment above the changed line. It's an upstream issue that is difficult to be addressed by us.

Development

If you want to run the tool from source, make sure you have Python and all required packages installed. You can do this using:

git clone https://codeberg.org/lyz/argops 
cd argops
make init

Help

If you need help or want to report an issue, please see our issue tracker.

License

GPLv3

Authors

Lyz

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

argops-0.4.0.tar.gz (36.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

argops-0.4.0-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file argops-0.4.0.tar.gz.

File metadata

  • Download URL: argops-0.4.0.tar.gz
  • Upload date:
  • Size: 36.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.2

File hashes

Hashes for argops-0.4.0.tar.gz
Algorithm Hash digest
SHA256 379a09f04a8c058ea267d87dbfdeb04eec9b8f22a20cdc1a451ad250104dc2fc
MD5 68f36a35df9ba2d5be39c39eb3195955
BLAKE2b-256 c72262399e53c0fcb812548d7da367f7ffe36dcc552ed44e5326b55505ea35c4

See more details on using hashes here.

File details

Details for the file argops-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: argops-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 24.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.2

File hashes

Hashes for argops-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9e7fadef49130d115200263afa5096b682ce0b491c729fc920f72217b54a04b
MD5 a518367de641c5f5d64a158f6dd4db5c
BLAKE2b-256 956657dfde15f577268fa6c95cb604ad5eaf51f2b311658a6dd4a0df52472fe3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page