From b2ffeb376c109ebb0ff3f1f95926275725287bd2 Mon Sep 17 00:00:00 2001 From: Adam Roberts Date: Fri, 12 Dec 2025 14:09:39 -0500 Subject: [PATCH] feat(shield): add KUBE_POD_NAME to host shield pods --- charts/shield/Chart.yaml | 2 +- charts/shield/templates/host/daemonset-windows.yaml | 4 ++++ charts/shield/templates/host/daemonset.yaml | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/shield/Chart.yaml b/charts/shield/Chart.yaml index 965ac3262..cbc42410e 100644 --- a/charts/shield/Chart.yaml +++ b/charts/shield/Chart.yaml @@ -13,5 +13,5 @@ maintainers: - name: mavimo email: marcovito.moscaritolo@sysdig.com type: application -version: 1.25.0 +version: 1.25.1 appVersion: "1.0.0" diff --git a/charts/shield/templates/host/daemonset-windows.yaml b/charts/shield/templates/host/daemonset-windows.yaml index 120729d10..e3e353a69 100644 --- a/charts/shield/templates/host/daemonset-windows.yaml +++ b/charts/shield/templates/host/daemonset-windows.yaml @@ -61,6 +61,10 @@ spec: valueFrom: fieldRef: fieldPath: spec.nodeName + - name: KUBE_POD_NAME + valueFrom: + fieldRef: + fieldPath: metadata.name {{ if .Values.features.posture.host_posture.enabled }} - name: POD_NAMESPACE valueFrom: diff --git a/charts/shield/templates/host/daemonset.yaml b/charts/shield/templates/host/daemonset.yaml index 2c5fe507a..abb221c92 100644 --- a/charts/shield/templates/host/daemonset.yaml +++ b/charts/shield/templates/host/daemonset.yaml @@ -121,6 +121,10 @@ spec: valueFrom: fieldRef: fieldPath: spec.nodeName + - name: KUBE_POD_NAME + valueFrom: + fieldRef: + fieldPath: metadata.name {{- if and (include "host.driver.is_ebpf" .) (not (include "host.driver.is_universal_ebpf" .)) }} - name: SYSDIG_BPF_PROBE value: