---
title: "Adopt Argocd"
method: POST
path: "/internal/clusters/{cluster_id}/adopt-argocd"
tags: ["internal"]
---

# Adopt Argocd

`POST /internal/clusters/{cluster_id}/adopt-argocd`

## Request

- Base URL: `https://api.mengi.cloud` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mengi.cloud/internal/clusters/{cluster_id}/adopt-argocd`
- Auth: none declared. Required headers: `x-service-token`

Adopt a pre-Pulumi ArgoCD install into the mengi-argocd Pulumi stack
(internal, ops-triggered).

For management clusters provisioned before the mengi-argocd stack existed
(pulumi_stack_name NULL, so the drift loop never reconciles them), this
enqueues the one-off worker task that imports the existing argocd
namespace + Helm release and reconciles the Helm values from code.
Safe to re-run; also serves as the values-reconcile entrypoint for
adopted clusters.

## Path parameters

- `cluster_id` string, uuid, required

## Headers

- `x-service-token` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mengi/apis/mengi-cloud.md) · [All operations](https://skmtc.dev/mengi/apis/mengi-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/mengi/apis/mengi-cloud/revisions/4ae9b375cdbb?raw)
