robusta-dev / kubewatch

Watch k8s events and trigger Handlers
Apache License 2.0
630 stars 87 forks source link

config: add ignored fields #89

Open FlameFactory opened 1 month ago

FlameFactory commented 1 month ago

Specify fields to skip sending object update. Will be applied to all objects. If after removal of these fields from k8s object all remaining fields will be equal, handler won't trigger sending update. Removing array elements is not supported. For example,

ignorefields:
  status:
  metadata:
    resourceVersion:
    managedFields:

will remove ".status", ".metadata.resourceVersion" and ".metadata.managedFields" from k8s object before comparing old & new k8s objects.