File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
workflows/openstack/sensors Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 2
2
apiVersion : argoproj.io/v1alpha1
3
3
kind : Sensor
4
4
metadata :
5
- name : neutron-event-network-segment-range
5
+ name : neutron-oslo-event
6
6
namespace : argo-events
7
7
annotations :
8
- workflows.argoproj.io/title : Add/edit Nautobot UCVNIGroup range field on Neutron network-segment-range operations
8
+ workflows.argoproj.io/title : Add/edit Nautobot objects according to Neutron events
9
9
workflows.argoproj.io/description : |+
10
10
Triggers on Events from Neutron:
11
11
@@ -21,11 +21,11 @@ spec:
21
21
name : oslo-event-type
22
22
transform :
23
23
# the event is a string-ified JSON so we need to decode it
24
- jq : " .body[\ " oslo.message\ " ] | fromjson"
24
+ jq : ' {body: ( .body["oslo.message"] | fromjson)} '
25
25
filters :
26
26
dataLogicalOperator : " and"
27
27
data :
28
- - path : " event_type"
28
+ - path : body. event_type
29
29
type : " string"
30
30
# any of the values will trigger
31
31
value :
35
35
- " subnet.create.end"
36
36
- " subnet.update.end"
37
37
- " subnet.delete.end"
38
-
39
38
template :
40
39
serviceAccountName : sensor-submit-workflow
41
40
triggers :
56
55
apiVersion : argoproj.io/v1alpha1
57
56
kind : Workflow
58
57
metadata :
59
- generateName : ironic-node-port -
58
+ generateName : neutron-oslo-event -
60
59
namespace : argo-events
61
60
spec :
62
61
# defines the parameters being replaced above
You can’t perform that action at this time.
0 commit comments