(toDefault, defaultFrom Config)
| 637 | } |
| 638 | |
| 639 | func defaultConfig(toDefault, defaultFrom Config) Config { |
| 640 | if toDefault.LabelSelector == nil { |
| 641 | toDefault.LabelSelector = defaultFrom.LabelSelector |
| 642 | } |
| 643 | if toDefault.FieldSelector == nil { |
| 644 | toDefault.FieldSelector = defaultFrom.FieldSelector |
| 645 | } |
| 646 | if toDefault.Transform == nil { |
| 647 | toDefault.Transform = defaultFrom.Transform |
| 648 | } |
| 649 | if toDefault.UnsafeDisableDeepCopy == nil { |
| 650 | toDefault.UnsafeDisableDeepCopy = defaultFrom.UnsafeDisableDeepCopy |
| 651 | } |
| 652 | if toDefault.EnableWatchBookmarks == nil { |
| 653 | toDefault.EnableWatchBookmarks = defaultFrom.EnableWatchBookmarks |
| 654 | } |
| 655 | if toDefault.SyncPeriod == nil { |
| 656 | toDefault.SyncPeriod = defaultFrom.SyncPeriod |
| 657 | } |
| 658 | return toDefault |
| 659 | } |
| 660 | |
| 661 | func namespaceAllSelector(namespaces []string) []fields.Selector { |
| 662 | selectors := make([]fields.Selector, 0, len(namespaces)-1) |
no outgoing calls
searching dependent graphs…