File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
docker/kubernetes-agent-tentacle/scripts Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,27 @@ function getStatusOfRegistration() {
199199 cut -d' "' -f4)
200200}
201201
202+ function setPollingProxy() {
203+ local ARGS=()
204+ ARGS+=(' polling-proxy'
205+ ' --instance' " $instanceName " )
206+
207+ if [[ -n " $TentaclePollingProxyHost " ]]; then
208+ echo " Using polling proxy at $TentaclePollingProxyHost :$TentaclePollingProxyPort "
209+ ARGS+=(
210+ ' --proxyEnable' ' true'
211+ ' --proxyHost' " $TentaclePollingProxyHost "
212+ ' --proxyPort' " $TentaclePollingProxyPort "
213+ ' --proxyUsername' " $TentaclePollingProxyUsername "
214+ ' --proxyPassword' " $TentaclePollingProxyPassword " )
215+ else
216+ echo " Disabling polling proxy"
217+ ARGS+=(' --proxyEnable' ' false' )
218+ fi
219+
220+ tentacle " ${ARGS[@]} "
221+ }
222+
202223function registerTentacle() {
203224 echo " Registering with server ..."
204225
320341 validateVariables
321342
322343 configureTentacle
344+ setPollingProxy
323345 registerTentacle
324346 echo " Configuration successful"
325347fi
You can’t perform that action at this time.
0 commit comments