(annotations map[string]string, compName string)
| 146 | } |
| 147 | |
| 148 | func hasHostNetworkEnabled(annotations map[string]string, compName string) bool { |
| 149 | if annotations == nil { |
| 150 | return false |
| 151 | } |
| 152 | comps, ok := annotations[constant.HostNetworkAnnotationKey] |
| 153 | if !ok { |
| 154 | return false |
| 155 | } |
| 156 | return slices.Index(strings.Split(comps, ","), compName) >= 0 |
| 157 | } |
| 158 | |
| 159 | func getHostNetworkPort(ctx context.Context, _ client.Reader, clusterName, compName, cName, pName string) (int32, error) { |
| 160 | key := intctrlutil.BuildHostPortName(clusterName, compName, cName, pName) |
no outgoing calls
no test coverage detected
searching dependent graphs…