@@ -6,11 +6,12 @@ description: Learn what's new in the Crossplane v2 preview
6
6
** Crossplane v2 makes Crossplane more useful, more intuitive, and less
7
7
opinionated.**
8
8
9
- Crossplane v2 makes three major changes:
9
+ Crossplane v2 makes four major changes:
10
10
11
11
* ** Composite resources are now namespaced**
12
12
* ** Managed resources are now namespaced**
13
13
* ** Composition supports any Kubernetes resource**
14
+ * ** Operations enable operational workflows**
14
15
15
16
** Crossplane v2 is better suited to building control planes for applications,
16
17
not just infrastructure.** It removes the need for awkward abstractions like
@@ -214,6 +215,48 @@ resources like MRs or XRs. Read
214
215
to learn how to grant Crossplane access.
215
216
{{</hint>}}
216
217
218
+ # # Operations enable operational workflows
219
+
220
+ Crossplane v2 introduces Operations - a new way to run operational tasks using
221
+ function pipelines.
222
+
223
+ Operations handle tasks that don't fit the typical resource creation pattern.
224
+ Things like certificate monitoring, rolling upgrades, scheduled maintenance, or
225
+ responding to resource changes.
226
+
227
+ **Operations run function pipelines to completion, like a Kubernetes Job.**
228
+ Instead of continuously managing resources, they perform specific tasks and
229
+ report the results.
230
+
231
+ ` ` ` yaml
232
+ apiVersion: ops.crossplane.io/v1alpha1
233
+ kind: CronOperation
234
+ metadata:
235
+ name: cert-monitor
236
+ spec:
237
+ schedule: "0 6 * * *" # Daily at 6 AM
238
+ mode: Pipeline
239
+ pipeline:
240
+ - step: check-certificates
241
+ functionRef:
242
+ name: crossplane-contrib-function-python
243
+ # function checks SSL certificates and reports status
244
+ ` ` `
245
+
246
+ Operations support three modes :
247
+
248
+ * **Operation** - Run once to completion
249
+ * **CronOperation** - Run on a scheduled basis
250
+ * **WatchOperation** - Run when resources change
251
+
252
+ Operations can read existing resources and optionally change them. This enables
253
+ workflows like annotating resources with operational data, triggering
254
+ maintenance tasks, or implementing custom operational policies.
255
+
256
+ {{<hint "note">}}
257
+ Operations are an alpha feature in Crossplane v2.
258
+ {{</hint>}}
259
+
217
260
# # Backward compatibility
218
261
219
262
Crossplane v2 makes the following breaking changes :
0 commit comments