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.5.0.tar.gz (50.9 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.5.0-py3-none-any.whl (40.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for argops-0.5.0.tar.gz
Algorithm Hash digest
SHA256 84619a3817ae6bcf968d645722685a0416d7ffca17a9f4b00ddddd2161e067bc
MD5 87f764697d32147ba1f2abd5ce9114e6
BLAKE2b-256 e26893e1d115b642ce54fbc05458133a7ec8330871453aabef7489d347f10ba4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for argops-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb267732be3f7d77d17cfe0f430ca449e4afebbf659408532cd0a8bc02eb5a08
MD5 a982b532d705a6804d0820e6ffba95c7
BLAKE2b-256 747bd95b7774b90959a986b635c96498a5c7f188e1ee84ea1b433e41687f39bc

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