(synthesizedComp *SynthesizedComponent, compDef *appsv1.ComponentDefinition)
| 136 | } |
| 137 | |
| 138 | func hasHostNetworkCapability(synthesizedComp *SynthesizedComponent, compDef *appsv1.ComponentDefinition) bool { |
| 139 | switch { |
| 140 | case synthesizedComp != nil: |
| 141 | return synthesizedComp.HostNetwork != nil |
| 142 | case compDef != nil: |
| 143 | return compDef.Spec.HostNetwork != nil |
| 144 | } |
| 145 | return false |
| 146 | } |
| 147 | |
| 148 | func hasHostNetworkEnabled(annotations map[string]string, compName string) bool { |
| 149 | if annotations == nil { |
no outgoing calls
no test coverage detected
searching dependent graphs…