Skip to content

Commit 4becb83

Browse files
authored
fix(shield): set port 443 on host when alt region is selected (#2285)
1 parent e89fa78 commit 4becb83

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

charts/shield/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ maintainers:
1313
- name: mavimo
1414
1515
type: application
16-
version: 1.8.1
16+
version: 1.8.2
1717
appVersion: "1.0.0"

charts/shield/templates/host/_configmap_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ true
136136
{{- $config = merge $config (dict "ssl_verify_certificate" false) }}
137137
{{- end }}
138138
{{- if (include "common.is_alt_region" .) -}}
139-
{{- $_ := set $config "collector_port" 6443 -}}
139+
{{- $_ := set $config "collector_port" 443 -}}
140140
{{- end -}}
141141
{{- if .Values.features.kubernetes_metadata.enabled }}
142142
{{- $_ := set $config "k8s_delegated_nodes" (dig "k8s_delegated_nodes" 0 .Values.host.additional_settings) -}}

charts/shield/templates/host/_windows_configmap_helpers.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
{{- $_ := set $sysdigEndpointConfig "region" "custom" -}}
4747
{{- $_ := set $sysdigEndpointConfig "api_url" (printf "https://%s" (include "common.secure_api_endpoint" .)) -}}
4848
{{- $_ := set $sysdigEndpointConfig.collector "host" (include "common.collector_endpoint" .) -}}
49-
{{- $_ := set $sysdigEndpointConfig.collector "port" 6443 -}}
49+
{{- $_ := set $sysdigEndpointConfig.collector "port" 443 -}}
5050
{{- end -}}
5151
{{- end -}}
5252
{{- $_ := set $config "sysdig_endpoint" $sysdigEndpointConfig -}}
@@ -95,7 +95,7 @@
9595
"collector" (include "common.collector_endpoint" .)
9696
}}
9797
{{- if (include "common.is_alt_region" .) -}}
98-
{{- $_ := set $config "collector_port" 6443 -}}
98+
{{- $_ := set $config "collector_port" 443 -}}
9999
{{- end -}}
100100
{{- if .Values.cluster_config.tags -}}
101101
{{- $tagList := list }}

charts/shield/tests/host/configmap-dragent-yaml_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1364,4 +1364,4 @@ tests:
13641364
path: data['dragent.yaml']
13651365
pattern: |
13661366
collector: ingest-alt-eu1.app.sysdig.com
1367-
collector_port: 6443
1367+
collector_port: 443

charts/shield/tests/host/configmap-windows-dragent-yaml_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ tests:
728728
path: data['dragent.yaml']
729729
pattern: |
730730
collector: ingest-alt-eu1.app.sysdig.com
731-
collector_port: 6443
731+
collector_port: 443
732732
733733
- it: Test agent_runtime_additional_settings with version < 0.8.0
734734
set:

charts/shield/tests/host/configmap-windows-host-shield-config_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ tests:
384384
api_url: https://eu1.app.sysdig.com
385385
collector:
386386
host: ingest-alt-eu1.app.sysdig.com
387-
port: 6443
387+
port: 443
388388
region: custom
389389
390390
- it: Alternative regions (host-shield windows version > 0.7.1)

0 commit comments

Comments
 (0)