mirror of https://github.com/knative/func.git
fix: ignore `is forbidden` errors when deleting function and resources (#988)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
This commit is contained in:
parent
bbfb3e9f98
commit
ce26a23352
|
|
@ -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
|
||||
}
|
||||
}()
|
||||
|
|
|
|||
Loading…
Reference in New Issue