Skip to content

Commit

Permalink
USe generate name so that conflicts do not arise in case of multiple …
Browse files Browse the repository at this point in the history
…clusters
  • Loading branch information
shyamradhakrishnan committed Aug 18, 2023
1 parent 84976e0 commit 09d22d9
Showing 1 changed file with 4 additions and 4 deletions.
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,
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

0 comments on commit 09d22d9

Please sign in to comment.