Merge pull request #463 from nabuskey/bugfix/add-example-existing

add an example for claiming existing xr
This commit is contained in:
Jared Watts 2023-06-13 17:16:05 +02:00 committed by GitHub
commit 54bc9d37e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View File

@ -1288,6 +1288,18 @@ an existing Composite Resource as long as its a type of XR that offers a claim
and no one else has already claimed it. To do so:
1. Set the `spec.resourceRef` of your claim to reference the existing XR.
```yaml
apiVersion: database.example.org/v1alpha1
kind: PostgreSQLInstance
metadata:
name: example
namespace: default
spec:
resourceRef:
apiVersion: database.example.org/v1alpha1
kind: XPostgreSQLInstance
name: example-d4lmv
```
1. Make sure the rest of your claim's spec fields match the XR's.
If your claim's spec fields don't match the XR's Crossplane will still claim it

View File

@ -1288,6 +1288,18 @@ an existing Composite Resource as long as its a type of XR that offers a claim
and no one else has already claimed it. To do so:
1. Set the `spec.resourceRef` of your claim to reference the existing XR.
```yaml
apiVersion: database.example.org/v1alpha1
kind: PostgreSQLInstance
metadata:
name: example
namespace: default
spec:
resourceRef:
apiVersion: database.example.org/v1alpha1
kind: XPostgreSQLInstance
name: example-d4lmv
```
1. Make sure the rest of your claim's spec fields match the XR's.
If your claim's spec fields don't match the XR's Crossplane will still claim it