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

Use generate name so that conflicts do not arise in case of multiple clusters #320

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cloud/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,10 @@ func CreateMachinePoolMachinesIfNotExists(ctx context.Context, params MachinePar
}
infraMachine := &infrav2exp.OCIMachinePoolMachine{
ObjectMeta: metav1.ObjectMeta{
Namespace: params.Namespace,
Name: specMachine.Name,
Labels: labels,
Annotations: make(map[string]string),
Namespace: params.Namespace,
GenerateName: params.MachinePool.Name,
shyamradhakrishnan marked this conversation as resolved.
Show resolved Hide resolved
Labels: labels,
Annotations: make(map[string]string),
// set the parent to infra machinepool till the capi machine reconciler changes it to capi machinepool machine
OwnerReferences: []metav1.OwnerReference{
{
Expand Down
3 changes: 3 additions & 0 deletions metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ releaseSeries:
- major: 0
minor: 13
contract: v1beta1
- major: 0
minor: 14
contract: v1beta1