Skip to content

Commit b7e2001

Browse files
committed
fix merge
1 parent a694303 commit b7e2001

File tree

5 files changed

+0
-82
lines changed

5 files changed

+0
-82
lines changed

felix/bpf/proxy/proxy_test.go

-77
Original file line numberDiff line numberDiff line change
@@ -610,83 +610,6 @@ var _ = Describe("BPF Proxy", func() {
610610
})
611611
})
612612
})
613-
614-
Context("with terminating workloads", func() {
615-
var (
616-
p proxy.Proxy
617-
dp *mockSyncer
618-
k8s *fake.Clientset
619-
)
620-
621-
BeforeEach(func() {
622-
By("creating proxy with fake client and mock syncer", func() {
623-
var err error
624-
625-
k8s = fake.NewSimpleClientset(testSvc, testSvcEpsSlice)
626-
syncStop = make(chan struct{})
627-
dp = newMockSyncer(syncStop)
628-
629-
opts := []proxy.Option{proxy.WithImmediateSync()}
630-
631-
p, err = proxy.New(k8s, dp, "test-node", opts...)
632-
Expect(err).NotTo(HaveOccurred())
633-
})
634-
})
635-
636-
AfterEach(func() {
637-
By("stopping the proxy", func() {
638-
close(syncStop)
639-
p.Stop()
640-
})
641-
})
642-
643-
It("should see IsReady=false and IsTerminating=true", func() {
644-
By("getting the initial sync")
645-
646-
dp.checkState(func(s proxy.DPSyncerState) {
647-
Expect(len(s.SvcMap)).To(Equal(1))
648-
Expect(len(s.EpsMap)).To(Equal(1))
649-
650-
})
651-
652-
By("placing one endpoint to terminating state")
653-
654-
falsePtr := new(bool)
655-
*falsePtr = false
656-
657-
truePtr := new(bool)
658-
*truePtr = true
659-
660-
testSvcEpsSlice.Endpoints[0].Conditions.Ready = falsePtr
661-
testSvcEpsSlice.Endpoints[0].Conditions.Terminating = truePtr
662-
err := k8s.Tracker().Update(discovery.SchemeGroupVersion.WithResource("endpointslices"),
663-
testSvcEpsSlice, "default")
664-
Expect(err).NotTo(HaveOccurred())
665-
666-
dp.checkState(func(s proxy.DPSyncerState) {
667-
Expect(len(s.SvcMap)).To(Equal(1))
668-
Expect(len(s.EpsMap)).To(Equal(1))
669-
670-
var key k8sp.ServicePortName
671-
672-
for key = range s.EpsMap {
673-
}
674-
675-
isReady := 0
676-
isTerminating := 0
677-
for _, ep := range s.EpsMap[key] {
678-
if ep.IsReady() {
679-
isReady++
680-
}
681-
if ep.IsTerminating() {
682-
isTerminating++
683-
}
684-
}
685-
Expect(isReady).To(Equal(1))
686-
Expect(isTerminating).To(Equal(1))
687-
})
688-
})
689-
})
690613
})
691614

692615
type mockSyncer struct {

felix/calc/calc_graph.go

-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ package calc
1616

1717
import (
1818
"github.com/prometheus/client_golang/prometheus"
19-
"github.com/sirupsen/logrus"
2019
log "github.com/sirupsen/logrus"
2120

2221
v3 "github.com/projectcalico/api/pkg/apis/projectcalico/v3"
@@ -393,7 +392,6 @@ func NewCalculationGraph(callbacks PipelineCallbacks, conf *config.Config, liveC
393392
// |
394393
// <dataplane>
395394
//
396-
logrus.Info("Marmar")
397395
l3RR := NewL3RouteResolver(hostname, callbacks, conf.UseNodeResourceUpdates(), conf.RouteSource)
398396
l3RR.RegisterWith(allUpdDispatcher, localEndpointDispatcher)
399397
l3RR.OnAlive = liveCallback

felix/dataplane/linux/bpf_ep_mgr.go

-1
Original file line numberDiff line numberDiff line change
@@ -3423,7 +3423,6 @@ func (m *bpfEndpointManager) loadPolicyProgram(
34233423
log.WithFields(log.Fields{
34243424
"progName": progName,
34253425
"ipFamily": ipFamily,
3426-
"rules": rules,
34273426
}).Debug("Generating policy program...")
34283427

34293428
ipsetsMapFD := m.v4.IpsetsMap.MapFD()

felix/dataplane/linux/int_dataplane.go

-1
Original file line numberDiff line numberDiff line change
@@ -2054,7 +2054,6 @@ func (d *InternalDataplane) apply() {
20542054
for _, mgr := range d.allManagers {
20552055
err := mgr.CompleteDeferredWork()
20562056
if err != nil {
2057-
log.Infof("Marva: %v", mgr)
20582057
log.WithField("manager", reflect.TypeOf(mgr).Name()).WithError(err).Debug(
20592058
"couldn't complete deferred work for manager, will try again later")
20602059
d.dataplaneNeedsSync = true

felix/fv/ipip_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ var _ = infrastructure.DatastoreDescribe("_BPF-SAFE_ IPIP topology before adding
6565
if BPFMode() && getDataStoreType(infra) == "etcdv3" {
6666
Skip("Skipping BPF test for etcdv3 backend.")
6767
}
68-
6968
tc, client = infrastructure.StartNNodeTopology(2, infrastructure.DefaultTopologyOptions(), infra)
7069

7170
// Install a default profile that allows all ingress and egress, in the absence of any Policy.

0 commit comments

Comments
 (0)