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

Add proposal and scaffolding for managed Kubernetes in CAPG #764

Merged
merged 6 commits into from
Jan 11, 2023

Conversation

richardchen331
Copy link
Contributor

@richardchen331 richardchen331 commented Nov 23, 2022

/kind documentation

What this PR does / why we need it:
Add proposal and scaffolding for managed Kubernetes in CAPG (#512)

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

Release note:

- Add proposal for managed Kubernetes in CAPG
- Add scaffolds for managed Kubernetes in CAPG and defines the API types

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/documentation Categorizes issue or PR as related to documentation. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Nov 23, 2022
@k8s-ci-robot
Copy link
Contributor

Welcome @richardchen331!

It looks like this is your first PR to kubernetes-sigs/cluster-api-provider-gcp 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/cluster-api-provider-gcp has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Nov 23, 2022
@k8s-ci-robot
Copy link
Contributor

Hi @richardchen331. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Nov 23, 2022
@cpanato
Copy link
Member

cpanato commented Nov 24, 2022

/assign @richardcase @cpanato @pydctw

@richardcase
Copy link
Member

Thanks for creating this @richardchen331

For @cpanato & @pydctw - myself & @richardchen331 have added a task list to the GKE issue, #512 , based on this proposal. We thought we'd proceed with implementation and then refactor based on any feedback from the proposal as needed as we go along.....just to speed things up.

@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 25, 2022
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 14, 2022
@richardcase
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Dec 14, 2022
@richardchen331 richardchen331 marked this pull request as ready for review December 20, 2022 21:22
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 20, 2022
@richardchen331
Copy link
Contributor Author

@cpanato The PR is rebased. Could you help review it when you get chance? Thanks! cc @richardcase

@richardcase
Copy link
Member

This looks good to me.....it's worth calling out that this is the basis for the other open PRs and all the code here will not be used until a later PR uses and enables the GKE functionality.

@richardchen331 - a couple of very minor comments:

  • The release note should probably be updated to include the fact that this also scaffolds the projects and defines the API types
  • Do you think it's possible to squash some of the commits? We don't have to squash to 1 commit, but for instance the last 2 could be squashed.

@richardchen331
Copy link
Contributor Author

This looks good to me.....it's worth calling out that this is the basis for the other open PRs and all the code here will not be used until a later PR uses and enables the GKE functionality.

@richardchen331 - a couple of very minor comments:

  • The release note should probably be updated to include the fact that this also scaffolds the projects and defines the API types
  • Do you think it's possible to squash some of the commits? We don't have to squash to 1 commit, but for instance the last 2 could be squashed.

Sounds good. I've updated the release note and squash the commits (2 left, 1 for the proposal, 1 for the scaffolds). Please let me know if you have other feedback :)

@cpanato
Copy link
Member

cpanato commented Jan 6, 2023

lgtm as well, can we plan as a follow up to have some tests for that?

@richardcase
Copy link
Member

lgtm as well, can we plan as a follow up to have some tests for that?

@cpanato - yes for sure 👍 Before we allow enabling of the controllers (via feature flag) we will make sure we have tests in place (unit and e2e).

@richardcase
Copy link
Member

@richardchen331 - theres one small lint error:

Error: File is not `goimports`-ed (goimports)

Any chance you'd be able to take a look at that? Then i think we can merge 🎉

@cpanato
Copy link
Member

cpanato commented Jan 9, 2023

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cpanato, richardchen331

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 9, 2023
@richardchen331 richardchen331 changed the title Add proposal for managed Kubernetes in CAPG Add proposal and scaffolding for managed Kubernetes in CAPG Jan 10, 2023
@richardchen331
Copy link
Contributor Author

@cpanato @richardcase I created another PR with only the proposal (#801), could you help review and approve it? I think I'll be able to run the lint test myself after that without asking you to run it every time :) Thanks!

@richardcase
Copy link
Member

@cpanato @richardcase I created another PR with only the proposal (#801), could you help review and approve it? I think I'll be able to run the lint test myself after that without asking you to run it every time :) Thanks!

Ah yes, as you won't be a first-time contributor.

richardchen331 and others added 3 commits January 10, 2023 11:17
update API
Signed-off-by: Richard Case <richard.case@outlook.com>

Update API and proposal

go mod tidy

fix tests

fix goimports

make generate
Signed-off-by: cpanato <ctadeu@gmail.com>
@cpanato
Copy link
Member

cpanato commented Jan 11, 2023

/test all

@cpanato cpanato closed this Jan 11, 2023
@cpanato cpanato reopened this Jan 11, 2023
Signed-off-by: cpanato <ctadeu@gmail.com>
Signed-off-by: cpanato <ctadeu@gmail.com>
@richardcase
Copy link
Member

Thanks @cpanato 🧙

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 11, 2023
@k8s-ci-robot k8s-ci-robot merged commit c9b3d02 into kubernetes-sigs:main Jan 11, 2023
@k8s-ci-robot k8s-ci-robot added this to the v1.1.0 milestone Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/documentation Categorizes issue or PR as related to documentation. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants