From d928c112ace110922bb5ee89bb695c2ad6bb9599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=BD=87?= Date: Tue, 12 Sep 2023 19:35:27 +0800 Subject: [PATCH] uninstall metrics adapter when karmada cluster remove MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张潇 --- operator/pkg/tasks/deinit/component.go | 1 + 1 file changed, 1 insertion(+) diff --git a/operator/pkg/tasks/deinit/component.go b/operator/pkg/tasks/deinit/component.go index aa9d883bcc1c..43d65201d94d 100644 --- a/operator/pkg/tasks/deinit/component.go +++ b/operator/pkg/tasks/deinit/component.go @@ -19,6 +19,7 @@ func NewRemoveComponentTask() workflow.Task { Run: runRemoveComponent, RunSubTasks: true, Tasks: []workflow.Task{ + newRemoveComponentWithServiceSubTask(constants.KarmadaMetricsAdapterComponent, util.KarmadaMetricsAdapterName), newRemoveComponentSubTask(constants.KarmadaDeschedulerComponent, util.KarmadaDeschedulerName), newRemoveComponentSubTask(constants.KarmadaSchedulerComponent, util.KarmadaSchedulerName), newRemoveComponentSubTask(constants.KarmadaControllerManagerComponent, util.KarmadaControllerManagerName),