File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,8 @@ func (m *CNIMonitor) Stop() {
226226}
227227
228228// parseCNIConfig parses the CNI monitor configuration from a map.
229+ //
230+ //nolint:gocyclo // Config parsing functions have inherently high complexity due to many fields
229231func parseCNIConfig (configMap map [string ]interface {}) (* CNIMonitorConfig , error ) {
230232 config := & CNIMonitorConfig {
231233 Discovery : DiscoveryConfig {
Original file line number Diff line number Diff line change @@ -361,6 +361,8 @@ func ValidateDNSConfig(config types.MonitorConfig) error {
361361}
362362
363363// parseDNSConfig parses the DNS monitor configuration from a map.
364+ //
365+ //nolint:gocyclo // Config parsing functions have inherently high complexity due to many fields
364366func parseDNSConfig (configMap map [string ]interface {}) (* DNSMonitorConfig , error ) {
365367 if configMap == nil {
366368 return & DNSMonitorConfig {}, nil
You can’t perform that action at this time.
0 commit comments