Skip to main content

ArgoCD API management CLI and wrapper package

Project description

ngen-argoapi

ArgoCD API management CLI and wrapper package. Designed to simplify ArgoCD interactions and CI/CD integration.

Installation

pip install ngen-argoapi

Usage

Login

Login to your ArgoCD instance. This will save your credentials securely (insecure mode by default for internal instances).

argoapi login

Application Management

List all applications with sync/health status:

argoapi app list

Get application details (JSON output):

argoapi app get <application-name>

Show diff for out-of-sync resources:

argoapi app diff <application-name>
argoapi app diff <application-name> --compact
argoapi app diff <application-name> --inline

Refresh an application:

argoapi app refresh <application-name>
argoapi app refresh <application-name> --hard

Server Mode

Start the ArgoAPI server with Swagger UI:

argoapi server
argoapi server --host 0.0.0.0 --port 8899

API endpoints available at:

  • Swagger UI: http://localhost:8899/docs
  • ReDoc: http://localhost:8899/redoc
  • Health Check: http://localhost:8899/health

Health Check Endpoint

The /health endpoint returns:

{
  "status": "healthy",
  "version": "0.1.8",
  "timestamp": "2024-12-25T10:30:00.000000Z",
  "service": "argoapi",
  "argocd_connected": true,
  "token": {
    "valid": true,
    "username": "admin",
    "error": null
  }
}

Status values:

  • healthy: ArgoCD connected and token valid
  • degraded: ArgoCD connected but token invalid/expired

Environment Variables

Variable Description
ARGOAPI_VERSION Override version reported by API (optional)

Features

  • Insecure by Default: Automatically handles SSL verification for internal ArgoCD instances.
  • Token Management: Auto-renews or manages session tokens.
  • Easy CLI: Simple command structure.
  • Diff Support: View resource differences in compact or inline format.
  • Server Mode: REST API with Swagger documentation.
  • Health Check: Kubernetes-ready health check endpoint.

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

ngen_argoapi-0.1.15.tar.gz (32.3 kB view details)

Uploaded Source

Built Distribution

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

ngen_argoapi-0.1.15-py3-none-any.whl (35.4 kB view details)

Uploaded Python 3

File details

Details for the file ngen_argoapi-0.1.15.tar.gz.

File metadata

  • Download URL: ngen_argoapi-0.1.15.tar.gz
  • Upload date:
  • Size: 32.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for ngen_argoapi-0.1.15.tar.gz
Algorithm Hash digest
SHA256 ebaf5285bfa439f550d9192602554377e85084aa96c45a98648da1a555b0350f
MD5 74dfc4a789a368d75183c7b9ba271c06
BLAKE2b-256 2d6bb62b340e02092d5582ec4a3a3c35f773a5d7ed9f0c13cfe64875e14d3a53

See more details on using hashes here.

File details

Details for the file ngen_argoapi-0.1.15-py3-none-any.whl.

File metadata

  • Download URL: ngen_argoapi-0.1.15-py3-none-any.whl
  • Upload date:
  • Size: 35.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for ngen_argoapi-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 33c3d3e0d5cf1c0e7e5d0557675b0d78a203d84094791c358fea1a49bf5e0857
MD5 59f311881a1699aee30d2f7e009b2be5
BLAKE2b-256 83a134478ddb8774afa526a32d6ad266d8c2f3dd0009cf6304482e3c4921df46

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