Skip to content

Commit

Permalink
fix(tenantop): set owner references for op of new types
Browse files Browse the repository at this point in the history
  • Loading branch information
powerfooI committed Sep 25, 2024
1 parent 854ea91 commit 94648e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1alpha1/obtenantoperation_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (r *OBTenantOperation) Default() {
} else if r.Spec.Type == constants.TenantOpSwitchover && r.Spec.Switchover != nil {
targetTenantName = r.Spec.Switchover.PrimaryTenant
secondaryTenantName = r.Spec.Switchover.StandbyTenant
} else if (r.Spec.Type == constants.TenantOpUpgrade || r.Spec.Type == constants.TenantOpReplayLog) && r.Spec.TargetTenant != nil {
} else if r.Spec.TargetTenant != nil {
targetTenantName = *r.Spec.TargetTenant
}
references := r.GetOwnerReferences()
Expand Down

0 comments on commit 94648e4

Please sign in to comment.