You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user-guide/resource-watcher.md
+13-7Lines changed: 13 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -66,23 +66,29 @@ Here, you can select the exact Kubernetes resource(s) you wish to track for chan
66
66
67
67
* Choose the event type your watcher should listen to: `Created`, `Updated`, `Deleted`.
68
68
69
-
* Enter a [CEL expression](https://github.com/google/cel-spec/blob/master/doc/langdef.md) to catch a specific change in the resource's manifest.
* Enter a [CEL expression](https://github.com/google/cel-spec/blob/master/doc/langdef.md) to catch a specific change in the resource's manifest.
72
76
73
77
{% hint style="info" %}
74
-
***If Resource Is Created** - Use 'DEVTRON_FINAL_MANIFEST'
75
-
***If Resource Is Updated** - Both 'DEVTRON_INITIAL_MANIFEST' and 'DEVTRON_FINAL_MANIFEST' can exist
76
-
***If Resource Is Deleted** - Use 'DEVTRON_FINAL_MANIFEST'
78
+
***If resource is created** - Use 'DEVTRON_FINAL_MANIFEST'
79
+
***If resource is updated** - Both 'DEVTRON_INITIAL_MANIFEST' and 'DEVTRON_FINAL_MANIFEST' can exist
80
+
***If resource is deleted** - Use 'DEVTRON_INITIAL_MANIFEST'
Here, you can choose a job that should trigger if your watcher intercepts any changes.
82
88
83
89

84
90
85
-
* Choose a job pipeline from the **Run Devtron Job pipeline** dropdown.
91
+
* Choose a job pipeline from the **Run Devtron Job pipeline** dropdown. If a pipeline is not selected, the watcher won't intercept matching resource changes even if your defined conditions are met.
86
92
87
93
* Select the environment in which the job should run. It can either be `devtron-ci` or the source environment (the intercepted namespace where the event has occurred).
88
94
@@ -158,7 +164,7 @@ A live streaming sports application experiences a surge in viewers during a majo
158
164
159
165
1. Create a watcher named 'Live Stream Scaling Alert'.
160
166
2. Monitor updates to HPA resource in the application's namespace.
161
-
3. When `currentReplicas` count reaches `MaxReplicas`, trigger a job that contains the script to increase the replica count.
167
+
3. When `currentReplicas` count reaches `maxReplicas`, trigger a job that contains the script to increase the replica count.
0 commit comments