-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathoperation.yaml
More file actions
33 lines (33 loc) · 969 Bytes
/
operation.yaml
File metadata and controls
33 lines (33 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
apiVersion: ops.crossplane.io/v1alpha1
kind: Operation
metadata:
name: update-user-validation-for-critical-xr-once
spec:
spec:
mode: Pipeline
pipeline:
- step: user-validation
functionRef:
name: function-msgraph
input:
apiVersion: msgraph.fn.crossplane.io/v1alpha1
kind: Input
queryType: UserValidation
# Replace these with actual users in your directory
users:
- "admin@example.onmicrosoft.com"
- "user@example.onmicrosoft.com"
- "yury@upbound.io"
target: "status.validatedUsers"
credentials:
- name: azure-creds
source: Secret
secretRef:
namespace: crossplane-system
name: azure-account-creds
requirements:
requiredResources:
- requirementName: ops.crossplane.io/watched-resource
apiVersion: example.crossplane.io/v1
kind: XR
name: example-xr