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() {
199
199
cut -d' "' -f4)
200
200
}
201
201
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
+
202
223
function registerTentacle() {
203
224
echo " Registering with server ..."
204
225
320
341
validateVariables
321
342
322
343
configureTentacle
344
+ setPollingProxy
323
345
registerTentacle
324
346
echo " Configuration successful"
325
347
fi
You can’t perform that action at this time.
0 commit comments