- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for dataPlaneCount (0.21 sec)
-
pilot/pkg/status/distribution/report_test.go
"testing" . "github.com/onsi/gomega" "gopkg.in/yaml.v2" "istio.io/istio/pilot/pkg/status" ) func TestReportSerialization(t *testing.T) { in := Report{ Reporter: "Me", DataPlaneCount: 10, InProgressResources: map[string]int{ (&status.Resource{ Name: "water", Namespace: "default", }).String(): 1, }, } outbytes, err := yaml.Marshal(in) RegisterTestingT(t)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 1.2K bytes - Viewed (0) -
pilot/pkg/status/distribution/reporter.go
func (r *Reporter) buildReport() (Report, []status.Resource) { r.mu.RLock() defer r.mu.RUnlock() var finishedResources []status.Resource out := Report{ Reporter: r.PodName, DataPlaneCount: len(r.status), InProgressResources: map[string]int{}, } // for every resource in flight for _, ipr := range r.inProgressResources { res := ipr.Resource key := res.String()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jan 30 17:25:17 UTC 2024 - 11.5K bytes - Viewed (0) -
pilot/pkg/status/distribution/reporter_test.go
// build a report, which should have only two dataplanes, with 50% acking v2 of config rpt, prunes := r.buildReport() r.removeCompletedResource(prunes) Expect(rpt.DataPlaneCount).To(Equal(2)) Expect(rpt.InProgressResources).To(Equal(map[string]int{ myResources[0].String(): 2, myResources[1].String(): 1, myResources[2].String(): 2, }))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jan 30 17:25:17 UTC 2024 - 4.4K bytes - Viewed (0)