Skip to content

Replace resource kind exclusion with resource ID and supporting regex#6

Open
almariah wants to merge 1 commit intoyanc0:masterfrom
almariah:replace-exclude-kind-with-resources-id
Open

Replace resource kind exclusion with resource ID and supporting regex#6
almariah wants to merge 1 commit intoyanc0:masterfrom
almariah:replace-exclude-kind-with-resources-id

Conversation

@almariah
Copy link
Contributor

This PR will replace the mechanism of exclude. The current behaviour is to exclude only resource kind. For more flexibility and control of what could be excluded, the behaviour has been changed in this PR to support resource ID (namespace/kind/name or /kind/name). Further you can use resource full name or regular expression.

Examples:

  • to exclude any namespace resource: /namespace/.*
  • to exclude secret sec in namespace deafult: deafult/secret/sec
  • to exclude any config map: .*/configmap/.*

@almariah
Copy link
Contributor Author

@yanc0

@yanc0
Copy link
Owner

yanc0 commented Dec 2, 2020

Hi @almariah , many thanks. I will review your PR as soon as soon as I can possibly do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants