Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions server/controller/recorder/constraint/constraint.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ type CloudModel interface {
cloudmodel.PodIngressRule | cloudmodel.PodIngressRuleBackend | cloudmodel.PodService |
cloudmodel.PodServicePort | cloudmodel.PodGroup | cloudmodel.ConfigMap | cloudmodel.PodGroupConfigMapConnection |
cloudmodel.PodGroupPort | cloudmodel.PodReplicaSet | cloudmodel.Pod | cloudmodel.Process | cloudmodel.VIP

GetLcuuid() string
}

// 资源用于比对的缓存对象
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/az.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ func NewAZ(wholeCache *cache.Cache, cloudData []cloudmodel.AZ) *AZ {
return updater
}

func (z *AZ) getDiffBaseByCloudItem(cloudItem *cloudmodel.AZ) (diffBase *diffbase.AZ, exists bool) {
diffBase, exists = z.diffBaseData[cloudItem.Lcuuid]
return
}

func (z *AZ) generateDBItemToAdd(cloudItem *cloudmodel.AZ) (*metadbmodel.AZ, bool) {
dbItem := &metadbmodel.AZ{
Name: cloudItem.Name,
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/cen.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,6 @@ func NewCEN(wholeCache *cache.Cache, cloudData []cloudmodel.CEN) *CEN {
return updater
}

func (c *CEN) getDiffBaseByCloudItem(cloudItem *cloudmodel.CEN) (diffBase *diffbase.CEN, exists bool) {
diffBase, exists = c.diffBaseData[cloudItem.Lcuuid]
return
}

func (c *CEN) generateDBItemToAdd(cloudItem *cloudmodel.CEN) (*metadbmodel.CEN, bool) {
vpcIDs := []int{}
for _, vpcLcuuid := range cloudItem.VPCLcuuids {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/config_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ func NewConfigMap(wholeCache *cache.Cache, cloudData []cloudmodel.ConfigMap) *Co
return updater
}

func (h *ConfigMap) getDiffBaseByCloudItem(cloudItem *cloudmodel.ConfigMap) (diffBase *diffbase.ConfigMap, exists bool) {
diffBase, exists = h.diffBaseData[cloudItem.Lcuuid]
return
}

func (h *ConfigMap) generateDBItemToAdd(cloudItem *cloudmodel.ConfigMap) (*metadbmodel.ConfigMap, bool) {
podClusterID, exists := h.cache.ToolDataSet.GetPodClusterIDByLcuuid(cloudItem.PodClusterLcuuid)
if !exists {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/dhcp_port.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ func NewDHCPPort(wholeCache *cache.Cache, cloudData []cloudmodel.DHCPPort) *DHCP
return updater
}

func (p *DHCPPort) getDiffBaseByCloudItem(cloudItem *cloudmodel.DHCPPort) (diffBase *diffbase.DHCPPort, exists bool) {
diffBase, exists = p.diffBaseData[cloudItem.Lcuuid]
return
}

func (p *DHCPPort) generateDBItemToAdd(cloudItem *cloudmodel.DHCPPort) (*metadbmodel.DHCPPort, bool) {
vpcID, exists := p.cache.ToolDataSet.GetVPCIDByLcuuid(cloudItem.VPCLcuuid)
if !exists {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/floating_ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,6 @@ func NewFloatingIP(wholeCache *cache.Cache, cloudData []cloudmodel.FloatingIP) *
return updater
}

func (f *FloatingIP) getDiffBaseByCloudItem(cloudItem *cloudmodel.FloatingIP) (diffBase *diffbase.FloatingIP, exists bool) {
diffBase, exists = f.diffBaseData[cloudItem.Lcuuid]
return
}

func (f *FloatingIP) generateDBItemToAdd(cloudItem *cloudmodel.FloatingIP) (*metadbmodel.FloatingIP, bool) {
networkID, exists := f.cache.ToolDataSet.GetNetworkIDByLcuuid(cloudItem.NetworkLcuuid)
if !exists {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ func NewHost(wholeCache *cache.Cache, cloudData []cloudmodel.Host) *Host {
return updater
}

func (h *Host) getDiffBaseByCloudItem(cloudItem *cloudmodel.Host) (diffBase *diffbase.Host, exists bool) {
diffBase, exists = h.diffBaseData[cloudItem.Lcuuid]
return
}

func (h *Host) generateDBItemToAdd(cloudItem *cloudmodel.Host) (*metadbmodel.Host, bool) {
dbItem := &metadbmodel.Host{
Name: cloudItem.Name,
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/lan_ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ func (i *LANIP) SetCloudData(cloudData []cloudmodel.IP) {
i.cloudData = cloudData
}

func (i *LANIP) getDiffBaseByCloudItem(cloudItem *cloudmodel.IP) (diffBase *diffbase.LANIP, exists bool) {
diffBase, exists = i.diffBaseData[cloudItem.Lcuuid]
return
}

func (i *LANIP) generateDBItemToAdd(cloudItem *cloudmodel.IP) (*metadbmodel.LANIP, bool) {
vinterfaceID, exists := i.cache.ToolDataSet.GetVInterfaceIDByLcuuid(cloudItem.VInterfaceLcuuid)
if !exists {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/lb.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ func NewLB(wholeCache *cache.Cache, cloudData []cloudmodel.LB) *LB {
return updater
}

func (l *LB) getDiffBaseByCloudItem(cloudItem *cloudmodel.LB) (diffBase *diffbase.LB, exists bool) {
diffBase, exists = l.diffBaseData[cloudItem.Lcuuid]
return
}

func (l *LB) generateDBItemToAdd(cloudItem *cloudmodel.LB) (*metadbmodel.LB, bool) {
vpcID, exists := l.cache.ToolDataSet.GetVPCIDByLcuuid(cloudItem.VPCLcuuid)
if !exists {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/lb_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ func NewLBListener(wholeCache *cache.Cache, cloudData []cloudmodel.LBListener) *
return updater
}

func (l *LBListener) getDiffBaseByCloudItem(cloudItem *cloudmodel.LBListener) (diffBase *diffbase.LBListener, exists bool) {
diffBase, exists = l.diffBaseData[cloudItem.Lcuuid]
return
}

func (l *LBListener) generateDBItemToAdd(cloudItem *cloudmodel.LBListener) (*metadbmodel.LBListener, bool) {
lbID, exists := l.cache.ToolDataSet.GetLBIDByLcuuid(cloudItem.LBLcuuid)
if !exists {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/lb_target_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ func NewLBTargetServer(wholeCache *cache.Cache, cloudData []cloudmodel.LBTargetS
return updater
}

func (s *LBTargetServer) getDiffBaseByCloudItem(cloudItem *cloudmodel.LBTargetServer) (diffBase *diffbase.LBTargetServer, exists bool) {
diffBase, exists = s.diffBaseData[cloudItem.Lcuuid]
return
}

func (s *LBTargetServer) generateDBItemToAdd(cloudItem *cloudmodel.LBTargetServer) (*metadbmodel.LBTargetServer, bool) {
lbID, exists := s.cache.ToolDataSet.GetLBIDByLcuuid(cloudItem.LBLcuuid)
if !exists {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/lb_vm_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ func NewLBVMConnection(wholeCache *cache.Cache, cloudData []cloudmodel.LBVMConne
return updater
}

func (c *LBVMConnection) getDiffBaseByCloudItem(cloudItem *cloudmodel.LBVMConnection) (diffBase *diffbase.LBVMConnection, exists bool) {
diffBase, exists = c.diffBaseData[cloudItem.Lcuuid]
return
}

func (c *LBVMConnection) generateDBItemToAdd(cloudItem *cloudmodel.LBVMConnection) (*metadbmodel.LBVMConnection, bool) {
vmID, exists := c.cache.ToolDataSet.GetVMIDByLcuuid(cloudItem.VMLcuuid)
if !exists {
Expand Down
15 changes: 1 addition & 14 deletions server/controller/recorder/updater/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package updater

import (
"fmt"
"reflect"
"slices"

"github.com/deepflowio/deepflow/server/controller/recorder/config"
Expand All @@ -40,7 +39,7 @@ func debugCloudItem[CT constraint.CloudModel](resourceType string, cloudItem CT)
if config.Get().LogDebug.DetailEnabled {
return fmt.Sprintf("debug %s: %#v", resourceType, cloudItem)
}
return fmt.Sprintf("debug %s: %s", resourceType, getCloudItemLcuuid(cloudItem))
return fmt.Sprintf("debug %s: %s", resourceType, cloudItem.GetLcuuid())
}

func logDebugResourceTypeEnabled(resourceType string) bool {
Expand All @@ -51,15 +50,3 @@ func logDebugResourceTypeEnabled(resourceType string) bool {
}
return false
}

func logDebugEnabled() bool {
return config.Get().LogDebug.Enabled
}

func getCloudItemLcuuid[CT constraint.CloudModel](cloudItem CT) string {
value := reflect.ValueOf(cloudItem).FieldByName("Lcuuid")
if value.IsValid() {
return value.String()
}
return ""
}
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/nat_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ func NewNATGateway(wholeCache *cache.Cache, cloudData []cloudmodel.NATGateway) *
return updater
}

func (g *NATGateway) getDiffBaseByCloudItem(cloudItem *cloudmodel.NATGateway) (diffBase *diffbase.NATGateway, exists bool) {
diffBase, exists = g.diffBaseData[cloudItem.Lcuuid]
return
}

func (g *NATGateway) generateDBItemToAdd(cloudItem *cloudmodel.NATGateway) (*metadbmodel.NATGateway, bool) {
vpcID, exists := g.cache.ToolDataSet.GetVPCIDByLcuuid(cloudItem.VPCLcuuid)
if !exists {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/nat_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ func NewNATRule(wholeCache *cache.Cache, cloudData []cloudmodel.NATRule) *NATRul
return updater
}

func (r *NATRule) getDiffBaseByCloudItem(cloudItem *cloudmodel.NATRule) (diffBase *diffbase.NATRule, exists bool) {
diffBase, exists = r.diffBaseData[cloudItem.Lcuuid]
return
}

func (r *NATRule) generateDBItemToAdd(cloudItem *cloudmodel.NATRule) (*metadbmodel.NATRule, bool) {
var natGatewayID int
var exists bool
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/nat_vm_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ func NewNATVMConnection(wholeCache *cache.Cache, cloudData []cloudmodel.NATVMCon
return updater
}

func (c *NATVMConnection) getDiffBaseByCloudItem(cloudItem *cloudmodel.NATVMConnection) (diffBase *diffbase.NATVMConnection, exists bool) {
diffBase, exists = c.diffBaseData[cloudItem.Lcuuid]
return
}

func (c *NATVMConnection) generateDBItemToAdd(cloudItem *cloudmodel.NATVMConnection) (*metadbmodel.NATVMConnection, bool) {
vmID, exists := c.cache.ToolDataSet.GetVMIDByLcuuid(cloudItem.VMLcuuid)
if !exists {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ func NewNetwork(wholeCache *cache.Cache, cloudData []cloudmodel.Network) *Networ
return updater
}

func (n *Network) getDiffBaseByCloudItem(cloudItem *cloudmodel.Network) (diffBase *diffbase.Network, exists bool) {
diffBase, exists = n.diffBaseData[cloudItem.Lcuuid]
return
}

func (n *Network) generateDBItemToAdd(cloudItem *cloudmodel.Network) (*metadbmodel.Network, bool) {
vpcID, exists := n.cache.ToolDataSet.GetVPCIDByLcuuid(cloudItem.VPCLcuuid)
if !exists {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/peer_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ func NewPeerConnection(wholeCache *cache.Cache, cloudData []cloudmodel.PeerConne
return updater
}

func (c *PeerConnection) getDiffBaseByCloudItem(cloudItem *cloudmodel.PeerConnection) (diffBase *diffbase.PeerConnection, exists bool) {
diffBase, exists = c.diffBaseData[cloudItem.Lcuuid]
return
}

func (c *PeerConnection) generateDBItemToAdd(cloudItem *cloudmodel.PeerConnection) (*metadbmodel.PeerConnection, bool) {
remoteVPCID, exists := c.cache.ToolDataSet.GetVPCIDByLcuuid(cloudItem.RemoteVPCLcuuid)
if !exists {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@ func NewPod(wholeCache *cache.Cache, cloudData []cloudmodel.Pod) *Pod {
return updater
}

func (p *Pod) getDiffBaseByCloudItem(cloudItem *cloudmodel.Pod) (diffBase *diffbase.Pod, exists bool) {
diffBase, exists = p.diffBaseData[cloudItem.Lcuuid]
return
}

func (p *Pod) generateDBItemToAdd(cloudItem *cloudmodel.Pod) (*metadbmodel.Pod, bool) {
vpcID, exists := p.cache.ToolDataSet.GetVPCIDByLcuuid(cloudItem.VPCLcuuid)
if !exists {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/pod_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ func NewPodCluster(wholeCache *cache.Cache, cloudData []cloudmodel.PodCluster) *
return updater
}

func (c *PodCluster) getDiffBaseByCloudItem(cloudItem *cloudmodel.PodCluster) (diffBase *diffbase.PodCluster, exists bool) {
diffBase, exists = c.diffBaseData[cloudItem.Lcuuid]
return
}

func (c *PodCluster) generateDBItemToAdd(cloudItem *cloudmodel.PodCluster) (*metadbmodel.PodCluster, bool) {
vpcID, exists := c.cache.ToolDataSet.GetVPCIDByLcuuid(cloudItem.VPCLcuuid)
if !exists {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/pod_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@ func NewPodGroup(wholeCache *cache.Cache, cloudData []cloudmodel.PodGroup) *PodG
return updater
}

func (p *PodGroup) getDiffBaseByCloudItem(cloudItem *cloudmodel.PodGroup) (diffBase *diffbase.PodGroup, exists bool) {
diffBase, exists = p.diffBaseData[cloudItem.Lcuuid]
return
}

func (p *PodGroup) generateDBItemToAdd(cloudItem *cloudmodel.PodGroup) (*metadbmodel.PodGroup, bool) {
podNamespaceID, exists := p.cache.ToolDataSet.GetPodNamespaceIDByLcuuid(cloudItem.PodNamespaceLcuuid)
if !exists {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ func NewPodGroupConfigMapConnection(wholeCache *cache.Cache, cloudData []cloudmo
return updater
}

func (h *PodGroupConfigMapConnection) getDiffBaseByCloudItem(cloudItem *cloudmodel.PodGroupConfigMapConnection) (diffBase *diffbase.PodGroupConfigMapConnection, exists bool) {
diffBase, exists = h.diffBaseData[cloudItem.Lcuuid]
return
}

func (h *PodGroupConfigMapConnection) generateDBItemToAdd(cloudItem *cloudmodel.PodGroupConfigMapConnection) (*metadbmodel.PodGroupConfigMapConnection, bool) {
podGroupID, exists := h.cache.ToolDataSet.GetPodGroupIDByLcuuid(cloudItem.PodGroupLcuuid)
if !exists {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/pod_group_port.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ func NewPodGroupPort(wholeCache *cache.Cache, cloudData []cloudmodel.PodGroupPor
return updater
}

func (p *PodGroupPort) getDiffBaseByCloudItem(cloudItem *cloudmodel.PodGroupPort) (diffBase *diffbase.PodGroupPort, exists bool) {
diffBase, exists = p.diffBaseData[cloudItem.Lcuuid]
return
}

func (p *PodGroupPort) generateDBItemToAdd(cloudItem *cloudmodel.PodGroupPort) (*metadbmodel.PodGroupPort, bool) {
podGroupID, exists := p.cache.ToolDataSet.GetPodGroupIDByLcuuid(cloudItem.PodGroupLcuuid)
if !exists {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/pod_ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ func NewPodIngress(wholeCache *cache.Cache, cloudData []cloudmodel.PodIngress) *
return updater
}

func (i *PodIngress) getDiffBaseByCloudItem(cloudItem *cloudmodel.PodIngress) (diffBase *diffbase.PodIngress, exists bool) {
diffBase, exists = i.diffBaseData[cloudItem.Lcuuid]
return
}

func (i *PodIngress) generateDBItemToAdd(cloudItem *cloudmodel.PodIngress) (*metadbmodel.PodIngress, bool) {
podNamespaceID, exists := i.cache.ToolDataSet.GetPodNamespaceIDByLcuuid(cloudItem.PodNamespaceLcuuid)
if !exists {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/pod_ingress_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ func NewPodIngressRule(wholeCache *cache.Cache, cloudData []cloudmodel.PodIngres
return updater
}

func (r *PodIngressRule) getDiffBaseByCloudItem(cloudItem *cloudmodel.PodIngressRule) (diffBase *diffbase.PodIngressRule, exists bool) {
diffBase, exists = r.diffBaseData[cloudItem.Lcuuid]
return
}

func (r *PodIngressRule) generateDBItemToAdd(cloudItem *cloudmodel.PodIngressRule) (*metadbmodel.PodIngressRule, bool) {
podIngressID, exists := r.cache.ToolDataSet.GetPodIngressIDByLcuuid(cloudItem.PodIngressLcuuid)
if !exists {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ func NewPodIngressRuleBackend(wholeCache *cache.Cache, cloudData []cloudmodel.Po
return updater
}

func (b *PodIngressRuleBackend) getDiffBaseByCloudItem(cloudItem *cloudmodel.PodIngressRuleBackend) (diffBase *diffbase.PodIngressRuleBackend, exists bool) {
diffBase, exists = b.diffBaseData[cloudItem.Lcuuid]
return
}

func (b *PodIngressRuleBackend) generateDBItemToAdd(cloudItem *cloudmodel.PodIngressRuleBackend) (*metadbmodel.PodIngressRuleBackend, bool) {
podIngressRuleID, exists := b.cache.ToolDataSet.GetPodIngressRuleIDByLcuuid(cloudItem.PodIngressRuleLcuuid)
if !exists {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/pod_namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@ func NewPodNamespace(wholeCache *cache.Cache, cloudData []cloudmodel.PodNamespac
return updater
}

func (n *PodNamespace) getDiffBaseByCloudItem(cloudItem *cloudmodel.PodNamespace) (diffBase *diffbase.PodNamespace, exists bool) {
diffBase, exists = n.diffBaseData[cloudItem.Lcuuid]
return
}

func (n *PodNamespace) generateDBItemToAdd(cloudItem *cloudmodel.PodNamespace) (*metadbmodel.PodNamespace, bool) {
podClusterID, exists := n.cache.ToolDataSet.GetPodClusterIDByLcuuid(cloudItem.PodClusterLcuuid)
if !exists {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/pod_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ func NewPodNode(wholeCache *cache.Cache, cloudData []cloudmodel.PodNode) *PodNod
return updater
}

func (n *PodNode) getDiffBaseByCloudItem(cloudItem *cloudmodel.PodNode) (diffBase *diffbase.PodNode, exists bool) {
diffBase, exists = n.diffBaseData[cloudItem.Lcuuid]
return
}

func (n *PodNode) generateDBItemToAdd(cloudItem *cloudmodel.PodNode) (*metadbmodel.PodNode, bool) {
vpcID, exists := n.cache.ToolDataSet.GetVPCIDByLcuuid(cloudItem.VPCLcuuid)
if !exists {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/pod_replica_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ func NewPodReplicaSet(wholeCache *cache.Cache, cloudData []cloudmodel.PodReplica
return updater
}

func (r *PodReplicaSet) getDiffBaseByCloudItem(cloudItem *cloudmodel.PodReplicaSet) (diffBase *diffbase.PodReplicaSet, exists bool) {
diffBase, exists = r.diffBaseData[cloudItem.Lcuuid]
return
}

func (r *PodReplicaSet) generateDBItemToAdd(cloudItem *cloudmodel.PodReplicaSet) (*metadbmodel.PodReplicaSet, bool) {
podNamespaceID, exists := r.cache.ToolDataSet.GetPodNamespaceIDByLcuuid(cloudItem.PodNamespaceLcuuid)
if !exists {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/pod_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@ func NewPodService(wholeCache *cache.Cache, cloudData []cloudmodel.PodService) *
return updater
}

func (s *PodService) getDiffBaseByCloudItem(cloudItem *cloudmodel.PodService) (diffBase *diffbase.PodService, exists bool) {
diffBase, exists = s.diffBaseData[cloudItem.Lcuuid]
return
}

func (s *PodService) generateDBItemToAdd(cloudItem *cloudmodel.PodService) (*metadbmodel.PodService, bool) {
vpcID, exists := s.cache.ToolDataSet.GetVPCIDByLcuuid(cloudItem.VPCLcuuid)
if !exists {
Expand Down
5 changes: 0 additions & 5 deletions server/controller/recorder/updater/pod_service_port.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ func NewPodServicePort(wholeCache *cache.Cache, cloudData []cloudmodel.PodServic
return updater
}

func (s *PodServicePort) getDiffBaseByCloudItem(cloudItem *cloudmodel.PodServicePort) (diffBase *diffbase.PodServicePort, exists bool) {
diffBase, exists = s.diffBaseData[cloudItem.Lcuuid]
return
}

func (p *PodServicePort) generateDBItemToAdd(cloudItem *cloudmodel.PodServicePort) (*metadbmodel.PodServicePort, bool) {
podServiceID, exists := p.cache.ToolDataSet.GetPodServiceIDByLcuuid(cloudItem.PodServiceLcuuid)
if !exists {
Expand Down
Loading
Loading