From fc3805e3fb1f57d2a5dff1dfe8886b410af6bf83 Mon Sep 17 00:00:00 2001 From: Xiangfeng Date: Wed, 8 May 2024 13:55:15 -0400 Subject: [PATCH] Delete all waypoint proxy on appnetconfig deletion --- internal/controller/appnetconfig_controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/controller/appnetconfig_controller.go b/internal/controller/appnetconfig_controller.go index be763bb..cd8512a 100644 --- a/internal/controller/appnetconfig_controller.go +++ b/internal/controller/appnetconfig_controller.go @@ -64,6 +64,7 @@ func (r *AppNetConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request // TODO: Only delete the envoy filters that are associated with this AppNetConfig exec.Command("kubectl", "delete", "envoyfilters", "--all").CombinedOutput() + exec.Command("istioctl", "experimental", "waypoint", "delete", "--all").CombinedOutput() return ctrl.Result{}, client.IgnoreNotFound(err) }