Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getOrCreateIstioMetadata (0.21 sec)

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

    	localCluster := cb.buildCluster(clusterName, discoveryType, lbEndpoints,
    		model.TrafficDirectionInboundVIP, &port, svc, nil, subset)
    
    	// Ensure VIP cluster has services metadata for stats filter usage
    	im := getOrCreateIstioMetadata(localCluster.cluster)
    	im.Fields["services"] = &structpb.Value{
    		Kind: &structpb.Value_ListValue{
    			ListValue: &structpb.ListValue{
    				Values: []*structpb.Value{},
    			},
    		},
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/cluster_builder.go

    	// discovery type.
    	maybeApplyEdsConfig(mc.cluster)
    
    	cb.applyMetadataExchange(opts.mutable.cluster)
    
    	if service.MeshExternal {
    		im := getOrCreateIstioMetadata(mc.cluster)
    		im.Fields["external"] = &structpb.Value{
    			Kind: &structpb.Value_BoolValue{
    				BoolValue: true,
    			},
    		}
    	}
    
    	if destRule != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/cluster.go

    					"namespace": {
    						Kind: &structpb.Value_StringValue{
    							StringValue: svc.Attributes.Namespace,
    						},
    					},
    				},
    			},
    		},
    	}
    }
    
    func getOrCreateIstioMetadata(cluster *cluster.Cluster) *structpb.Struct {
    	if cluster.Metadata == nil {
    		cluster.Metadata = &core.Metadata{
    			FilterMetadata: map[string]*structpb.Struct{},
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 33K bytes
    - Viewed (0)
Back to top