-
Notifications
You must be signed in to change notification settings - Fork 2
Switch to New Upbound DevEx #97
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
Conversation
Signed-off-by: Yury Tsarev <[email protected]>
Signed-off-by: Yury Tsarev <[email protected]>
Signed-off-by: Yury Tsarev <[email protected]>
Signed-off-by: Yury Tsarev <[email protected]>
Signed-off-by: Yury Tsarev <[email protected]>
examples/network-xr.yaml
Outdated
name: ref-azure-network | ||
spec: | ||
parameters: | ||
id: ref-azure-network-from-xr | ||
region: westus | ||
deletionPolicy: Delete |
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.
You don't need this when using up composition render when you add the --xrd we will extract the defaults for the fields
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.
Should --xrd
be the default? :)
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.
ah, scratch that, it is an explicit path
--xrd=PATH A YAML file specifying the
CompositeResourceDefinition (XRD) to validate
the XR against.
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.
Readme and sample XR updated
functions/xnetwork/main.k
Outdated
networkv1beta2.VirtualNetwork { | ||
metadata = _metadata("${params.id}-vnet") | ||
spec = _add_common_spec_fields(networkv1beta2.NetworkAzureUpboundIoV1beta2VirtualNetworkSpec { | ||
forProvider = networkv1beta2.NetworkAzureUpboundIoV1beta2VirtualNetworkSpecForProvider { |
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.
You don't need the typed for every sub property it's enough on the root of the resource - If you using : the lsp will not add these by default
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.
Removed redundant explicit embedded field typing 👍
Signed-off-by: Yury Tsarev <[email protected]>
* Add Composition Test workflows * Replace e2e test workflow with up cli based one Signed-off-by: Yury Tsarev <[email protected]>
Signed-off-by: Yury Tsarev <[email protected]>
Signed-off-by: Yury Tsarev <[email protected]>
Signed-off-by: Yury Tsarev <[email protected]>
Signed-off-by: Yury Tsarev <[email protected]>
Signed-off-by: Yury Tsarev <[email protected]>
Signed-off-by: Yury Tsarev <[email protected]>
Also simplify sample XR Signed-off-by: Yury Tsarev <[email protected]>
Signed-off-by: Yury Tsarev <[email protected]>
Description of your changes
Switched this configuration to new Upbound DevEx including Project, CompositiionTest and E2ETest API.
Highlights:
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
Composition tests E2E tests run with label were tested in ytsarev#1