Skip to content

Commit

Permalink
Validate timeout greater than 0s for InformersSyncTimeout (#1103)
Browse files Browse the repository at this point in the history
  • Loading branch information
marctc authored Aug 26, 2024
1 parent f632c99 commit 51c1f33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/beyla/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ func (c *Config) Validate() error {
if c.EBPF.BatchLength == 0 {
return ConfigError("BEYLA_BPF_BATCH_LENGTH must be at least 1")
}
if c.Attributes.Kubernetes.InformersSyncTimeout == 0 {
return ConfigError("BEYLA_KUBE_INFORMERS_SYNC_TIMEOUT duration must be greater than 0s")
}

if c.Enabled(FeatureNetO11y) && !c.Grafana.OTLP.MetricsEnabled() && !c.Metrics.Enabled() &&
!c.Prometheus.Enabled() && !c.NetworkFlows.Print {
Expand Down

0 comments on commit 51c1f33

Please sign in to comment.