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

Generate per-service providers #194

Merged
merged 3 commits into from
Apr 27, 2023
Merged

Generate per-service providers #194

merged 3 commits into from
Apr 27, 2023

Conversation

ulucinar
Copy link
Collaborator

@ulucinar ulucinar commented Apr 25, 2023

Description of your changes

Relevant proposal: crossplane/crossplane#3939

As discussed in crossplane/crossplane#3939, this PR proposes a change to optionally generate per-service providers. If a provider maintainer opts not to generate the per-service providers, not configuring the config.Provider.MainTemplate should result in the old behavior for backwards-compatibility.

The backwards-compatibility has been demonstrated here, where the provider does not configure a per-service provider main template.

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

Tested with crossplane-contrib/provider-upjet-gcp#288 and with crossplane-contrib/provider-upjet-azuread#49 (for backwards-compatibility).

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
@ulucinar ulucinar requested a review from sergenyalcin as a code owner April 25, 2023 15:28
@ulucinar ulucinar marked this pull request as draft April 25, 2023 15:28
@ulucinar ulucinar force-pushed the families branch 3 times, most recently from 2f885da to 409f689 Compare April 25, 2023 21:23
@ulucinar ulucinar marked this pull request as ready for review April 25, 2023 21:29
Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
Copy link
Member

@turkenh turkenh left a comment

Choose a reason for hiding this comment

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

I've also successfully tested and verified both the non-breaking behavior and new functionality with crossplane-contrib/provider-upjet-azure#442

So, looking good to me, thanks @ulucinar 🙌

pkg/pipeline/run.go Outdated Show resolved Hide resolved
Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
@ulucinar ulucinar merged commit 1d0b7b0 into crossplane:main Apr 27, 2023
@ulucinar ulucinar deleted the families branch April 27, 2023 13:18
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.

2 participants