Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 177 for localisty (0.24 sec)

  1. pilot/pkg/serviceregistry/serviceregistry_test.go

    		},
    	}
    	cases := []struct {
    		name     string
    		pod      *v1.Pod
    		node     *v1.Node
    		obj      config.Config
    		expected *core.Locality
    	}{
    		{
    			name:     "no locality",
    			pod:      basePod,
    			node:     baseNode,
    			expected: &core.Locality{},
    		},
    		{
    			name: "pod specific label",
    			pod: func() *v1.Pod {
    				p := basePod.DeepCopy()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/aggregate/controller_test.go

    		mock.ExtHTTPService.DeepCopy(),
    	)
    	for _, port := range mock.HelloService.Ports {
    		discovery1.AddInstance(mock.MakeServiceInstance(mock.HelloService, port, 0, model.Locality{}))
    		discovery1.AddInstance(mock.MakeServiceInstance(mock.HelloService, port, 1, model.Locality{}))
    	}
    
    	discovery2 := memory.NewServiceDiscovery(mock.ReplicatedFooServiceV2.DeepCopy(),
    		mock.WorldService.DeepCopy(),
    		mock.ExtHTTPSService.DeepCopy(),
    	)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 06:28:11 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  3. pilot/pkg/model/service.go

    	}
    	return true
    }
    
    // GetLocalityLabel returns the locality from the supplied label. Because Kubernetes
    // labels don't support `/`, we replace "." with "/" in the supplied label as a workaround.
    func GetLocalityLabel(label string) string {
    	return pm.GetLocalityLabel(label)
    }
    
    // Locality information for an IstioEndpoint
    type Locality struct {
    	// Label for locality on the endpoint. This is a "/" separated string.
    	Label string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 02:03:58 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  4. src/compress/bzip2/move_to_front.go

    }
    
    func (m moveToFrontDecoder) Decode(n int) (b byte) {
    	// Implement move-to-front with a simple copy. This approach
    	// beats more sophisticated approaches in benchmarking, probably
    	// because it has high locality of reference inside of a
    	// single cache line (most move-to-front operations have n < 64).
    	b = m[n]
    	copy(m[1:], m[:n])
    	m[0] = b
    	return
    }
    
    // First returns the symbol at the front of the list.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 1.8K bytes
    - Viewed (0)
  5. pkg/test/loadbalancersim/locality/match.go

    //  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    //  See the License for the specific language governing permissions and
    //  limitations under the License.
    
    package locality
    
    type Match func(Instance) bool
    
    func MatchZone(l Instance) Match {
    	return func(o Instance) bool {
    		return l.Zone == o.Zone &&
    			l.Region == o.Region
    	}
    }
    
    func MatchRegion(l Instance) Match {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 27 20:55:37 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  6. pkg/workloadapi/workload.proto

      // The cluster ID that the workload instance belongs to
      string cluster_id = 18;
    
      // The Locality defines information about where a workload is geographically deployed
      Locality locality = 24;
    
      // Reservations for deleted fields.
      reserved 15;
    }
    
    message Locality {
      string region = 1;
      string zone = 2;
      string subzone = 3;
    }
    
    enum WorkloadStatus {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 18:02:35 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  7. tools/packaging/common/gcp_envoy_bootstrap.json

        {{ else }}
          "id": "projects/{{ .gcp_project_number }}/networks/default/nodes/{{ .nodeID}}",
        {{ end }}
        "cluster": "{{ .cluster }}",
        "locality": {
          {{ if .region }}
          "region": "{{ .region }}",
          {{ end }}
          {{ if .zone }}
          "zone": "{{ .zone }}",
          {{ end }}
          {{ if .sub_zone }}
          "sub_zone": "{{ .sub_zone }}",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 17:05:28 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. pkg/bootstrap/instance_test.go

    	meta   map[string]string
    	labels map[string]string
    }
    
    func (f *fakePlatform) Metadata() map[string]string {
    	return f.meta
    }
    
    func (f *fakePlatform) Locality() *core.Locality {
    	return &core.Locality{}
    }
    
    func (f *fakePlatform) Labels() map[string]string {
    	return f.labels
    }
    
    func (f *fakePlatform) IsKubernetes() bool {
    	return true
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 17:05:28 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  9. pkg/adsc/adsc.go

    	// Revision for this control plane instance. We will only read configs that match this revision.
    	Revision string
    
    	// Meta includes additional metadata for the node
    	Meta *pstruct.Struct
    
    	Locality *core.Locality
    
    	// NodeType defaults to sidecar. "ingress" and "router" are also supported.
    	NodeType model.NodeType
    
    	// IP is currently the primary key used to locate inbound configs. It is sent by client,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 05 22:18:49 UTC 2024
    - 35K bytes
    - Viewed (0)
  10. pkg/bootstrap/config_test.go

    	dir, _ := os.Getwd()
    	defer os.Chdir(dir)
    	// prepare a pod label file
    	tempDir := t.TempDir()
    	os.Chdir(tempDir)
    	os.MkdirAll("./etc/istio/pod/", os.ModePerm)
    	os.WriteFile(constants.PodInfoLabelsPath, []byte(`istio-locality="region.zone.subzone"`), 0o600)
    
    	node, err := GetNodeMetaData(MetadataOptions{
    		ID:                          "test",
    		Envs:                        os.Environ(),
    		ExitOnZeroActiveConnections: true,
    	})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top