Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for filterMetadata (0.32 sec)

  1. pilot/pkg/networking/util/util_test.go

    				Namespace:        "default",
    				Domain:           "svc.cluster.local",
    				GroupVersionKind: gvk.DestinationRule,
    			},
    			&core.Metadata{
    				FilterMetadata: map[string]*structpb.Struct{},
    			},
    			&core.Metadata{
    				FilterMetadata: map[string]*structpb.Struct{
    					IstioMetadataKey: {
    						Fields: map[string]*structpb.Value{
    							"config": {
    								Kind: &structpb.Value_StringValue{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 40K bytes
    - Viewed (0)
  2. pilot/pkg/networking/util/util.go

    	}
    
    	if metadata == nil {
    		metadata = &core.Metadata{
    			FilterMetadata: map[string]*structpb.Struct{},
    		}
    	}
    
    	if _, ok := metadata.FilterMetadata[IstioMetadataKey]; !ok {
    		metadata.FilterMetadata[IstioMetadataKey] = &structpb.Struct{
    			Fields: map[string]*structpb.Value{},
    		}
    	}
    
    	metadata.FilterMetadata[IstioMetadataKey].Fields["alpn_override"] = &structpb.Value{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  3. pilot/pkg/xds/endpoints/mtls_checker.go

    		destinationRule: tlsModeForDestinationRule(dr, subset, svcPort),
    	}
    }
    
    // isMtlsEnabled returns true if the given lbEp has mTLS enabled.
    func isMtlsEnabled(lbEp *endpoint.LbEndpoint) bool {
    	return lbEp.Metadata.FilterMetadata[util.EnvoyTransportSocketMetadataKey].
    		GetFields()[model.TLSModeLabelShortname].
    		GetStringValue() == model.IstioMutualTLSModeLabel
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 01 07:32:22 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/cluster_test.go

    			clustersWithMetadata++
    			g.Expect(cluster.Metadata).NotTo(BeNil())
    			md := cluster.Metadata
    			g.Expect(md.FilterMetadata[util.IstioMetadataKey]).NotTo(BeNil())
    			istio := md.FilterMetadata[util.IstioMetadataKey]
    			g.Expect(istio.Fields["config"]).NotTo(BeNil())
    			dr := istio.Fields["config"]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/cluster.go

    		cluster.Metadata = &core.Metadata{
    			FilterMetadata: map[string]*structpb.Struct{},
    		}
    	}
    	// Create Istio metadata if does not exist yet
    	if _, ok := cluster.Metadata.FilterMetadata[util.IstioMetadataKey]; !ok {
    		cluster.Metadata.FilterMetadata[util.IstioMetadataKey] = &structpb.Struct{
    			Fields: map[string]*structpb.Value{},
    		}
    	}
    	return cluster.Metadata.FilterMetadata[util.IstioMetadataKey]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 33K bytes
    - Viewed (0)
  6. pilot/pkg/xds/endpoints/endpoint_builder.go

    		}}
    		ep.Metadata.FilterMetadata[util.OriginalDstMetadataKey] = util.BuildTunnelMetadataStruct(address, port)
    		if b.dir != model.TrafficDirectionInboundVIP {
    			// Add TLS metadata matcher to indicate we can use HBONE for this endpoint.
    			// We skip this for service waypoint, which doesn't need to dynamically match mTLS vs HBONE.
    			ep.Metadata.FilterMetadata[util.EnvoyTransportSocketMetadataKey] = &structpb.Struct{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 02:18:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/cluster_builder_test.go

    		}
    	}
    }
    
    func verifyALPNOverride(t *testing.T, md *core.Metadata, tlsMode networking.ClientTLSSettings_TLSmode) {
    	istio, ok := md.FilterMetadata[util.IstioMetadataKey]
    	if tlsMode == networking.ClientTLSSettings_SIMPLE || tlsMode == networking.ClientTLSSettings_MUTUAL {
    		if !ok {
    			t.Errorf("Istio metadata not found")
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 110.4K bytes
    - Viewed (0)
  8. pilot/pkg/xds/endpoints/ep_filters_test.go

    			// check workload metadata
    			var gotWorkloadMetadata []string
    			for _, llbEndpoints := range filtered {
    				for _, ep := range llbEndpoints.LbEndpoints {
    					metadata := ep.Metadata.FilterMetadata[util.IstioMetadataKey].Fields["workload"].GetStringValue()
    					gotWorkloadMetadata = append(gotWorkloadMetadata, metadata)
    				}
    			}
    			if !slices.Equal(gotWorkloadMetadata, tt.wantWorkloadMetadata) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  9. istioctl/pkg/describe/describe.go

    			return true
    		}
    	}
    
    	return false
    }
    
    // getIstioConfig returns .metadata.filter_metadata.istio.config, err
    func getIstioConfig(metadata *core.Metadata) (string, error) {
    	if metadata != nil {
    		istioConfig := asMyProtoValue(metadata.FilterMetadata[util.IstioMetadataKey]).
    			keyAsString("config")
    		return istioConfig, nil
    	}
    	return "", fmt.Errorf("no istio config")
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/envoy/configdump/testdata/routes/k8s-gateway-http-route-path-prefix/configdump.json

                 503
                ]
               },
               "cluster_not_found_response_code": "INTERNAL_SERVER_ERROR",
               "max_grpc_timeout": "0s"
              },
              "metadata": {
               "filter_metadata": {
                "istio": {
                 "config": "/apis/networking.istio.io/v1alpha3/namespaces/default/virtual-service/http-0-istio-autogenerated-k8s-gateway"
                }
               }
              },
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 29 12:37:14 UTC 2023
    - 3.1K bytes
    - Viewed (0)
Back to top