MCPcopy Create free account
hub / github.com/deepflowio/deepflow / TriggerKubernetesRefresh

Method TriggerKubernetesRefresh

server/controller/manager/manager.go:147–160  ·  view source on GitHub ↗
(domainLcuuid, subDomainLcuuid string, version int)

Source from the content-addressed store, hash-verified

145}
146
147func (m *Manager) TriggerKubernetesRefresh(domainLcuuid, subDomainLcuuid string, version int) error {
148 m.mutex.RLock()
149 defer m.mutex.RUnlock()
150 cloudTask, ok := m.taskMap[domainLcuuid]
151 if !ok {
152 return errors.New(fmt.Sprintf("domain (%s) not found", domainLcuuid))
153 }
154 k8sGatherTaskMap := cloudTask.Cloud.GetKubernetesGatherTaskMap()
155 gather, ok := k8sGatherTaskMap[subDomainLcuuid]
156 if !ok {
157 return errors.New(fmt.Sprintf("domain (%s) not found gather (%s)", domainLcuuid, subDomainLcuuid))
158 }
159 return gather.PutRefreshSignal(version)
160}
161
162func (m *Manager) GetRecorder(domainLcuuid string) (recorder.Recorder, error) {
163 m.mutex.RLock()

Callers 2

TriggerKubernetesRefreshFunction · 0.80
triggerKubernetesRefreshFunction · 0.80

Calls 3

NewMethod · 0.80
PutRefreshSignalMethod · 0.80

Tested by

no test coverage detected