Skip to content
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

Bump crossplane-runtime and build submodule #3183

Merged
merged 4 commits into from
Jul 15, 2022
Merged

Conversation

negz
Copy link
Member

@negz negz commented Jul 14, 2022

Description of your changes

I believe this will get us to sub 2 mins to install the "big three" jet providers (~1,800 CRDs).

Note that the xpv1.Reference type changed in the latest crossplane-runtime to include a Policy field. We don't use this field in core Crossplane so I've replaced our handful of xpv1.Reference uses with local structs. These reference structs are simple enough that it seemed better to define our own than to depend on (and have to name!) a new kind of reference in crossplane-runtime.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

I've successfully deployed the "getting started with GCP" configuration from the https://crossplane.io documentation (with composition revisions enabled).

@negz negz requested a review from jbw976 July 14, 2022 00:39
@negz
Copy link
Member Author

negz commented Jul 14, 2022

CC @avalanche123

@negz negz marked this pull request as draft July 14, 2022 00:45
@negz
Copy link
Member Author

negz commented Jul 14, 2022

Setting this to draft - looks like the below PR updated some reference types to add a policy field. We use those reference types in some places in core that won't honor the policy. I don't think we can use these types in core.

https://github.com/crossplane/crossplane-runtime/pull/328/files#diff-0d8ebf4c1879297c0b02781d58ee25833e3e21e993939eda922e3ef49a7e417cR120

@MisterMX
Copy link
Contributor

Can we also include upbound/build#192 once its merged?

@negz
Copy link
Member Author

negz commented Jul 14, 2022

Can we also include upbound/build#192 once its merged?

Yes, will do.

Edit: Done.

negz added 3 commits July 14, 2022 18:01
Notably this doesn't make assumptions about BASH existing at /bin/bash,
which it does not on my NixOS machine.

Signed-off-by: Nic Cope <nicc@rk0n.org>
Notably this bumps the client-side rate-limits up fairly significantly
(to ~5x per reconcile w/ ~10x burst). This should help us get packages
with large payloads installed faster.

Signed-off-by: Nic Cope <nicc@rk0n.org>
Signed-off-by: Nic Cope <nicc@rk0n.org>
@negz negz force-pushed the bump branch 2 times, most recently from 1d2c729 to ad7ae76 Compare July 15, 2022 01:14
@negz negz requested a review from hasheddan July 15, 2022 01:45
@negz negz marked this pull request as ready for review July 15, 2022 01:46
Copy link
Member

@hasheddan hasheddan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@negz two small nitpicks (which I think were unintentional but perhaps this is an annotation I'm not familiar with) -- otherwise LGTM!

apis/apiextensions/v1/composition_types.go Outdated Show resolved Hide resolved
apis/apiextensions/v1alpha1/revision_types.go Outdated Show resolved Hide resolved
Previously we used *xpv1.Reference (from crossplane-runtime) in a few
places in this codebase. This type was recently updated to add a
'policy' field that isn't applicable to core Crossplane's uses.

Reference structs are simple enough that it seemed better to define our
own than to depend on (and have to name!) a new kind of reference in
crossplane-runtime.

Signed-off-by: Nic Cope <nicc@rk0n.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants