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
+54Lines changed: 54 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -339,6 +339,60 @@ servicePrincipalsRef: "spec.servicePrincipalConfig.names" # Get service princip
339
339
target: "status.servicePrincipals"
340
340
```
341
341
342
+
## Using data from EnvironmentConfig
343
+
344
+
To use data from a Crossplane `EnvironmentConfig`, first load the data into the context using [function-environment-configs](https://github.com/crossplane-contrib/function-environment-configs). This function should be in the pipeline before you use function-msgraph.
345
+
346
+
function-environment-configs loads a merged map of environment config data to `context["apiextensions.crossplane.io/environment"]` but to refer to this correctly in function-msgraph the following syntax must be used: `context.[apiextensions.crossplane.io/environment]`.
347
+
348
+
### Example:
349
+
350
+
1. First, define your Environment Config:
351
+
352
+
```yaml
353
+
apiVersion: apiextensions.crossplane.io/v1beta1
354
+
kind: EnvironmentConfig
355
+
metadata:
356
+
name: example-config
357
+
data:
358
+
entraid:
359
+
users:
360
+
- user@example.com
361
+
```
362
+
363
+
2. Load the Environment Config in to your composition pipeline:
0 commit comments