Skip to content

Commit b299c46

Browse files
authored
Merge pull request #389 from msherif1234/dbg_cm
Make sure changing bpfman configmap restart daemonset pods
2 parents 84b00be + d60c342 commit b299c46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: controllers/bpfman-operator/configmap.go

+2
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ func LoadAndConfigureBpfmanDs(config *corev1.ConfigMap, path string) *appsv1.Dae
309309
bpfmanAgentLogLevel := config.Data["bpfman.agent.log.level"]
310310
bpfmanHealthProbeAddr := config.Data["bpfman.agent.healthprobe.addr"]
311311
bpfmanMetricAddr := config.Data["bpfman.agent.metric.addr"]
312+
bpfmanConfigs := config.Data["bpfman.toml"]
312313

313314
// Annotate the log level on the ds so we get automatic restarts on changes.
314315
if staticBpfmanDeployment.Spec.Template.ObjectMeta.Annotations == nil {
@@ -319,6 +320,7 @@ func LoadAndConfigureBpfmanDs(config *corev1.ConfigMap, path string) *appsv1.Dae
319320
staticBpfmanDeployment.Spec.Template.ObjectMeta.Annotations["bpfman.io.bpfman.agent.loglevel"] = bpfmanAgentLogLevel
320321
staticBpfmanDeployment.Spec.Template.ObjectMeta.Annotations["bpfman.io.bpfman.agent.healthprobeaddr"] = bpfmanHealthProbeAddr
321322
staticBpfmanDeployment.Spec.Template.ObjectMeta.Annotations["bpfman.io.bpfman.agent.metricaddr"] = bpfmanMetricAddr
323+
staticBpfmanDeployment.Spec.Template.ObjectMeta.Annotations["bpfman.io.bpfman.toml"] = bpfmanConfigs
322324
staticBpfmanDeployment.Name = internal.BpfmanDsName
323325
staticBpfmanDeployment.Namespace = config.Namespace
324326
staticBpfmanDeployment.Spec.Template.Spec.AutomountServiceAccountToken = ptr.To(true)

0 commit comments

Comments
 (0)