oxidecomputer / oxidecomputer/cluster-api-provider-oxide
Manage Anti-Affinity Groups for the Control Plane
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 2
- Forks
- 1
- Avg merge
- 3h 57m
- Merged PRs (30d)
- 6
Description
Currently, users of CAPOx can reference an existing anti-affinity group, but it would need to be created by something external (like a terraform config). Since anti-affinity groups are very light resources with a policy that support best-effort placement, CAPOx should create and manage an anti-affinity group for control plane instances.
OxideCluster can have an additional field:
spec.controlPlaneAntiAffinityPolicy: allow|fail (unset = disabled)
This would result in the OxideCluster Controller creating the anti-affintiy group with the specified policy and placing a reference in the status of the resource.
The Machine controller would:
- Check if the machine is a control plane node
- Retrieve the owning OxideCluster of the Machine and check the anti-affinity resource from the status.
- Launch the CP instance in the anti-affinity group
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the OxideCluster Controller and Machine controller entry points. Trace how OxideCluster spec and status fields are defined and reconciled, then follow how control-plane Machines launch instances. Done means the configured policy creates and manages an anti-affinity group, its reference appears in status, and control-plane instances launch in that group.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, cloud
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100