Skip to content

Commit ad7d02b

Browse files
chore(shield): add cluster name mapping to windows host-shield config (#2262)
1 parent 9fec8d2 commit ad7d02b

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
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
email: marcovito.moscaritolo@sysdig.com
1515
type: application
16-
version: 1.6.1
16+
version: 1.6.2
1717
appVersion: "1.0.0"

charts/shield/templates/host/_windows_configmap_helpers.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
7070
{{- if and (include "common.semver.is_valid" .Values.host_windows.image.tag) (semverCompare ">= 0.8.0" .Values.host_windows.image.tag) }}
7171
{{- $runtimeAdditionalSettings := (include "host.windows.runtime_config_override" .) | fromYaml }}
72+
{{- $_ := set $runtimeAdditionalSettings "k8s_cluster_name" .Values.cluster_config.name -}}
7273
{{- $config := merge $config (dict "internals" (dict "agent_runtime" (dict "additional_settings" $runtimeAdditionalSettings))) }}
7374
{{- end }}
7475

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,8 @@ tests:
418418
419419
- it: Test agent_runtime_additional_settings with version >= 0.8.0
420420
set:
421+
cluster_config:
422+
name: "test-cluster"
421423
host_windows:
422424
image:
423425
tag: "0.8.0"
@@ -433,3 +435,4 @@ tests:
433435
agent_runtime:
434436
additional_settings:
435437
connection_timeout: 1000
438+
k8s_cluster_name: test-cluster

0 commit comments

Comments
 (0)