Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --exclude to gator CLI #3297

Closed
malexander2012 opened this issue Mar 5, 2024 · 1 comment
Closed

Add --exclude to gator CLI #3297

malexander2012 opened this issue Mar 5, 2024 · 1 comment
Labels
enhancement New feature or request stale

Comments

@malexander2012
Copy link

Describe the solution you'd like
when using the gator cli, I wish there was a way to exclude files as a command argument. I was thinking something like this:

gator test -f opa/general --exclude kustomization.yaml

This would prevent WARNINGS that we receive:

2024/03/05 11:03:33 WARNING - Resource named "" (from file: "opa/general/xxx/kustomization.yaml") is already defined in file: "opa/general/kustomization.yaml"

Environment:

  • Gatekeeper version: gator version 3.15.0 (Feature State: beta), opa/v0.60.0, frameworks/v0.0.0-20240110234408-18fa1fc7dc06
  • Kubernetes version: (use kubectl version): Client Version: v1.24.13-eks-0a21954
@malexander2012 malexander2012 added the enhancement New feature or request label Mar 5, 2024
Copy link

stale bot commented May 4, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 4, 2024
@stale stale bot closed this as completed May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

No branches or pull requests

1 participant