Removes system labels from labels map
(lbs map[string]string)
| 94 | |
| 95 | // Removes system labels from labels map |
| 96 | func filterSystemLabels(lbs map[string]string) map[string]string { |
| 97 | result := make(map[string]string) |
| 98 | for k, v := range lbs { |
| 99 | if !isSystemLabel(k) { |
| 100 | result[k] = v |
| 101 | } |
| 102 | } |
| 103 | return result |
| 104 | } |
| 105 | |
| 106 | // Checks if labels array contains system labels |
| 107 | func ContainsSystemLabels(lbs map[string]string) bool { |
searching dependent graphs…