Skip to content

Commit

Permalink
Promote Usage API to beta
Browse files Browse the repository at this point in the history
Signed-off-by: Hasan Turken <turkenh@gmail.com>
  • Loading branch information
turkenh committed Dec 13, 2024
1 parent 470250d commit bfdd8f3
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions content/master/concepts/usages.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: Usages
weight: 95
state: alpha
state: beta
alphaVersion: "1.14"
betaVersion: "1.19"
description: "Usage defines a usage relationship for Managed Resources or Composites"
---

Expand All @@ -19,12 +20,12 @@ first use case and the section [Usage for Deletion Ordering](#usage-for-deletion
for the second one.

## Enable usages
Usages are an alpha feature. Alpha features aren't enabled by default.
Usages are a beta feature. Beta features are enabled by default.

Enable `Usage` support by
Disable `Usage` support by
[changing the Crossplane pod setting]({{<ref "./pods#change-pod-settings">}})
and enabling
{{<hover label="deployment" line="12">}}--enable-usages{{</hover>}}
and setting
{{<hover label="deployment" line="12">}}--enable-usages=false{{</hover>}}
argument.

```yaml {label="deployment",copy-lines="12"}
Expand All @@ -39,7 +40,7 @@ spec:
- args:
- core
- start
- --enable-usages
- --enable-usages=false
```
{{<hint "tip" >}}
Expand Down Expand Up @@ -85,7 +86,7 @@ any deletion request with the
{{<hover label="protect" line="11">}}reason{{</hover>}} defined.

```yaml {label="protect"}
apiVersion: apiextensions.crossplane.io/v1alpha1
apiVersion: apiextensions.crossplane.io/v1beta1
kind: Usage
metadata:
name: protect-production-database
Expand All @@ -106,7 +107,7 @@ any deletion request before the deletion of
{{<hover label="order" line="15">}}my-prometheus-chart{{</hover>}} resource.

```yaml {label="order"}
apiVersion: apiextensions.crossplane.io/v1alpha1
apiVersion: apiextensions.crossplane.io/v1beta1
kind: Usage
metadata:
name: release-uses-cluster
Expand All @@ -132,7 +133,7 @@ This enables using {{<hover label="selectors" line="12">}}labels{{</hover>}} or
to define resource instead of providing the resource name.

```yaml {label="selectors"}
apiVersion: apiextensions.crossplane.io/v1alpha1
apiVersion: apiextensions.crossplane.io/v1beta1
kind: Usage
metadata:
name: release-uses-cluster
Expand Down Expand Up @@ -166,7 +167,7 @@ random resource is selected from the list of matched resources.
{{< /hint >}}

```yaml {label="selectors-resolved"}
apiVersion: apiextensions.crossplane.io/v1alpha1
apiVersion: apiextensions.crossplane.io/v1beta1
kind: Usage
metadata:
name: release-uses-cluster
Expand Down Expand Up @@ -197,7 +198,7 @@ Replaying the blocked deletion is possible by setting the
{{<hover label="replay" line="6">}}replayDeletion{{</hover>}} field to `true`.

```yaml {label="replay"}
apiVersion: apiextensions.crossplane.io/v1alpha1
apiVersion: apiextensions.crossplane.io/v1beta1
kind: Usage
metadata:
name: release-uses-cluster
Expand Down Expand Up @@ -261,7 +262,7 @@ spec:
# Removed for brevity
- name: release-uses-cluster
base:
apiVersion: apiextensions.crossplane.io/v1alpha1
apiVersion: apiextensions.crossplane.io/v1beta1
kind: Usage
spec:
replayDeletion: true
Expand Down

0 comments on commit bfdd8f3

Please sign in to comment.