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.1.tar.gz (51.3 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.1-py3-none-any.whl (40.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for argops-0.5.1.tar.gz
Algorithm Hash digest
SHA256 634a4ec5f608b932bbfc66149a28d1c911ba813e2ea49304529fe4b205854054
MD5 d0422098ea252813c6cd9452c70e9fdd
BLAKE2b-256 43eed81a888ff1a88d5552491f2eb69470c92308c6866539cc2f50f80272b052

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for argops-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 83a43b65eaf03abcec423bf850b758f6d3b54e7de47c6c195524f033c64d39a9
MD5 2f896ec9e25a68435889cf1fdff76014
BLAKE2b-256 3ae8d9cb9f8d8937a99147b6ba5c0c48fb134bceb5b2dd51fc2e0489e107df15

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