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

[feature] Add support for ignoring namespaces #139

Merged
merged 1 commit into from
Aug 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 71 additions & 19 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -1,123 +1,175 @@
## Resources you want to watch
resources:
- name: pod # Name of the resources e.g pod, deployment, ingress, etc.
namespaces: # List of namespaces, "all" will watch all the namespaces
- all
events: # List of lifecycle events you want to receive, e.g create, update, delete, error OR all
namespaces: # List of namespaces, "all" will watch all the namespaces
include:
- all
ignore: # List of namespaces to be ignored (omitempty), used only with include: all
- # example : include [all], ignore [x,y,z]
events: # List of lifecycle events you want to receive, e.g create, update, delete, error OR all
- create
- delete
- error
- name: service
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- error
- name: deployment
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- update
- delete
- update
- error
- name: statefulset
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- update
- delete
- error
- name: ingress
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- error
- name: node
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- error
- name: namespace
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- error
- name: persistentvolume
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- error
- name: persistentvolumeclaim
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- error
- name: secret
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- error
- name: configmap
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- error
- name: daemonset
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- error
- name: job
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- update
- delete
- error
- name: role
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- error
- name: rolebinding
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- error
- name: clusterrolebindings
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- error
- name: clusterrolebinding
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
Expand Down
86 changes: 67 additions & 19 deletions deploy-all-in-one-tls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,110 +10,155 @@ data:
config.yaml: |
## Resources you want to watch
resources:
- name: pod # Name of the resources e.g pod, deployment, ingress, etc. (Resource name must be in singular form)
namespaces: # List of namespaces, "all" will watch all the namespaces
- all
events: # List of lifecycle events you want to receive, e.g create, update, delete OR all
namespaces:
include:
- all
ignore: # List of namespaces to be ignored (omitempty), used only with include: all
- # example : include [all], ignore [x,y,z]
events: # List of lifecycle events you want to receive, e.g create, update, delete, error OR all
- create
- delete
- error
- name: service
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- error
- name: deployment
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- update
- delete
- error
- name: statefulset
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- update
- delete
- error
- name: ingress
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- error
- name: node
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- error
- name: namespace
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- error
- name: persistentvolume
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- error
- name: persistentvolumeclaim
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- error
- name: secret
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- error
- name: configmap
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- error
- name: daemonset
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- update
- error
- name: job
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- update
- delete
- error
- name: role
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
- error
- name: rolebinding
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
Expand All @@ -127,7 +172,10 @@ data:
- error
- name: clusterrolebinding
namespaces:
- all
include:
- all
ignore:
-
events:
- create
- delete
Expand Down
Loading