cluster-api-provider-gcp
cluster-api-provider-gcp copied to clipboard
Add option to create an InstanceGroup to be used for bootstrap instances
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 #
TODOs:
- [x] squashed commits
- [ ] includes documentation
- [x] 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.