- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for isNaked (0.12 sec)
-
tests/integration/security/util/reachability/context.go
to.Config().Service, opts.Port.Name, opts.HTTP.Path, tpe) t.NewSubTest(subTestName). Run(func(t framework.TestContext) { if (from.Config().IsNaked()) && len(toClusters) > 1 { // TODO use echotest to generate the cases that would work for multi-network + naked t.Skip("https://github.com/istio/istio/issues/37307") }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 23 21:20:43 UTC 2022 - 8.6K bytes - Viewed (0) -
tests/integration/security/pass_through_filter_chain_test.go
allow := allowValue(expect.mtlsSucceeds) if from.Config().IsNaked() { allow = allowValue(expect.plaintextSucceeds) } if allow { opts.Check = check.OK() } else { opts.Check = check.ErrorOrStatus(http.StatusForbidden) } mtlsString := "mtls" if from.Config().IsNaked() { mtlsString = "plaintext" }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 11.9K bytes - Viewed (0) -
pkg/test/framework/components/echo/check/checkers.go
return fmt.Errorf("reached network not in %v, got %v", expectedByNetwork.Networks(), networkHits) } } return nil } func isNaked(c echo.Caller) bool { if c != nil { if inst, ok := c.(echo.Instance); ok { return inst.Config().IsNaked() } } return false } func clusterFor(c echo.Caller) cluster.Cluster { if c != nil { // Determine the source network of the caller.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 03 16:19:07 UTC 2023 - 17.5K bytes - Viewed (0) -
pkg/test/framework/components/echo/config.go
func (c Config) IsHeadless() bool { return c.Headless } func (c Config) IsStatefulSet() bool { return c.StatefulSet } // IsNaked checks if the config has no sidecar. // Note: instances that mix subsets with and without sidecars are considered 'naked'. func (c Config) IsNaked() bool { for _, s := range c.Subsets { if s.Annotations != nil && s.Annotations[annotation.SidecarInject.Name] == "false" {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 09 12:26:52 UTC 2024 - 18.2K bytes - Viewed (0) -
tests/integration/security/reachability_test.go
} } return false } } var fromNaked condition = func(from echo.Instance, _ echo.CallOptions) bool { return from.Config().IsNaked() } var toNaked condition = func(_ echo.Instance, opts echo.CallOptions) bool { return opts.To.Config().IsNaked() } var toHeadless condition = func(_ echo.Instance, opts echo.CallOptions) bool { return opts.To.Config().IsHeadless() }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 02 21:29:40 UTC 2024 - 20.6K bytes - Viewed (0) -
pkg/test/framework/components/echo/match/matchers_test.go
{app: headless1, expect: false}, {app: naked1, expect: true}, {app: external1, expect: true}, } for _, tt := range tests { t.Run(tt.app.Config().Service, func(t *testing.T) { if got := tt.app.Config().IsNaked(); got != tt.expect { t.Errorf("got %v expected %v", got, tt.expect) } }) } } var _ echo.Instance = fakeInstance{}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 5.2K bytes - Viewed (0) -
pkg/test/framework/components/echo/match/matchers.go
var NotExternal = Not(External) // Naked matches instances with any subset marked with SidecarInject equal to false. var Naked Matcher = func(i echo.Instance) bool { return i.Config().IsNaked() } // AllNaked matches instances where every subset has SidecarInject set to false. var AllNaked Matcher = func(i echo.Instance) bool { return i.Config().IsAllNaked() }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 02 21:29:40 UTC 2024 - 5.6K bytes - Viewed (0) -
pkg/test/framework/components/echo/echotest/filters.go
match.NotWaypoint, ) } // reachableFromNaked filters out all virtual machines and any instance that isn't on the same network func reachableFromNaked(from echo.Instance) match.Matcher { if !from.Config().IsNaked() { return match.Any } return match.And( match.Network(from.Config().Cluster.NetworkName()), match.NotVM)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 29 23:48:45 UTC 2024 - 8.9K bytes - Viewed (0) -
tests/integration/ambient/baseline_test.go
// mtlsOnExpect defines our expectations for when mTLS is expected when its enabled mtlsOnExpect := func(from echo.Instance, opts echo.CallOptions) bool { if from.Config().IsNaked() || opts.To.Config().IsNaked() { // If one of the two endpoints is naked, we don't send mTLS return false } if opts.To.Config().IsHeadless() && opts.To.Instances().Contains(from) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 00:07:28 UTC 2024 - 78.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketReader.kt
val reservedFlag3 = b0 and B0_FLAG_RSV3 != 0 if (reservedFlag3) throw ProtocolException("Unexpected rsv3 flag") val b1 = source.readByte() and 0xff val isMasked = b1 and B1_FLAG_MASK != 0 if (isMasked == isClient) { // Masked payloads must be read on the server. Unmasked payloads must be read on the client. throw ProtocolException( if (isClient) {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9.8K bytes - Viewed (0)