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: README.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -366,8 +366,23 @@ identity:
366
366
```
367
367
368
368
## Operations support
369
-
function-msgraph support every kind of [operations](https://docs.crossplane.io/latest/operations/operation/), however CronOperations and WatchOperations are the most useful in context of graph queries.
370
-
Check [examples](./example/operations/)
369
+
function-msgraph support every kind of [operations](https://docs.crossplane.io/latest/operations/operation/) but it only allows targeting Composite Resources
370
+
Function omits the input.skipQueryWhenTargetHasData parameter when running in operation mode to enforce compability with Cron/Watch modes.
371
+
CronOperations and WatchOperations are the most useful in context of graph queries, please check [examples](./example/operations/).
372
+
373
+
### Operations results
374
+
function-msgraph operations result in two annotations set on the XR:
function-msgraph/last-execution sets RFC3339 timestamp informing about last succesful Operation run.
385
+
function-msgraph/last-execution-query-drift-detected sets a boolean if there's a drift between input.target field's value and query result, which is used by function-msgraph in Composition context for self-healing. skipQueryWhenTargetHasData input parameter is ommited when drift detected annotation is set which leads to XR update and after that next Operation run sets the annotation back to "false".
371
386
372
387
### CronOperation
373
388
CronOperation may be used to forcefully update XR's status in a predefined interval.
@@ -401,7 +416,6 @@ spec:
401
416
- "user@example.onmicrosoft.com"
402
417
- "yury@upbound.io"
403
418
target: "status.validatedUsers"
404
-
skipQueryWhenTargetHasData: false # Always query even if data is in status
405
419
credentials:
406
420
- name: azure-creds
407
421
source: Secret
@@ -447,7 +461,6 @@ spec:
447
461
- "user@example.onmicrosoft.com"
448
462
- "yury@upbound.io"
449
463
target: "status.validatedUsers"
450
-
skipQueryWhenTargetHasData: false # Always query even if data is in status
0 commit comments