# Review Argo CD App Changes in Pull Requests

An agent rendered the chart for each of the 8 Argo CD Applications a valueFiles-glob pull request adds and found one invalid: app-08's keys are misplaced.

[Run this on Rush](https://cloud.getrush.ai/run/review-kubernetes-manifests/argo-cd/). Opens the console with this prompt ready to send, in a Project that has your repository.

## What the agent does

Pull request argoproj/argocd-example-apps #465 adds `helm-valueFiles-glob/`: a ConfigMap-only Helm chart, 8 `Application` manifests in `apps/` and 22 values files, each app exercising one glob in `spec.source.helm.valueFiles`. There is no raw YAML or Kustomize change, and neither the Applications nor `Chart.yaml` declares a Kubernetes version, so the agent validated against 1.31.0 and asked for the real one.

It expanded each glob by hand in lexical order, rendered each app with Helm v3.16.3 and `--namespace default`, and tabled which files applied: `app-06` excludes `c`, `app-07` excludes `eab`, `app-08` matches nothing. It ran kubeconform v0.8.0 and kube-linter v0.8.3 on the output, then validated `apps/` against the datreeio CRDs-catalog `Application` schema.

## Start it with one API call

`POST https://api.phoenix.so/o/{org}/sessions`

```json
{
  "agent": "claude",
  "input": "Review the open pull request for the checked-out branch's Kubernetes and Argo CD application changes; ask for its URL if the PR is ambiguous. Identify affected raw YAML, Helm charts and Kustomize directories. Read the Argo application source settings and render with the actual selected values/overlays, asking for target Kubernetes version if it is not declared. Run kubeconform -strict -summary and kube-linter lint on rendered output, recording versions, commands and schema gaps. Comment on changed lines for containers missing CPU/memory limits, readiness/liveness probes or an appropriate non-root security context. Trace rendered findings to source files, distinguish pre-existing issues and explain image compatibility. Do not edit files, apply manifests, sync Argo CD or access a live cluster.",
  "resources": [
    {
      "url": "https://github.com/your-org/your-app"
    }
  ]
}
```

1. **Get an API key.** In the console, open Settings, then API keys, and create a key for your org. Send it in the Authorization header as a Bearer token.
2. **Send the request.** POST the body in request.json to https://api.phoenix.so/o/{org}/sessions, with your repository as the resources URL. The run starts in its own cloud sandbox.
3. **Read what came back.** Follow the run on its live stream or wait for the run.completed webhook, then read the result and its trajectory.

## What comes back

Tried on argoproj/argocd-example-apps at 044f950: pull request #465, a review with five inline comments, one blocking, and no code change. `helm lint` returned `1 chart(s) linted, 0 chart(s) failed`, the 8 renders gave `Valid: 8, Invalid: 0, Errors: 0, Skipped: 0`, and kube-linter printed `No lint errors found!`. Against the `Application` schema, `apps/` returned `Valid: 7, Invalid: 1` with exit 1: in `app-08.yaml`, `server` and `namespace` sit under `spec.source.helm` and `project` under `spec.source`. The review was not posted.

For the reviewer: whether `app-08.yaml` blocks the merge, and the real target Kubernetes version. The run did not exercise Argo CD's own glob expansion, which needs the PR's Argo CD build and a cluster. It installed the three tools outside the clone.

## Run it on every pull request into master

An automation with this prompt and a `github` trigger on `pull_request.opened` and `pull_request.synchronize`, `branch_patterns` set to `master` (this repository's default branch), reviews each push. Put the target Kubernetes version into the prompt so the review stops asking for it. A pull request from a fork, like #465, does not fire it.

## Why run it on Rush?

The usual checks pass this pull request: every render is one valid ConfigMap, and kubeconform's built-in schemas have no `Application` kind, so the manifests fail as `could not find schema` rather than as invalid. Only validating against the CRD schema showed that `app-08`, the example for `ignoreMissingValueFiles`, is broken before that setting can matter.

## Frequently asked questions

### Why no comments on limits, probes or non-root settings?

The chart renders no Pod, Deployment or container, so those checks had nothing to apply to, and there is no image to assess for compatibility.

### What else did the review flag?

`templates/cm.yaml` renders `{{ .Values.foo }}` unquoted, so a value like `true` would become a bool where ConfigMap `data` needs strings; it suggests `| quote`. Helm lint's `icon is recommended` and `repoURL` pointing at the live upstream repository are nits.

## More Argo CD jobs

- [Add AppProjects to Restrict Each Team's Argo CD Applications](https://getrush.ai/run/add-app-projects/argo-cd/)
- [Convert an Argo CD App-of-Apps Chart Into an ApplicationSet](https://getrush.ai/run/add-applicationset/argo-cd/)
- [Convert a Blue-Green Argo Rollout to a Canary With Analysis in an Argo CD App](https://getrush.ai/run/add-canary-rollouts/argo-cd/)

## The same job on other stacks

- [Review Flux Manifest Changes in Pull Requests](https://getrush.ai/run/review-kubernetes-manifests/flux/)
- [Review Kubernetes Manifest Changes for GKE in Pull Requests](https://getrush.ai/run/review-kubernetes-manifests/gke/)
- [Review Kubernetes Manifests in Pull Requests](https://getrush.ai/run/review-kubernetes-manifests/kubernetes/)

## Keep reading

- [How a Rush run works on your repository, from request to pull request](https://getrush.ai/cloud/)
- [Compare cloud agents, agent sandboxes and AI code review](https://getrush.ai/compare/)
- [Rush pricing: Free, Pro and Max](https://getrush.ai/pricing/)
