Skip to content

Commit 338237f

Browse files
committed
chore: check terminating workspaces
Signed-off-by: Oleksii Kurinnyi <[email protected]>
1 parent 9de6b51 commit 338237f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

webhook/workspace/handler/validate.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@ func (h *WebhookHandler) validateEndpoints(ctx context.Context, workspace *dwv2.
115115
if otherWorkspace.UID == workspace.UID {
116116
continue
117117
}
118-
// Skip workspaces that are being deleted
119-
if otherWorkspace.DeletionTimestamp != nil {
120-
continue
121-
}
122118
for _, component := range otherWorkspace.Spec.Template.Components {
123119
if component.Container != nil {
124120
for _, endpoint := range component.Container.Endpoints {

0 commit comments

Comments
 (0)