From b76b09cf31a41ca683f0b064609c7e6e64a60183 Mon Sep 17 00:00:00 2001 From: Jian Qiu Date: Wed, 15 May 2024 15:41:07 +0800 Subject: [PATCH] Support install namespace and remove installAll Signed-off-by: Jian Qiu --- pkg/proxyagent/agent/agent.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/proxyagent/agent/agent.go b/pkg/proxyagent/agent/agent.go index 29cd9a88..4f85c909 100644 --- a/pkg/proxyagent/agent/agent.go +++ b/pkg/proxyagent/agent/agent.go @@ -54,7 +54,6 @@ func NewAgentAddon( v1CSRSupported bool, runtimeClient client.Client, nativeClient kubernetes.Interface, - agentInstallAll bool, enableKubeApiProxy bool, addonClient addonclient.Interface) (agent.AgentAddon, error) { caCertData, caKeyData, err := signer.CA().Config.GetPEMBytes() @@ -147,10 +146,6 @@ func NewAgentAddon( ), ) - if agentInstallAll { - agentFactory.WithInstallStrategy(agent.InstallAllStrategy(config.AddonInstallNamespace)) - } - return agentFactory.BuildHelmAgentAddon() }