Skip to content

Commit bb454e8

Browse files
committed
Add Operations to "What's new" page.
Signed-off-by: Nic Cope <[email protected]>
1 parent bfff85f commit bb454e8

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

content/master/whats-new/_index.md

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ description: Learn what's new in the Crossplane v2 preview
66
**Crossplane v2 makes Crossplane more useful, more intuitive, and less
77
opinionated.**
88

9-
Crossplane v2 makes three major changes:
9+
Crossplane v2 makes four major changes:
1010

1111
* **Composite resources are now namespaced**
1212
* **Managed resources are now namespaced**
1313
* **Composition supports any Kubernetes resource**
14+
* **Operations enable operational workflows**
1415

1516
**Crossplane v2 is better suited to building control planes for applications,
1617
not just infrastructure.** It removes the need for awkward abstractions like
@@ -214,6 +215,48 @@ resources like MRs or XRs. Read
214215
to learn how to grant Crossplane access.
215216
{{</hint>}}
216217

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+
217260
## Backward compatibility
218261

219262
Crossplane v2 makes the following breaking changes:

utils/vale/styles/Crossplane/spelling-exceptions.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,5 @@ UpperCamelCased
5656
user-defined
5757
v2
5858
version-specific
59+
Job.
5960
backporting

0 commit comments

Comments
 (0)