- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for makeService (0.23 sec)
-
pilot/pkg/serviceregistry/mock/discovery_mock.go
HelloService = MakeService(ServiceArgs{ Hostname: "hello.default.svc.cluster.local", Address: "10.1.0.0", ServiceAccounts: []string{}, ClusterID: "cluster-1", }) // ReplicatedFooServiceName is a service replicated in all clusters. ReplicatedFooServiceName = host.Name("foo.default.svc.cluster.local") ReplicatedFooServiceV1 = MakeService(ServiceArgs{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 23 02:37:56 UTC 2022 - 2.7K bytes - Viewed (0) -
pilot/pkg/serviceregistry/mock/discovery_test.go
func TestMakeIP(t *testing.T) { HelloService := MakeService(ServiceArgs{ Hostname: "hello.default.svc.cluster.local", Address: "10.1.0.0", ServiceAccounts: []string{}, ClusterID: "cluster-1", }) HelloInstanceV0 := MakeIP(HelloService, 0) if HelloInstanceV0 != "10.1.1.0" { t.Fatalf("MakeIP() can not handle ip4 address.") } HelloService1 := MakeService(ServiceArgs{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jan 09 17:33:49 UTC 2023 - 1.6K bytes - Viewed (0) -
pkg/api/service/testing/make.go
type Tweak func(*api.Service) // MakeService helps construct Service objects (which pass API validation) more // legibly and tersely than a Go struct definition. By default this produces // a ClusterIP service with a single port and a trivial selector. The caller // can pass any number of tweak functions to further modify the result. func MakeService(name string, tweaks ...Tweak) *api.Service {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:15 UTC 2023 - 7.1K bytes - Viewed (0) -
pilot/pkg/serviceregistry/mock/discovery.go
Labels: map[string]string{"version": fmt.Sprintf("v%d", version)}, Locality: locality, }, Service: service, ServicePort: port, } } // MakeService creates a memory service func MakeService(args ServiceArgs) *model.Service { return &model.Service{ CreationTime: time.Now(), Hostname: args.Hostname, ClusterVIPs: model.AddressMap{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Aug 07 18:40:05 UTC 2023 - 3.7K bytes - Viewed (0) -
pilot/pkg/serviceregistry/serviceentry/store_test.go
store := serviceStore{ servicesBySE: map[types.NamespacedName][]*model.Service{}, } expectedServices := []*model.Service{ makeService("*.istio.io", "httpDNSRR", constants.UnspecifiedIP, map[string]int{"http-port": 80, "http-alt-port": 8080}, true, model.DNSRoundRobinLB), makeService("*.istio.io", "httpDNSRR", constants.UnspecifiedIP, map[string]int{"http-port": 80, "http-alt-port": 8080}, true, model.DNSLB), }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 15:31:09 UTC 2024 - 8.1K bytes - Viewed (0)