Skip to content

Commit

Permalink
Delete app with DeletePropagationForeground
Browse files Browse the repository at this point in the history
Co-authored-by: Georgi Sabev <[email protected]>
  • Loading branch information
Kieron Browne and georgethebeatle committed Jul 12, 2023
1 parent e918ebc commit e3a65d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/repositories/app_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,10 @@ func (f *AppRepo) DeleteApp(ctx context.Context, authInfo authorization.Info, me
return fmt.Errorf("failed to build user client: %w", err)
}

return apierrors.FromK8sError(userClient.Delete(ctx, cfApp), AppResourceType)
return apierrors.FromK8sError(
userClient.Delete(ctx, cfApp, client.PropagationPolicy(metav1.DeletePropagationForeground)),
AppResourceType,
)
}

func (f *AppRepo) GetAppEnv(ctx context.Context, authInfo authorization.Info, appGUID string) (AppEnvRecord, error) {
Expand Down

0 comments on commit e3a65d1

Please sign in to comment.