Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for isNaked (0.14 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go

    			}
    
    			if schema.Properties != nil {
    				isNamed = true
    			} else if schema.AdditionalProperties != nil {
    				isNamed = false
    			} else {
    				return nil, nil, fmt.Errorf("does not refer to a valid field")
    			}
    			if err := appendToPath(unescaped, isNamed); err != nil {
    				return nil, nil, err
    			}
    			if !scanner.Scan() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KotlinFirReferenceContributor.kt

                        )
                    }
                }
    
                registerProvider provider@{ element: KtValueArgument ->
                    if (element.isNamed()) return@provider null
                    val annotationEntry = element.getParentOfTypeAndBranch<KtAnnotationEntry> { valueArgumentList } ?: return@provider null
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Jun 10 20:18:28 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top