in teamcity-helm-plugin-agent/src/main/java/jetbrains/buildServer/helm/HelmAgentConfigurationProvider.java [17:28]
public HelmAgentConfigurationProvider(@NotNull EventDispatcher<AgentLifeCycleListener> agentEvents) {
agentEvents.addListener(new AgentLifeCycleAdapter(){
@Override
public void beforeAgentConfigurationLoaded(@NotNull BuildAgent agent) {
File defaultHelmLocation = new File("/usr/local/bin/helm");
if(defaultHelmLocation.exists()){
agent.getConfiguration().addConfigurationParameter(HELM_PATH_CONFIG_PARAM, defaultHelmLocation.getAbsolutePath());
}
super.beforeAgentConfigurationLoaded(agent);
}
});
}