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 option to create an InstanceGroup to be used for bootstrap instances #1266

Closed

Conversation

bfournie
Copy link
Contributor

What type of PR is this?

/kind feature

What this PR does / why we need it:

Add a new configuration field to specify that an InstanceGroup should be created for a bootstrap instance. When configured, the InstanceGroup will be created in the first zone and if a bootstrap Instance is created it will be added to this InstanceGroup.

Which issue(s) this PR fixes *(optional, in `fixes #(, fixes #
Fixes #1265

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

Release note:

Added a new field `CreateBootstrapInstanceGroup` to the `LoadBalancer` struct which configures the Internal LoadBalancer. By default, this field will not be set. When set to 'true' an InstanceGroup will be created named <cluster-id>-bootstrap. If a bootstrap Instance is created it will be added to this InstanceGroup.

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 20, 2024
@k8s-ci-robot
Copy link
Contributor

Hi @bfournie. 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-sigs/prow repository.

@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 Jun 20, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: bfournie
Once this PR has been reviewed and has the lgtm label, please assign fabriziopandini for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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 size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 20, 2024
Copy link

netlify bot commented Jun 20, 2024

Deploy Preview for kubernetes-sigs-cluster-api-gcp ready!

Name Link
🔨 Latest commit 34393f4
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cluster-api-gcp/deploys/66aa70ca01b40e0008300c18
😎 Deploy Preview https://deploy-preview-1266--kubernetes-sigs-cluster-api-gcp.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@damdo
Copy link
Member

damdo commented Jun 20, 2024

/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 Jun 20, 2024
@richardcase
Copy link
Member

API diff changes are in the non-API packages so:

/override pull-cluster-api-provider-gcp-apidiff

@k8s-ci-robot
Copy link
Contributor

@richardcase: Overrode contexts on behalf of richardcase: pull-cluster-api-provider-gcp-apidiff

In response to this:

API diff changes are in the non-API packages so:

/override pull-cluster-api-provider-gcp-apidiff

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-sigs/prow repository.

api/v1beta1/types.go Outdated Show resolved Hide resolved
api/v1beta1/types.go Outdated Show resolved Hide resolved
cloud/services/compute/loadbalancers/reconcile.go Outdated Show resolved Hide resolved
cloud/services/compute/loadbalancers/reconcile.go Outdated Show resolved Hide resolved
Add a new configuration field to specify that an InstanceGroup should
be created for a bootstrap instance. When configured, the InstanceGroup
will be created in the first zone and if a bootstrap Instance is created
it will be added to this InstanceGroup.
@k8s-ci-robot
Copy link
Contributor

@bfournie: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cluster-api-provider-gcp-verify 34393f4 link true /test pull-cluster-api-provider-gcp-verify
pull-cluster-api-provider-gcp-apidiff 34393f4 link false /test pull-cluster-api-provider-gcp-apidiff
pull-cluster-api-provider-gcp-e2e-test 34393f4 link true /test pull-cluster-api-provider-gcp-e2e-test

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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-sigs/prow repository. I understand the commands that are listed here.

@nrb
Copy link

nrb commented Aug 5, 2024

@damdo Could you please take a look at this?

@bfournie
Copy link
Contributor Author

bfournie commented Aug 6, 2024

/close
Closing this as we have solved the issue using a different implementation in cloud-provider-gcp.

@k8s-ci-robot
Copy link
Contributor

@bfournie: Closed this PR.

In response to this:

/close
Closing this as we have solved the issue using a different implementation in cloud-provider-gcp.

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-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. 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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow for creation of InstanceGroup for bootstrap instance
6 participants