MCPcopy Index your code
hub / github.com/apecloud/kubeblocks / hasHostNetworkCapability

Function hasHostNetworkCapability

pkg/controller/component/utils.go:138–146  ·  view source on GitHub ↗
(synthesizedComp *SynthesizedComponent, compDef *appsv1.ComponentDefinition)

Source from the content-addressed store, hash-verified

136}
137
138func 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
148func hasHostNetworkEnabled(annotations map[string]string, compName string) bool {
149 if annotations == nil {

Callers 2

IsHostNetworkEnabledFunction · 0.85
isHostNetworkEnabledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…