Skip to content

Commit d38f3a7

Browse files
author
Nont
committed
Remove IsNotFound error check
Signed-off-by: Nont <[email protected]>
1 parent 46bb179 commit d38f3a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/webhook/managedresource/createordelete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func EnsureVAP(ctx context.Context, c client.Client, isHub bool) error {
5555
for _, objectMutator := range objsAndMutators {
5656
opResult, err := controllerutil.CreateOrUpdate(ctx, c, objectMutator.obj, objectMutator.mutate)
5757
switch {
58-
case err == nil, apierrors.IsNotFound(err):
58+
case err == nil:
5959
// continue
6060
case meta.IsNoMatchError(err):
6161
klog.Infof("object type %T is not supported in this cluster, continuing", objectMutator.obj)

0 commit comments

Comments
 (0)