Skip to content

Commit

Permalink
Fix broken examples (#1106)
Browse files Browse the repository at this point in the history
  • Loading branch information
aantn authored Oct 9, 2023
1 parent a75f7c8 commit 77461e5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions docs/configuration/sinks/slack.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ To do so in :ref:`custom playbooks <customPlaybooks>` mention the ``@username``
.. code-block::
customPlaybooks:
- actions:
triggers:
- triggers:
- on_kubernetes_warning_event:
include: ["TooManyPods"]
actions:
- create_finding:
aggregation_key: "too-many-pods-warning"
severity: HIGH
Expand Down
16 changes: 8 additions & 8 deletions docs/playbook-reference/actions/scans.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,19 @@ With or without the UI, you can configure additional scans on a :ref:`schedule <
customPlaybooks:
- triggers:
- on_schedule:
fixed_delay_repeat:
- on_schedule:
fixed_delay_repeat:
repeat: 1 # number of times to run or -1 to run forever
seconds_delay: 604800 # 1 week
actions:
- popeye_scan:
spinach: |
popeye:
actions:
- popeye_scan:
spinach: |
popeye:
excludes:
v1/pods:
- name: rx:kube-system
sinks:
- "robusta_ui_sink"
sinks:
- "robusta_ui_sink"
The results can be sent as a PDF to Slack or to the Robusta UI.

Expand Down
4 changes: 2 additions & 2 deletions docs/playbook-reference/triggers/_k8s-generic-macro.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
.. code-block:: yaml

customPlaybooks:
triggers:
- triggers:
- {{ trigger_name }}: {}
actions:
- create_finding: # (1)
Expand All @@ -41,7 +41,7 @@
.. code-block:: yaml

customPlaybooks:
triggers:
- triggers:
- {{ trigger_name }}:
name_prefix: "my-resource" # (2)
namespace_prefix: "kube-system" # (3)
Expand Down
6 changes: 3 additions & 3 deletions docs/playbook-reference/triggers/_k8s-warning-events.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
.. code-block:: yaml

customPlaybooks:
triggers:
- triggers:
- {{ trigger_name }}: {}
actions:
- create_finding: # (1)
Expand All @@ -23,7 +23,7 @@
.. code-block:: yaml

customPlaybooks:
triggers:
- triggers:
- {{ trigger_name }}:
include: ["ImagePullBackOff"] # (2)
actions:
Expand All @@ -41,7 +41,7 @@
.. code-block:: yaml

customPlaybooks:
triggers:
- triggers:
- {{ trigger_name }}:
exclude: ["NodeSysctlChange", "TooManyPods"] # (2)
actions:
Expand Down

0 comments on commit 77461e5

Please sign in to comment.