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

Bootstrap provider-upjet-gcp-beta #1

Merged
merged 7 commits into from
Sep 20, 2024
Merged

Conversation

turkenf
Copy link
Contributor

@turkenf turkenf commented Sep 12, 2024

Description of your changes

This PR bootstraps provider-upjet-gcp-beta. By copying provider-upjet-gcp from this commit, and removing provider-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 the tpu_config.# field.
  • Cluster.container.gcp-beta.upbound.io/v1beta2

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

Manually tested with local make run

status:
  atProvider:
    email: [email protected]
    id: projects/official-provider-testing/services/healthcare.googleapis.com
    member: serviceAccount:[email protected]
    project: official-provider-testing
    service: healthcare.googleapis.com
  conditions:
  - lastTransitionTime: "2024-09-12T11:40:35Z"
    reason: Available
    status: "True"
    type: Ready
  - lastTransitionTime: "2024-09-12T11:40:33Z"
    reason: ReconcileSuccess
    status: "True"
    type: Synced
  - lastTransitionTime: "2024-09-12T11:40:35Z"
    reason: Success
    status: "True"
    type: LastAsyncOperation
  - lastTransitionTime: "2024-09-12T11:48:13Z"
    reason: UpToDate
    status: "True"
    type: Test
  • k get gcp-beta
NAME                                                             SYNCED   READY   EXTERNAL-NAME                                                           AGE
projectserviceidentity.cloudplatform.gcp-beta.upbound.io/hc-sa   True     True    projects/official-provider-testing/services/healthcare.googleapis.com   6m57s

NAME                                                                           AGE     CONFIG-NAME   RESOURCE-KIND            RESOURCE-NAME
providerconfigusage.gcp-beta.upbound.io/b5aaa2c5-32cf-421b-8feb-c8d3df72a681   6m57s   default       ProjectServiceIdentity   hc-sa

Uptest run: https://github.com/upbound/provider-upjet-gcp-beta/actions/runs/10850559058

Signed-off-by: Fatih Türken <[email protected]>
Signed-off-by: Fatih Türken <[email protected]>
@turkenf
Copy link
Contributor Author

turkenf commented Sep 13, 2024

/test-examples="examples/cloudplatform/v1beta1/projectserviceidentity.yaml"

https://github.com/upbound/provider-upjet-gcp-beta/actions/runs/10850559058

@turkenf
Copy link
Contributor Author

turkenf commented Sep 13, 2024

/test-examples="examples/container/v1beta1/cluster.yaml"

@turkenf
Copy link
Contributor Author

turkenf commented Sep 18, 2024

/test-examples="examples/container/v1beta1/cluster.yaml"

https://github.com/upbound/provider-upjet-gcp-beta/actions/runs/10921913790

@turkenf
Copy link
Contributor Author

turkenf commented Sep 18, 2024

/test-examples="examples/container/v1beta2/cluster.yaml"

https://github.com/upbound/provider-upjet-gcp-beta/actions/runs/10921916934

@turkenf
Copy link
Contributor Author

turkenf commented Sep 18, 2024

Please ignore report-breaking-changes job. This is caused by the lack of config/schema.json in the main branch.

@turkenf
Copy link
Contributor Author

turkenf commented Sep 18, 2024

/test-examples="examples/cloudplatform/v1beta1/projectserviceidentity.yaml"

https://github.com/upbound/provider-upjet-gcp-beta/actions/runs/10923613747

Copy link
Member

@sergenyalcin sergenyalcin left a 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
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Member

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?

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{
Copy link
Member

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?

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.

Copy link
Contributor Author

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.


# Configuration

## Install the provider-family-gcp
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.


# Building the Official Provider Family Images Locally

1. Check out the provider repo, crossplane-contrib/provider-upjet-gcp, and go to the project
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed the development guide.

# 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.
Copy link
Member

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.

Copy link
Contributor Author

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.


# Quickstart

This guide walks through the process to install Upbound Universal Crossplane and install the GCP official provider-family.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@mergenci
Copy link

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]>
@turkenf
Copy link
Contributor Author

turkenf commented Sep 19, 2024

/test-examples="examples/cloudplatform/v1beta1/projectserviceidentity.yaml"

@turkenf
Copy link
Contributor Author

turkenf commented Sep 19, 2024

/test-examples="examples/container/v1beta2/cluster.yaml"

@turkenf
Copy link
Contributor Author

turkenf commented Sep 19, 2024

/test-examples="examples/container/v1beta1/cluster.yaml"

Copy link

@mergenci mergenci left a 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.

@turkenf turkenf merged commit cfd9e11 into upbound:main Sep 20, 2024
10 of 11 checks passed
@turkenf turkenf deleted the bootstrap branch September 20, 2024 12:51
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.

4 participants