Skip to content

Commit 35df4a4

Browse files
committed
1 parent 6ce2ed1 commit 35df4a4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

internal/webhook/apps/v1alpha1/nimservice_webhook.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,11 @@ func (v *NIMServiceCustomValidator) ValidateUpdate(_ context.Context, oldObj, ne
181181
return nil, fmt.Errorf("NIMService.Spec.Storage.PVC is immutable once it is created with PVC.Create = true.")
182182
}
183183
}
184-
// ... existing code ...
185184

186185
return nil, nil
187186
}
188187

189-
// ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type NIMService.
190-
func (v *NIMServiceCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error) {
188+
func (v *NIMServiceCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error) {
189+
// No deletion-time validation logic for NIMService. Returning nil allows deletes without extra checks.
191190
return nil, nil
192191
}

0 commit comments

Comments
 (0)