IsCompactMode tells whether there is a reconciliation compact mode key in the 'annotations'.
(annotations map[string]string)
| 45 | |
| 46 | // IsCompactMode tells whether there is a reconciliation compact mode key in the 'annotations'. |
| 47 | func IsCompactMode(annotations map[string]string) bool { |
| 48 | if len(annotations) == 0 { |
| 49 | return false |
| 50 | } |
| 51 | _, ok := annotations[constant.FeatureReconciliationInCompactModeAnnotationKey] |
| 52 | return ok |
| 53 | } |
| 54 | |
| 55 | func SafeAddInt(a, b int) int { |
| 56 | if a > 0 && b > math.MaxInt-a { |
no outgoing calls
no test coverage detected
searching dependent graphs…