fix: ignore `is forbidden` errors when deleting function and resources (#988)

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
This commit is contained in:
Zbynek Roubalik 2022-04-22 22:34:31 +02:00 committed by GitHub
parent bbfb3e9f98
commit ce26a23352
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ func (pp *PipelinesProvider) Remove(ctx context.Context, f fn.Function) error {
go func() {
defer wg.Done()
err := df(ctx, pp.namespace, listOptions)
if err != nil && !errors.IsNotFound(err) {
if err != nil && !errors.IsNotFound(err) && !errors.IsForbidden(err) {
errChan <- err
}
}()