dag-andersen / argocd-diff-preview

Tool for rendering manifest changes on pull requests.
Apache License 2.0
175 stars 10 forks source link

Add label selectors #45

Closed dag-andersen closed 2 months ago

dag-andersen commented 2 months ago

Rendering the manifests of all applications in the repository for each pull request can be slow. By default, the tool renders all applications in the repository.

Currently, you can configure the tool to ignore specific applications by adding the annotation argocd-diff-preview/ignore: "true" to the application's manifest. Alternatively, you can instruct the tool to render only those applications whose filenames match a specific regex pattern by using the --file-regex option.

A more flexible method of selecting applications would be beneficial for this tool. Since selecting resources based on labels is common in the Kubernetes world, this functionality would feel familiar to most users.

Issue: https://github.com/dag-andersen/argocd-diff-preview/issues/43