Skip to content

Instantly share code, notes, and snippets.

View rayjasson98's full-sized avatar

Ray Jasson rayjasson98

  • 13:11 (UTC +08:00)
View GitHub Profile
@rayjasson98
rayjasson98 / filter_argocd_apps_by_repo_gitops.py
Last active April 9, 2026 04:11
Filter Argo CD Application resources whose spec.source.repoURL includes the substring "gitops".
#!/usr/bin/env python3
from __future__ import annotations
from pathlib import Path
import argparse
import yaml
ALLOWED_METADATA_KEYS = ("finalizers", "name", "namespace")
ALLOWED_SPEC_KEYS = ("destination", "project", "source", "syncPolicy")