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
A Crossplane composition function that lets you compose resources using Python.
5
+
A Crossplane composition function that lets you compose resources and run operational tasks using Python.
6
6
7
-
Provide a Python script that defines a `compose` function with this signature:
7
+
## Composition Functions
8
+
9
+
For traditional resource composition, provide a Python script that defines a `compose` function with this signature:
8
10
9
11
```python
10
12
from crossplane.function.proto.v1 import run_function_pb2 as fnv1
@@ -60,6 +62,61 @@ spec:
60
62
rsp.desired.resources["bucket"].ready = True
61
63
```
62
64
65
+
## Operations Functions (Alpha)
66
+
67
+
`function-python` also supports Crossplane Operations, which are one-time operational tasks that run to completion (like Kubernetes Jobs). For operations, provide a Python script that defines an `operate` function with this signature:
68
+
69
+
```python
70
+
from crossplane.function.proto.v1 import run_function_pb2 as fnv1
0 commit comments