File tree Expand file tree Collapse file tree 6 files changed +13
-8
lines changed
Expand file tree Collapse file tree 6 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -707,7 +707,7 @@ Graphql Url for internal monitoring exporter
707707{ {- end -} }
708708
709709{ {- define " seleniumGrid.url.host" -} }
710- { {- $host := printf " %s.%s.svc.cluster.local " ( include ($.Values.isolateComponents | ternary " seleniumGrid.router.fullname" " seleniumGrid.hub.fullname" ) $ ) (.Release.Namespace) -} }
710+ { {- $host := include ($.Values.isolateComponents | ternary " seleniumGrid.router.fullname" " seleniumGrid.hub.fullname" ) $ -} }
711711{ {- if eq (include " seleniumGrid.ingress.enabled" $) " true" -} }
712712 { {- if and (not .Values.ingress.hostname) .Values.global.K8S_PUBLIC_IP -} }
713713 { {- $host = .Values.global.K8S_PUBLIC_IP -} }
@@ -721,7 +721,7 @@ Graphql Url for internal monitoring exporter
721721{ {- end -} }
722722
723723{ {- define " seleniumGrid.server.url.host" -} }
724- { {- $host := printf " %s.%s.svc.cluster.local " ( include ($.Values.isolateComponents | ternary " seleniumGrid.router.fullname" " seleniumGrid.hub.fullname" ) $ ) (.Release.Namespace) -} }
724+ { {- $host := include ($.Values.isolateComponents | ternary " seleniumGrid.router.fullname" " seleniumGrid.hub.fullname" ) $ -} }
725725{ {- $host } }
726726{ {- end -} }
727727
Original file line number Diff line number Diff line change 1- {{- $eventBusHost := printf "%s.%s.svc.cluster.local" (ternary (include "seleniumGrid.eventBus.fullname" . ) (include "seleniumGrid.hub.fullname" .) .Values.isolateComponents) (.Release.Namespace) -}}
1+ {{- $eventBusHost := tpl (default (ternary (include "seleniumGrid.eventBus.fullname" $ ) (include "seleniumGrid.hub.fullname" $) $ .Values.isolateComponents) $.Values.global.seleniumGrid.SE_EVENT_BUS_HOST) $ -}}
22{{- $eventBusPublishPort := ternary .Values.components.eventBus.publishPort .Values.hub.publishPort .Values.isolateComponents -}}
33{{- $eventBusSubscribePort := ternary .Values.components.eventBus.subscribePort .Values.hub.subscribePort .Values.isolateComponents -}}
44apiVersion : v1
Original file line number Diff line number Diff line change 1- {{- $distributorHost := printf "%s.%s.svc.cluster.local" (include "seleniumGrid.distributor.fullname" .) (.Release.Namespace) -}}
2- {{- $routerHost := printf "%s.%s.svc.cluster.local" (include "seleniumGrid.router.fullname" .) (.Release.Namespace) -}}
3- {{- $hubHost := printf "%s.%s.svc.cluster.local" (include "seleniumGrid.hub.fullname" .) (.Release.Namespace) -}}
1+ {{- $distributorHost := tpl (default (include "seleniumGrid.distributor.fullname" $) $.Values.global.seleniumGrid.SE_DISTRIBUTOR_HOST) $ -}}
2+ {{- $routerHost := tpl (default (include "seleniumGrid.router.fullname" $) $.Values.global.seleniumGrid.SE_ROUTER_HOST) $ -}}
3+ {{- $hubHost := tpl (default (include "seleniumGrid.hub.fullname" $) $.Values.global.seleniumGrid.SE_HUB_HOST) $ -}}
44apiVersion : v1
55kind : ConfigMap
66metadata :
Original file line number Diff line number Diff line change 2121 {{ $name }}: {{ tpl ($value) $ | b64enc }}
2222{{- end }}
2323{{- end }}
24- SE_NODE_GRID_URL : {{ include "seleniumGrid.url" $ | b64enc }}
24+ SE_NODE_GRID_URL : {{ tpl (default ( include "seleniumGrid.url" $) $.Values.global.seleniumGrid.SE_NODE_GRID_URL) $ | b64enc }}
2525 SE_NODE_GRID_GRAPHQL_URL : {{ include "seleniumGrid.graphqlURL" $ | b64enc }}
2626{{- with $.Values.tls.trustStorePassword }}
2727 SE_JAVA_SSL_TRUST_STORE_PASSWORD : {{ . | b64enc }}
Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ global:
5050 # Note: If not define labelSelector, it will be added automatically based on "app" label in each component
5151 # -- Specify number of max sessions per node. Can be overridden by individual component (this is also set to scaler trigger parameter `nodeMaxSessions` if `autoscaling` is enabled)
5252 nodeMaxSessions : 1
53+ SE_EVENT_BUS_HOST : " "
54+ SE_DISTRIBUTOR_HOST : " "
55+ SE_ROUTER_HOST : " "
56+ SE_HUB_HOST : " "
57+ SE_NODE_GRID_URL : " "
5358
5459tls :
5560 # -- Create a Secret resource for TLS certificate and key. If using an external secret set to false and provide its name in `nameOverride` below
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ def test_graphql_url_for_autoscaling_constructed_without_basic_auth_in_url(self)
8080 logger .info (f"Assert graphql url is constructed without basic auth in url" )
8181 base64_url = doc ['data' ]['SE_NODE_GRID_GRAPHQL_URL' ]
8282 decoded_url = base64 .b64decode (base64_url ).decode ('utf-8' )
83- self .assertTrue (decoded_url == f'https://{ RELEASE_NAME } selenium-router.default.svc.cluster.local :4444/selenium/graphql' , decoded_url )
83+ self .assertTrue (decoded_url == f'https://{ RELEASE_NAME } selenium-router:4444/selenium/graphql' , decoded_url )
8484
8585 def test_distributor_new_session_thread_pool_size (self ):
8686 resources_name = [f'{ RELEASE_NAME } selenium-distributor' ]
You can’t perform that action at this time.
0 commit comments