Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for VirtualServiceDependencies (0.27 sec)

  1. pilot/pkg/networking/core/route/route_cache.go

    			configs = append(configs, model.ConfigKey{Kind: kind.ServiceEntry, Name: alias.Hostname.String(), Namespace: alias.Namespace}.HashCode())
    		}
    	}
    	for _, vs := range r.VirtualServices {
    		for _, cfg := range model.VirtualServiceDependencies(vs) {
    			configs = append(configs, cfg.HashCode())
    		}
    	}
    	// add delegate virtual services to dependent configs
    	// so that we can clear the rds cache when delegate virtual services are updated
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. pilot/pkg/model/virtualservice.go

    	return cfg.Annotations[constants.InternalRouteSemantics] == constants.RouteSemanticsGateway
    }
    
    // VirtualServiceDependencies returns dependent configs of the vs,
    // for internal vs generated from gateway-api routes, it returns the parent routes,
    // otherwise it just returns the vs as is.
    func VirtualServiceDependencies(vs config.Config) []ConfigKey {
    	if !UseGatewaySemantics(vs) {
    		return []ConfigKey{
    			{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 11:17:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  3. pilot/pkg/model/virtualservice_test.go

    					Name:      "bar",
    				},
    			},
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if got := VirtualServiceDependencies(tt.vs); !reflect.DeepEqual(got, tt.want) {
    				t.Errorf("VirtualServiceDependencies got %v, want %v", got, tt.want)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 60.6K bytes
    - Viewed (0)
  4. pilot/pkg/model/sidecar.go

    	for _, delegate := range delegates {
    		out.AddConfigDependencies(delegate)
    	}
    	for _, vs := range defaultEgressListener.virtualServices {
    		for _, cfg := range VirtualServiceDependencies(vs) {
    			out.AddConfigDependencies(cfg.HashCode())
    		}
    	}
    
    	// Now that we have all the services that sidecars using this scope (in
    	// this config namespace) will see, identify all the destinationRules
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 20:32:23 UTC 2024
    - 38.4K bytes
    - Viewed (0)
Back to top