File tree 2 files changed +6
-3
lines changed
crossplane-xnetwork-kcl-function
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
[package]
2
2
name = " crossplane-xnetwork-kcl-function"
3
- edition = " 0.0.1"
4
- version = " 0.0.1"
3
+ version = " 0.0.2"
5
4
Original file line number Diff line number Diff line change 1
- id = option("params")?.oxr?.id or ""
1
+ # Get the XR spec fields
2
+ id = option("params")?.oxr?.spec.id or ""
3
+ # Render XR to crossplane managed resources
2
4
network_id_labels = {"networks.meta.fn.crossplane.io/network-id" = id} if id else {}
3
5
vpc = {
4
6
apiVersion = "ec2.aws.upbound.io/v1beta1"
5
7
kind = "VPC"
8
+ metadata.name = "vpc"
6
9
metadata.labels: network_id_labels
7
10
spec.forProvider = {
8
11
region = "eu-west-1"
@@ -14,6 +17,7 @@ vpc = {
14
17
gateway = {
15
18
apiVersion = "ec2.aws.upbound.io/v1beta1"
16
19
kind = "InternetGateway"
20
+ metadata.name = "gateway"
17
21
metadata.labels: network_id_labels
18
22
spec.forProvider = {
19
23
region = "eu-west-1"
You can’t perform that action at this time.
0 commit comments