-
Notifications
You must be signed in to change notification settings - Fork 2
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
Bootstrap provider-upjet-gcp-beta #1
Conversation
Signed-off-by: Fatih Türken <[email protected]>
Signed-off-by: Fatih Türken <[email protected]>
Signed-off-by: Fatih Türken <[email protected]>
/test-examples="examples/cloudplatform/v1beta1/projectserviceidentity.yaml" https://github.com/upbound/provider-upjet-gcp-beta/actions/runs/10850559058 |
/test-examples="examples/container/v1beta1/cluster.yaml" |
Signed-off-by: Fatih Türken <[email protected]>
Signed-off-by: Fatih Türken <[email protected]>
/test-examples="examples/container/v1beta1/cluster.yaml" https://github.com/upbound/provider-upjet-gcp-beta/actions/runs/10921913790 |
/test-examples="examples/container/v1beta2/cluster.yaml" https://github.com/upbound/provider-upjet-gcp-beta/actions/runs/10921916934 |
Please ignore |
/test-examples="examples/cloudplatform/v1beta1/projectserviceidentity.yaml" https://github.com/upbound/provider-upjet-gcp-beta/actions/runs/10923613747 |
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.
Thank you @turkenf for bootstrapping this repository. I left a few comments for your consideration.
build/.gitignore
Outdated
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.
It seems that the build folder was not added to the repo as a git submodule. We should not copy this folder to this new repo and add this as a git submodule. So, here we need to see also a commit ID reference for the crossplane/build. Then we need to remove this folder and add it as a submodule.
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.
Done.
cmd/provider/monolith/zz_main.go
Outdated
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.
Because of dropping the monolith support, what about not generating the monolith provider?
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.
Would we still generate monolith provider when we wanted to provide an easy-to-install provider image, as in crossplane-contrib/provider-upjet-azure#816 (comment)?
oldSingletonListAPIs string | ||
) | ||
|
||
var skipList = []string{ |
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.
I am not sure this comment but do we need still this list?
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.
I thought that having this list copied from provider-upjet-gcp might future-proof against potential problems while adding new resources.
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.
Yeah, that's why I didn't remove it.
docs/family/Configuration.md
Outdated
|
||
# Configuration | ||
|
||
## Install the provider-family-gcp |
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 we update this provider-family-gcp
to provider-family-gcp-beta
?
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.
Done.
docs/family/Development.md
Outdated
|
||
# Building the Official Provider Family Images Locally | ||
|
||
1. Check out the provider repo, crossplane-contrib/provider-upjet-gcp, and go to the project |
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.
1. Check out the provider repo, crossplane-contrib/provider-upjet-gcp, and go to the project | |
1. Check out the provider repo, upbound/provider-upjet-gcp-beta, and go to the project |
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 the development guide.
docs/family/Development.md
Outdated
# Building the Official Provider Family Images Locally | ||
|
||
1. Check out the provider repo, crossplane-contrib/provider-upjet-gcp, and go to the project | ||
directory on your local machine. |
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.
Will this publish in marketplace? In this situation, because of this repo is private, we may consider publishing this doc.
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.
I guess you mean not publishing; if this is the case, you are right. We should not publish this guide due to this is a private repo. Removed the guide, otherwise, I can add.
docs/family/Quickstart.md
Outdated
|
||
# Quickstart | ||
|
||
This guide walks through the process to install Upbound Universal Crossplane and install the GCP official provider-family. |
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.
This guide walks through the process to install Upbound Universal Crossplane and install the GCP official provider-family. | |
This guide walks through the process to install Upbound Universal Crossplane and install the GCP-beta official provider-family. |
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.
Done.
Thanks @turkenf. I've replied to some of Sergen's comments above. LGTM. |
Signed-off-by: Fatih Türken <[email protected]>
Signed-off-by: Fatih Türken <[email protected]>
/test-examples="examples/cloudplatform/v1beta1/projectserviceidentity.yaml" |
/test-examples="examples/container/v1beta2/cluster.yaml" |
/test-examples="examples/container/v1beta1/cluster.yaml" |
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.
Let's move ahead and fix issues, if any, as they come up.
Description of your changes
This PR bootstraps
provider-upjet-gcp-beta
. By copyingprovider-upjet-gcp
from this commit, and removingprovider-upjet-gcp
related folders, files (apis, examples, providers, crds ...). The required configurations were set according to provider-upjet-gcp-beta/provider-gcp-beta. This provider was generated from version 6.2.0 of terraform provider google-beta.The following resources have also been added to this PR:
ProjectServiceIdentity.cloudplatform.gcp-beta.upbound.io/v1beta1
Cluster.container.gcp-beta.upbound.io/v1beta1
=> Due to the update loop, a custom-diff function has been added for thetpu_config.#
field.Cluster.container.gcp-beta.upbound.io/v1beta2
I have:
make reviewable
to ensure this PR is ready for review.Addedbackport release-x.y
labels to auto-backport this PR, as appropriate.How has this code been tested
Manually tested with local
make run
Uptest run: https://github.com/upbound/provider-upjet-gcp-beta/actions/runs/10850559058