Skip to content

Commit 3ffd351

Browse files
committed
feat: upgrade crossplane kcl function to v0.0.2
Signed-off-by: peefy <[email protected]>
1 parent 79280da commit 3ffd351

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed
+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[package]
22
name = "crossplane-xnetwork-kcl-function"
3-
edition = "0.0.1"
4-
version = "0.0.1"
3+
version = "0.0.2"
54

crossplane-xnetwork-kcl-function/main.k

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
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
24
network_id_labels = {"networks.meta.fn.crossplane.io/network-id" = id} if id else {}
35
vpc = {
46
apiVersion = "ec2.aws.upbound.io/v1beta1"
57
kind = "VPC"
8+
metadata.name = "vpc"
69
metadata.labels: network_id_labels
710
spec.forProvider = {
811
region = "eu-west-1"
@@ -14,6 +17,7 @@ vpc = {
1417
gateway = {
1518
apiVersion = "ec2.aws.upbound.io/v1beta1"
1619
kind = "InternetGateway"
20+
metadata.name = "gateway"
1721
metadata.labels: network_id_labels
1822
spec.forProvider = {
1923
region = "eu-west-1"

0 commit comments

Comments
 (0)