diff --git a/cbcontainers/state/components/sensor_daemon_set.go b/cbcontainers/state/components/sensor_daemon_set.go index 3b5e130d..7568fce6 100644 --- a/cbcontainers/state/components/sensor_daemon_set.go +++ b/cbcontainers/state/components/sensor_daemon_set.go @@ -180,7 +180,7 @@ func (obj *SensorDaemonSetK8sObject) mutateContainersList(daemonSet *appsV1.Daem var runtimeContainer coreV1.Container var clusterScannerContainer coreV1.Container - templatePodSpec := daemonSet.Spec.Template.Spec + templatePodSpec := &daemonSet.Spec.Template.Spec desiredContainers := make([]coreV1.Container, 0, 2) runtimeEnabled := false