refactor(k8s): replace kubectl delete with delete api [BE-12560] (#1768)

This commit is contained in:
Oscar Zhou
2026-02-03 08:36:08 +13:00
committed by GitHub
parent 18e445ea02
commit d7afdf214b
5 changed files with 528 additions and 60 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ func (deployer *KubernetesDeployer) command(operation string, userID portainer.U
operations := map[string]func(context.Context, []string) (string, error){
"apply": client.ApplyDynamic,
"delete": client.Delete,
"delete": client.DeleteDynamic,
}
operationFunc, ok := operations[operation]