Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for NodeMetadata (0.3 sec)

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

    			"foo.com",
    			&model.Proxy{Metadata: &model.NodeMetadata{}},
    			false, false, model.MTLSUnknown,
    			tlsSettings,
    			userSupplied,
    		},
    		{
    			"Metadata cert path override ISTIO_MUTUAL",
    			tlsSettings,
    			[]string{"custom.foo.com"},
    			"custom.foo.com",
    			&model.Proxy{Metadata: &model.NodeMetadata{
    				TLSClientCertChain: "/custom/chain.pem",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 03:53:05 UTC 2024
    - 60.9K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/kube/controller/controller_test.go

    		want  []model.ServiceTarget
    	}{
    		{
    			name:  "proxy with unspecified IP",
    			proxy: &model.Proxy{Metadata: &model.NodeMetadata{}, IPAddresses: nil},
    			want:  nil,
    		},
    		{
    			name:  "proxy with IP not in the registry",
    			proxy: &model.Proxy{Metadata: &model.NodeMetadata{}, IPAddresses: []string{"1.1.1.1"}},
    			want:  nil,
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 85K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. pilot/pkg/serviceregistry/serviceregistry_test.go

    	for _, ambient := range []bool{false, true} {
    		name := "disabled"
    		if ambient {
    			name = "enabled"
    		}
    		m := mesh.DefaultMeshConfig()
    		var nodeMeta *model.NodeMetadata
    		if ambient {
    			nodeMeta = &model.NodeMetadata{EnableHBONE: true}
    			pod = pod.DeepCopy()
    			pod.Annotations[constants.AmbientRedirection] = constants.AmbientRedirectionEnabled
    		}
    		opts := xds.FakeOptions{MeshConfig: m}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/envoyfilter/listener_patch_test.go

    		ConfigNamespace: "not-default",
    		Metadata: &model.NodeMetadata{
    			IstioVersion: "1.2.2",
    			Raw: map[string]any{
    				"foo": "sidecar",
    				"bar": "proxy",
    			},
    		},
    	}
    
    	gatewayProxy := &model.Proxy{
    		Type:            model.Router,
    		ConfigNamespace: "not-default",
    		Metadata: &model.NodeMetadata{
    			IstioVersion: "1.2.2",
    			Raw: map[string]any{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/sidecar_simulation_test.go

    				EndpointPort:    uint32(targetPort),
    			},
    		})
    	}
    	return ret
    }
    
    func TestInboundClusters(t *testing.T) {
    	proxy := &model.Proxy{
    		IPAddresses: []string{"1.2.3.4"},
    		Metadata:    &model.NodeMetadata{},
    	}
    	service := &model.Service{
    		Hostname:       host.Name("backend.default.svc.cluster.local"),
    		DefaultAddress: "1.1.1.1",
    		Ports: model.PortList{&model.Port{
    			Name:     "default",
    			Port:     80,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  9. pilot/pkg/model/sidecar_test.go

    				}
    			}
    
    			if tt.sidecarConfig != nil {
    				dr := sidecarScope.DestinationRule(TrafficDirectionOutbound,
    					&Proxy{
    						Labels:          tt.sidecarConfig.Labels,
    						Metadata:        &NodeMetadata{Labels: tt.sidecarConfig.Labels},
    						ConfigNamespace: tt.sidecarConfig.Namespace,
    					}, host.Name("httpbin.org")).GetRule()
    				assert.Equal(t, dr, tt.expectedDr)
    			}
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 07 09:38:49 UTC 2024
    - 74.3K bytes
    - Viewed (0)
  10. pilot/pkg/networking/core/listener.go

    	default:
    		certProxy := &model.Proxy{}
    		certProxy.IstioVersion = proxy.IstioVersion
    		// If certificate files are specified in gateway configuration, use file based SDS.
    		certProxy.Metadata = &model.NodeMetadata{
    			TLSServerCertChain: serverTLSSettings.ServerCertificate,
    			TLSServerKey:       serverTLSSettings.PrivateKey,
    			TLSServerRootCert:  serverTLSSettings.CaCertificates,
    		}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 55.1K bytes
    - Viewed (0)
Back to top