Commit 44bd0de committed Jul 1, 2024 · 3 / 5 · Verified
1 parent 80f968f commit 44bd0de Copy full SHA for 44bd0de
File tree 5 files changed +18
-9
lines changed
5 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ kubectl apply -f composition.yaml
52
52
53
53
Now we are ready to create a compute instance:
54
54
```
55
- kubectl apply -f xr .yaml
55
+ kubectl apply -f claim .yaml
56
56
```
57
57
58
58
Since we have provided an old non-current generation instance type, we expect the function to return an error and refuse to create the instance:
@@ -63,11 +63,11 @@ kubectl describe compute.example.crossplane.io/dev-instance
63
63
64
64
Let's update the instance type to a value that is current generation (` t3.micro ` ) and try again:
65
65
```
66
- # edit xr .yaml to change instanceType to t3.micro, then:
67
- kubectl apply -f xr .yaml
66
+ # edit claim .yaml to change instanceType to t3.micro, then:
67
+ kubectl apply -f claim .yaml
68
68
```
69
69
70
- Now we should be using a current generation instance type, let's examine the XR again:
70
+ Now we should be using a current generation instance type, let's examine the claim again:
71
71
```
72
72
crossplane beta trace compute.example.crossplane.io/dev-instance -o wide
73
73
```
@@ -86,9 +86,9 @@ Now we have seen how to use credentials/secrets in your composition functions!
86
86
87
87
## Clean-up
88
88
89
- Make sure to clean-up the EC2 instance by deleting the XR :
89
+ Make sure to clean-up the EC2 instance by deleting the claim :
90
90
```
91
- kubectl delete -f xr .yaml
91
+ kubectl delete -f claim .yaml
92
92
kubectl get instance.ec2
93
93
```
94
94
Original file line number Diff line number Diff line change
1
+ apiVersion : example.crossplane.io/v1alpha1
2
+ kind : Compute
3
+ metadata :
4
+ name : dev-instance
5
+ spec :
6
+ instanceType : t1.micro
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ metadata:
5
5
spec :
6
6
compositeTypeRef :
7
7
apiVersion : example.crossplane.io/v1alpha1
8
- kind : Compute
8
+ kind : XCompute
9
9
mode : Pipeline
10
10
pipeline :
11
11
- step : create-resources
Original file line number Diff line number Diff line change 1
1
apiVersion : apiextensions.crossplane.io/v1
2
2
kind : CompositeResourceDefinition
3
3
metadata :
4
- name : computes .example.crossplane.io
4
+ name : xcomputes .example.crossplane.io
5
5
spec :
6
6
group : example.crossplane.io
7
7
names :
8
+ kind : XCompute
9
+ plural : xcomputes
10
+ claimNames :
8
11
kind : Compute
9
12
plural : computes
10
13
versions :
Original file line number Diff line number Diff line change 1
1
apiVersion : example.crossplane.io/v1alpha1
2
- kind : Compute
2
+ kind : XCompute
3
3
metadata :
4
4
name : dev-instance
5
5
spec :
You can’t perform that action at this time.
0 commit comments