Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Support skipping dependency resolution of installed Crossplane packages in target local.xpkg.init #241

Merged
merged 2 commits into from
Oct 2, 2023

Conversation

ulucinar
Copy link
Contributor

@ulucinar ulucinar commented Sep 29, 2023

Description of your changes

In the context of official provider testing, we would like to be able to run uptest using the family providers instead of the monolithic providers to avoid the CRD scaling issues we've been observing with them. Each resource provider in a provider family declares a package dependency to the family's config provider and the Crossplane RBAC manager is responsible for assigning the required RBAC rules on the config provider resources for the ClusterRole assigned to the family resource provider's K8s ServiceAccount. However, the RBAC manager refuses to do so if the reg/org of the resource provider's package does not match the config provider package's.

This PR proposes to make the dependency installation optional for the local.xpkg.init target so that while running uptests, we can manually install the config provider from the cache.

I have:

  • Read and followed Upbound'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, as appropriate.

How has this code been tested

Tested against upbound/provider-aws in PR crossplane-contrib/provider-upjet-aws#903.

…es in target local.xpkg.init

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
makelib/local.xpkg.mk Outdated Show resolved Hide resolved
…pkg.deploy.provider.%

This is because the package's image is specified in the ControllerConfig
it refers to.

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
@ulucinar ulucinar merged commit 29c0dfa into upbound:master Oct 2, 2023
1 check passed
@ulucinar ulucinar deleted the xpkg-skip-dep branch October 2, 2023 16:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants