Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 39 for NodeMetadata (0.3 sec)

  1. pilot/pkg/networking/core/listener_builder_test.go

    		useExactBalance bool
    	}{
    		{
    			useExactBalance: false,
    		},
    		{
    			useExactBalance: true,
    		},
    	}
    
    	for _, tt := range tests {
    		proxy := &model.Proxy{
    			Metadata: &model.NodeMetadata{
    				InboundListenerExactBalance:  model.StringBool(tt.useExactBalance),
    				OutboundListenerExactBalance: model.StringBool(tt.useExactBalance),
    			},
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  2. pilot/pkg/model/push_context_test.go

    				Metadata:        &NodeMetadata{IstioVersion: "1.4.0", Labels: map[string]string{"app": "v1"}},
    				ConfigNamespace: "test-ns",
    			},
    			expectedListenerPatches: 2,
    			expectedClusterPatches:  2,
    		},
    		{
    			name: "proxy in root namespace matches an envoyfilter",
    			proxy: &Proxy{
    				Labels:          map[string]string{"app": "v1"},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
  3. pilot/pkg/autoregistration/controller_test.go

    		"missing ip":         {Metadata: &model.NodeMetadata{Namespace: wgA.Namespace, AutoRegisterGroup: wgA.Name}},
    		"missing namespace":  {IPAddresses: []string{"1.2.3.4"}, Metadata: &model.NodeMetadata{AutoRegisterGroup: wgA.Name}},
    		"non-existent group": {IPAddresses: []string{"1.2.3.4"}, Metadata: &model.NodeMetadata{Namespace: wgA.Namespace, AutoRegisterGroup: "dne"}},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 00:00:36 UTC 2024
    - 31.4K bytes
    - Viewed (0)
  4. pilot/pkg/xds/endpoints/endpoint_builder_test.go

    				},
    			},
    			expectedLabels: []byte("a:a b:b "),
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			b := EndpointBuilder{
    				proxy: &model.Proxy{
    					Metadata: &model.NodeMetadata{},
    					Labels: map[string]string{
    						"app": "foo",
    						"a":   "a",
    						"b":   "b",
    					},
    				},
    				push: &model.PushContext{
    					Mesh: tt.mesh,
    				},
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/networkfilter_test.go

    			cg := NewConfigGenTest(t, TestOptions{Services: services})
    
    			fcc := inboundChainConfig{
    				port: model.ServiceInstancePort{ServicePort: &model.Port{}},
    			}
    			node := &model.Proxy{Metadata: &model.NodeMetadata{IdleTimeout: tt.idleTimeout}}
    			listenerFilters := NewListenerBuilder(cg.SetupProxy(node), cg.PushContext()).buildInboundNetworkFilters(fcc)
    			tcp := &tcp.TcpProxy{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  6. pilot/pkg/model/telemetry_logging_test.go

    			assert.Equal(t, tt.excepted, got)
    		})
    	}
    }
    
    func TestAccessLoggingCache(t *testing.T) {
    	sidecar := &Proxy{ConfigNamespace: "default", Metadata: &NodeMetadata{Labels: map[string]string{"app": "test"}}}
    	otherNamespace := &Proxy{ConfigNamespace: "common", Metadata: &NodeMetadata{Labels: map[string]string{"app": "test"}}}
    	cfgs := &tpb.Telemetry{
    		AccessLogging: []*tpb.AccessLogging{
    			{
    				Providers: []*tpb.ProviderRef{
    					{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 54K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/peer_authentication_simulation_test.go

    					Result: simulation.Result{ClusterMatched: "InboundPassthroughCluster"},
    				},
    			},
    		},
    	}
    	proxy := &model.Proxy{
    		Labels:   map[string]string{"app": "foo"},
    		Metadata: &model.NodeMetadata{Labels: map[string]string{"app": "foo"}},
    	}
    	for _, tt := range cases {
    		runSimulationTest(t, proxy, xds.FakeOptions{}, simulationTest{
    			name:   tt.name,
    			config: tt.config,
    			calls:  tt.calls,
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/cluster_test.go

    }
    
    func buildSniDnatTestClustersForGateway(t *testing.T, sniValue string) []*cluster.Cluster {
    	return buildSniTestClustersWithMetadata(t, sniValue, model.Router, &model.NodeMetadata{})
    }
    
    func buildSniTestClustersWithMetadata(t testing.TB, sniValue string, typ model.NodeType, meta *model.NodeMetadata) []*cluster.Cluster {
    	return buildTestClusters(clusterTest{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/gateway_test.go

    			},
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			ret := buildGatewayListenerTLSContext(tc.mesh, tc.server, &pilot_model.Proxy{
    				Metadata: &pilot_model.NodeMetadata{},
    			}, tc.transportProtocol)
    			if diff := cmp.Diff(tc.result, ret, protocmp.Transform()); diff != "" {
    				t.Errorf("got diff: %v", diff)
    			}
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 144K bytes
    - Viewed (0)
  10. pilot/pkg/networking/core/listener_test.go

    		DNSDomain:   "default.example.org",
    		Metadata: &model.NodeMetadata{
    			Namespace: "not-default",
    		},
    		ConfigNamespace: "not-default",
    	}
    	pr.DiscoverIPMode()
    	return pr
    }
    
    func getIPv6Proxy() *model.Proxy {
    	pr := &model.Proxy{
    		Type:        model.SidecarProxy,
    		IPAddresses: []string{"2001:1::1"},
    		Metadata: &model.NodeMetadata{
    			Namespace: "not-default",
    		},
    		ConfigNamespace: "not-default",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 93.6K bytes
    - Viewed (0)
Back to top