- Home
- Skills
- DevOps & Cloud
- ArgoCD & Helm Upgrade Safety Gate
Works with the AI Agents you already use
ArgoCD & Helm Upgrade Safety Gate
Block removed Kubernetes APIs, ArgoCD stateful auto-prune wipes, ApplicationSet deletion cascades, and unpinned Helm charts before syncing—with a read-only GitOps safety gate.
$9
ArgoCD & Helm Upgrade Safety Gate
Example session with this skill installed
Run an ArgoCD & Helm upgrade safety gate on our gitops/ repo before we upgrade EKS to Kubernetes 1.36. Flag any ApplicationSet wipe hazards, removed APIs, or plaintext values secrets—do not modify files until I approve.
- Read your context and instructions
- Compiled the argocd & helm
ArgoCD & Helm Upgrade Safety Gate
Verdict: NO-GO · Findings: 2 Critical · 4 High · 3 Medium
| Rule | Severity | Location | Hazard | Safe Fix |
|---|---|---|---|---|
GITOPS-001 | Critical | argocd-db-app.yaml:19 | automated.prune: true enabled on Postgres StatefulSet app without Prune=false | Add syncOptions: [Prune=false] and argocd.argoproj.io/sync-options: Delete=false |
GITOPS-002 | Critical | chart/templates/pdb.yaml:1 | Removed API policy/v1beta1 for PodDisruptionBudget | Migrate to apiVersion: policy/v1 |
GITOPS-005 | High | argocd-appset.yaml:14 | ApplicationSet enables auto-prune without preserveResourcesOnDeletion: true | Add syncPolicy: { preserveResourcesOnDeletion: true } |
GITOPS-003 | High | argocd-db-app.yaml:10 | targetRevision: main unpinned in production Application | Pin to immutable release tag or commit SHA |
GITOPS-008 | Medium | chart/values.yaml:28 | Plaintext secret literal dbPassword: [REDACTED] | Move to External Secrets Operator / Sealed Secrets |
Hardened ApplicationSet Guard Patch
spec:
syncPolicy:
preserveResourcesOnDeletion: true
template:
spec:
syncPolicy:
syncOptions:
- ServerSideApply=true
- PrunePropagationPolicy=foreground
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 3m
Next Steps (Approval Required)
Reply
"Apply GitOps safety patches" to upgrade policy/v1beta1 → policy/v1, protect stateful resources against auto-prune, and generate a git revert rollback runbook.
Connects securely to your tools. The creator never sees your data.
About this skill
Prevent GitOps Sync Disasters & Broken Kubernetes Minor Upgrades
ArgoCD & Helm Upgrade Safety Gate equips your AI coding agent with a strictly read-only Python static analyzer (scripts/check_gitops_helm.py) and Kubernetes 1.22–1.36+ upgrade playbooks. Scan your ArgoCD Application, ApplicationSet, Helm Chart.yaml, values*.yaml, and templates before merging to main—and get a clear GO / CONDITIONAL-GO / NO-GO verdict with copy-paste hardened manifests.
What It Blocks (9 GitOps & Helm Outage Rules)
GITOPS-001(Critical): ArgoCDautomatedsync withprune: trueon stateful workloads (StatefulSet,PVC, database charts) withoutPrune=false/Delete=falseprotection.GITOPS-002(Critical): Deprecated/removed Kubernetes APIs & features across K8s 1.22–1.36+ (extensions/v1beta1,networking.k8s.io/v1beta1,policy/v1beta1,batch/v1beta1,autoscaling/v2beta1/v2beta2,apiextensions.k8s.io/v1beta1,flowcontrol.apiserver.k8s.io/v1beta*, plus 1.33–1.36+gitReporemoval,Endpoints→EndpointSlice,PreferClose→PreferSameZone,cgroup v2, andcgroupDriverchecks).GITOPS-003(High): Unpinned ArgoCDtargetRevision(HEAD,main,master,*, floating ranges) in production specs.GITOPS-004(High): Floating HelmChart.yamldependency versions or missingChart.lock.GITOPS-005(High):ApplicationSetusingautomated.prune: truewithoutpreserveResourcesOnDeletion: true(a single generator error can delete every cluster's apps!).GITOPS-006(High): MissingServerSideApply=truefor large CRDs or missingsync-wave/helm.sh/hookordering on migration Jobs.GITOPS-007–009(Medium): Missingretry:/ HPAignoreDifferences(causes OutOfSync thrashing), plaintext secrets invalues.yaml(auto-redacted as[REDACTED]), and missingPodDisruptionBudget/ rollingUpdate strategy.
How to Use
Ask your AI agent before bumping Helm charts or upgrading an EKS/GKE/AKS cluster:
- "Run an ArgoCD & Helm upgrade safety gate on
gitops/andcharts/before our K8s 1.36 upgrade." - "Check our
ApplicationSetand stateful ArgoCD apps for prune-wipe risks and removedv1beta1APIs."
Or run the read-only analyzer directly:
python3 scripts/check_gitops_helm.py --path . --format markdown
What's Inside (21 Files)
SKILL.md— Deterministic 5-step GitOps gate workflow withGO/CONDITIONAL-GO/NO-GOverdictscripts/check_gitops_helm.py— Pure Python 3 stdlib analyzer (--fail-on-nogoCI gate, JSON/Markdown output, secret redaction)references/— ArgoCD sync safety guide, Helm CRD & K8s 1.22–1.36+ API/feature deprecation checklist, and complete 9-rule catalogtemplates/&examples/— Upgrade gate review card, hardened ArgoCDApplicationpatch, and worked EKS upgrade audittests/— Risky & safe GitOps/Helm fixtures + runnable unit tests
Security & Privacy Guarantee
- 100% read-only & offline — never executes
argocd,helm, orkubectl; zero kubeconfig/network/env access; skips.env*and key files.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.
Static analysis of ArgoCD Application/ApplicationSet YAML and Helm Chart/values/template files; does not connect to a live Kubernetes or ArgoCD API server.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 2 days ago
- Software
Python 3.9+ (stdlib only)
Git
Permissions
Bundled analyzer is 100% offline and read-only; skips .env, kubeconfig, and key files. Write Files is only used after explicit user approval to patch GitOps/Helm manifests.