File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,12 @@ func (f *AgentAddonFactory) WithManagedClusterClient(c clusterclientset.Interfac
148148 return f
149149}
150150
151+ // WithUpdaters defines which type of update opration should by used for specific resources.
152+ func (f * AgentAddonFactory ) WithUpdaters (updater []agent.Updater ) * AgentAddonFactory {
153+ f .agentAddonOptions .Updaters = updater
154+ return f
155+ }
156+
151157// WithAgentDeployTriggerClusterFilter defines the filter func to trigger the agent deploy/redploy when cluster info is
152158// changed. Addons that need information from the ManagedCluster resource when deploying the agent should use this
153159// function to set what information they need, otherwise the expected/up-to-date agent may be deployed delayed since the
You can’t perform that action at this time.
0 commit comments