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 (#320)

* Use generate name so that conflicts do not arise in case of multiple clusters
  • Loading branch information
shyamradhakrishnan authored Aug 18, 2023
1 parent 2033e63 commit d097eef
Show file tree
Hide file tree
Showing 2 changed files with 7 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
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

0 comments on commit d097eef

Please sign in to comment.