parseRemoveLabelsConfig handles remove-labels configuration
(outputMap map[string]any)
| 16 | |
| 17 | // parseRemoveLabelsConfig handles remove-labels configuration |
| 18 | func (c *Compiler) parseRemoveLabelsConfig(outputMap map[string]any) *RemoveLabelsConfig { |
| 19 | config := parseConfigScaffold(outputMap, "remove-labels", removeLabelsLog, func(err error) *RemoveLabelsConfig { |
| 20 | removeLabelsLog.Printf("Failed to unmarshal config: %v", err) |
| 21 | // Handle null case: create empty config (allows any labels) |
| 22 | removeLabelsLog.Print("Using empty configuration (allows any labels)") |
| 23 | return &RemoveLabelsConfig{} |
| 24 | }) |
| 25 | if config != nil { |
| 26 | removeLabelsLog.Printf("Parsed configuration: allowed_count=%d, blocked_count=%d, target=%s", len(config.Allowed), len(config.Blocked), config.Target) |
| 27 | } |
| 28 | return config |
| 29 | } |
no test coverage detected