Skip to content

Commit d92c47c

Browse files
committed
add deletion
1 parent e64d6c5 commit d92c47c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/provider/apisix/provider.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ func (d *apisixProvider) Delete(ctx context.Context, obj client.Object) error {
184184
case *gatewayv1.HTTPRoute, *apiv2.ApisixRoute:
185185
resourceTypes = append(resourceTypes, adctypes.TypeService)
186186
labels = label.GenLabel(obj)
187+
case *gatewayv1alpha2.TCPRoute:
188+
resourceTypes = append(resourceTypes, adctypes.TypeService)
189+
labels = label.GenLabel(obj)
187190
case *gatewayv1.Gateway:
188191
// delete all resources
189192
case *networkingv1.Ingress:

0 commit comments

Comments
 (0)