Skip to content

Commit

Permalink
remove support for change_filters in custom triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Szefler committed Apr 12, 2024
1 parent 3673922 commit 9867cfa
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 20 deletions.
2 changes: 0 additions & 2 deletions src/robusta/core/triggers/container_oom_killed_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def __init__(
labels_selector: str = None,
rate_limit: int = 3600,
exclude: List[Exclude] = None,
change_filters: Dict[str, List[str]] = None,
scope: ScopeParams = None
):
super().__init__(
Expand All @@ -23,7 +22,6 @@ def __init__(
labels_selector=labels_selector,
rate_limit=rate_limit,
exclude=exclude,
change_filters=change_filters,
scope=scope
)

Expand Down
8 changes: 0 additions & 8 deletions src/robusta/core/triggers/error_event_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@ def __init__(
operations: List[str] = None,
exclude: List[str] = (),
include: List[str] = (),
change_filters: Dict[str, List[str]] = None,
scope: ScopeParams = None
):
super().__init__(
name_prefix=name_prefix,
namespace_prefix=namespace_prefix,
labels_selector=labels_selector,
change_filters=change_filters,
scope=scope
)
self.rate_limit = rate_limit
Expand Down Expand Up @@ -92,7 +90,6 @@ def __init__(
rate_limit: int = 3600,
exclude: List[str] = (),
include: List[str] = (),
change_filters: Dict[str, List[str]] = None,
scope: ScopeParams = None
):
super().__init__(
Expand All @@ -103,7 +100,6 @@ def __init__(
operations=["create"],
exclude=exclude,
include=include,
change_filters=change_filters,
scope=scope,
)

Expand All @@ -117,7 +113,6 @@ def __init__(
rate_limit: int = 3600,
exclude: List[str] = (),
include: List[str] = (),
change_filters: Dict[str, List[str]] = None,
scope: ScopeParams = None
):
super().__init__(
Expand All @@ -128,7 +123,6 @@ def __init__(
operations=["update"],
exclude=exclude,
include=include,
change_filters=change_filters,
scope=scope,
)

Expand All @@ -142,7 +136,6 @@ def __init__(
rate_limit: int = 3600,
exclude: List[str] = (),
include: List[str] = (),
change_filters: Dict[str, List[str]] = None,
scope: ScopeParams = None
):
super().__init__(
Expand All @@ -153,6 +146,5 @@ def __init__(
operations=["delete"],
exclude=exclude,
include=include,
change_filters=change_filters,
scope=scope,
)
2 changes: 0 additions & 2 deletions src/robusta/core/triggers/job_failed_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@ def __init__(
name_prefix: str = None,
namespace_prefix: str = None,
labels_selector: str = None,
change_filters: Dict[str, List[str]] = None,
scope: ScopeParams = None
):
super().__init__(
name_prefix=name_prefix,
namespace_prefix=namespace_prefix,
labels_selector=labels_selector,
change_filters=change_filters,
scope=scope,
)

Expand Down
2 changes: 0 additions & 2 deletions src/robusta/core/triggers/oom_killed_trigger_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,12 @@ def __init__(
labels_selector: str = None,
rate_limit: int = 0,
exclude: List[Dict] = None,
change_filters: Dict[str, List[str]] = None,
scope: ScopeParams = None
):
super().__init__(
name_prefix=name_prefix,
namespace_prefix=namespace_prefix,
labels_selector=labels_selector,
change_filters=change_filters,
scope=scope,
)
self.rate_limit = rate_limit
Expand Down
2 changes: 0 additions & 2 deletions src/robusta/core/triggers/pod_crash_loop_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@ def __init__(
rate_limit: int = 14400,
restart_reason: str = None,
restart_count: int = 2,
change_filters: Dict[str, List[str]] = None,
scope: ScopeParams = None
):
super().__init__(
name_prefix=name_prefix,
namespace_prefix=namespace_prefix,
labels_selector=labels_selector,
change_filters=change_filters,
scope=scope,
)
self.rate_limit = rate_limit
Expand Down
2 changes: 0 additions & 2 deletions src/robusta/core/triggers/pod_image_pull_backoff.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,12 @@ def __init__(
labels_selector: str = None,
rate_limit: int = 14400,
fire_delay: int = 120,
change_filters: Dict[str, List[str]] = None,
scope: ScopeParams = None
):
super().__init__(
name_prefix=name_prefix,
namespace_prefix=namespace_prefix,
labels_selector=labels_selector,
change_filters=change_filters,
scope=scope,
)
self.rate_limit = rate_limit
Expand Down
2 changes: 0 additions & 2 deletions src/robusta/core/triggers/pod_oom_killed_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def __init__(
labels_selector: str = None,
rate_limit: int = 3600,
exclude: List[Exclude] = None,
change_filters: Dict[str, List[str]] = None,
scope: ScopeParams = None
):
super().__init__(
Expand All @@ -23,7 +22,6 @@ def __init__(
labels_selector=labels_selector,
rate_limit=rate_limit,
exclude=exclude,
change_filters=change_filters,
scope=scope,
)

Expand Down

0 comments on commit 9867cfa

Please sign in to comment.