- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for NamespacedNames (0.29 sec)
-
pkg/test/framework/components/echo/namespacedname.go
} var _ sort.Interface = NamespacedNames{} // NamespacedNames is a list of NamespacedName. type NamespacedNames []NamespacedName func (n NamespacedNames) Less(i, j int) bool { return strings.Compare(n[i].PrefixString(), n[j].PrefixString()) < 0 } func (n NamespacedNames) Swap(i, j int) { n[i], n[j] = n[j], n[i] } func (n NamespacedNames) Len() int { return len(n) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Oct 13 23:42:29 UTC 2022 - 2.6K bytes - Viewed (0) -
pkg/test/framework/components/echo/echotest/run.go
for _, svc := range nDestinations(ctx, n, filteredTargets) { svc := svc namespacedNames := svc.NamespacedNames() var toNames []string if includeNS { toNames = namespacedNames.NamesWithNamespacePrefix() } else { toNames = namespacedNames.Names() } ctx.NewSubTestf("to %s", strings.Join(toNames, " ")).Run(func(ctx framework.TestContext) { testFn(ctx, svc)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Sep 27 22:08:42 UTC 2023 - 13K bytes - Viewed (0) -
pkg/test/framework/components/echo/instances.go
app := app g.Go(app.Restart) } return g.Wait().ErrorOrNil() } func (i Instances) Len() int { return len(i) } func (i Instances) NamespacedNames() NamespacedNames { out := make(NamespacedNames, 0, i.Len()) for _, ii := range i { out = append(out, ii.NamespacedName()) } sort.Stable(out) return out
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 25 18:26:17 UTC 2024 - 4.7K bytes - Viewed (0) -
pkg/test/framework/components/echo/services.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 21 16:42:24 UTC 2022 - 3.1K bytes - Viewed (0) -
tests/integration/security/authz_test.go
framework.NewTest(t). Run(func(t framework.TestContext) { allowed := apps.Ns1.A denied := apps.Ns2.A from := allowed.Append(denied) fromMatch := match.AnyServiceName(from.NamespacedNames()) toMatch := match.Not(fromMatch) to := toMatch.GetServiceMatches(apps.Ns1.All) fromAndTo := to.Instances().Append(from) config.New(t). Source(config.File("testdata/authz/mtls.yaml.tmpl")).
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 08 23:36:51 UTC 2024 - 50.1K bytes - Viewed (0) -
tests/integration/security/filebased_tls_origination/main_test.go
for index, namespacedName := range apps.Ns1.All.NamespacedNames() { switch { case namespacedName.Name == "client": client = apps.Ns1.All[index] case namespacedName.Name == "server": server = apps.Ns1.All[index] case namespacedName.Name == "internal-client": internalClient = apps.Ns1.All[index] } } for index, namespacedName := range apps.Ns2.All.NamespacedNames() { switch {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 02 21:29:40 UTC 2024 - 7.3K bytes - Viewed (0) -
pkg/controller/endpointslicemirroring/metrics/cache.go
lock sync.Mutex // numEndpoints represents the total number of endpoints stored in // EndpointSlices. numEndpoints int // cache stores a EndpointPortCache grouped by NamespacedNames representing // Services. cache map[types.NamespacedName]*EndpointPortCache } // EndpointPortCache tracks values for total numbers of desired endpoints as well
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 18:08:12 UTC 2023 - 5.2K bytes - Viewed (0) -
pkg/test/framework/components/echo/echotest/filters_test.go
func TestMain(m *testing.M) { framework.NewSuite(m).EnvironmentFactory(resource.NilEnvironmentFactory).Run() } func TestDeployments(t *testing.T) { if diff := cmp.Diff( all.Services().NamespacedNames(), echo.NamespacedNames{ { Name: "a", Namespace: echo1NS, }, { Name: "a", Namespace: echo2NS, }, { Name: "b", Namespace: echo1NS, },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 13.1K bytes - Viewed (0) -
pkg/test/framework/components/echo/match/matchers.go
return n == i.NamespacedName() } } // AnyServiceName matches instances if they have the same Service and Namespace as any of the provided instances. func AnyServiceName(expected echo.NamespacedNames) Matcher { return func(instance echo.Instance) bool { serviceName := instance.NamespacedName() for _, expectedName := range expected { if serviceName == expectedName { return true } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 02 21:29:40 UTC 2024 - 5.6K bytes - Viewed (0) -
tests/integration/security/ca_custom_root/main_test.go
`, map[string]string{"pem": rootPEM}) cfg.ControlPlaneValues = cfgYaml } func createCustomInstances(apps *deployment.SingleNamespaceView) error { for index, namespacedName := range apps.EchoNamespace.All.NamespacedNames() { switch { case namespacedName.Name == "client": client = apps.EchoNamespace.All[index] case namespacedName.Name == "server": server = apps.EchoNamespace.All[index]
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 02 21:29:40 UTC 2024 - 9.2K bytes - Viewed (0)