-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce kcl-version of composition #89
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add for testing a crossplane render different between go-tpl and kcl
880307e
to
b17130a
Compare
Signed-off-by: Tobias Kässer <[email protected]>
|
Signed-off-by: Tobias Kässer <[email protected]>
/test-examples |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
10:14:10 [ OK ] Generated kcl composition
10:14:14 [ .. ] Testing a67f9 composition
no test files
10:14:15 [ OK ] Success testing ".cache/render/a67f9.yaml"!
10:14:15 [ .. ] Testing 21a9b composition
no test files
10:14:15 [ OK ] Success testing ".cache/render/21a9b.yaml"!
it looks like there are no tests around
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make e2e
10:43:41 [ .. ] installing up v0.34.0
10:43:46 [ OK ] installing up v0.34.0
10:43:46 [ .. ] Generating kcl composition
10:43:47 [ OK ] Generated kcl composition
10:43:48 [ .. ] Building package configuration-aws-network-v0.18.0-3.g9695329.xpkg for linux_arm64
up: error: xpkg.buildCmd.Run(): failed to build package: failed to parse package: {path:/Users/xnull/upbound/configuration-aws-network/.cache/render/21a9b.yaml position:4096}: no kind "XNetwork" is registered for version "aws.platform.upbound.io/v1alpha1" in scheme "pkg/runtime/scheme.go:100"
10:43:49 [FAIL]
make[3]: *** [build/makelib/xpkg.mk:102: xpkg.build.configuration-aws-network] Error 1
make[2]: *** [build/makelib/common.mk:337: do.build.artifacts.linux_arm64] Error 2
make[1]: *** [build/makelib/common.mk:347: build.all] Error 2
make: *** [build/makelib/common.mk:353: build] Error 2
running make e2e
after running render.test
looks like it needs some patch exclusions
diff --git a/Makefile b/Makefile
index 9d3ecae..60602fc 100644
--- a/Makefile
+++ b/Makefile
@@ -61,7 +61,7 @@ CROSSPLANE_CLI_VERSION = v1.17.1
# ====================================================================================
# Setup XPKG
XPKG_DIR = $(shell pwd)
-XPKG_IGNORE = .github/workflows/*.yaml,.github/workflows/*.yml,examples/*.yaml,.work/uptest-datasource.yaml
+XPKG_IGNORE = .github/workflows/*.yaml,.github/workflows/*.yml,examples/*.yaml,.work/uptest-datasource.yaml,.cache/render/*
XPKG_REG_ORGS ?= xpkg.upbound.io/upbound
# NOTE(hasheddan): skip promoting on xpkg.upbound.io as channel tags are
# inferred. solved the cache render exclusion ( can't comment inline in github as it was a stable line, so have to use old school diff :) ) |
198b4c8
to
c61aaa1
Compare
Signed-off-by: Tobias Kässer <[email protected]>
Addressed all the comments, thanks for the feedback! |
/test-examples |
Description of your changes
This PR adds a kcl-version of the network-composition.
I also decided to upgrade uptest to the most recent version as it helped me debugging a lot.
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR, as appropriate.How has this code been tested
I ran following targets:
make check-examples
make render
make e2e