Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for map (0.16 sec)

  1. cni/pkg/util/podutil_test.go

    	assert.Equal(t, len(podIPs), 0)
    }
    
    func TestPodRedirectionEnabled(t *testing.T) {
    	var (
    		ambientEnabledLabel     = map[string]string{constants.DataplaneModeLabel: constants.DataplaneModeAmbient}
    		ambientDisabledLabel    = map[string]string{constants.DataplaneModeLabel: constants.DataplaneModeNone}
    		sidecarStatusAnnotation = map[string]string{annotation.SidecarStatus.Name: "test"}
    
    		namespaceWithAmbientEnabledLabel = &corev1.Namespace{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  2. istioctl/pkg/waypoint/waypoint.go

    			}
    
    			if gw.Labels == nil {
    				gw.Labels = map[string]string{}
    			}
    
    			gw.Labels[constants.AmbientWaypointForTrafficTypeLabel] = trafficType
    		}
    
    		if revision != "" {
    			gw.Labels = map[string]string{label.IoIstioRev.Name: revision}
    		}
    		return &gw, nil
    	}
    	waypointGenerateCmd := &cobra.Command{
    		Use:   "generate",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 19:45:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/ztunnel/configdump/connections.go

    	}
    	fmt.Fprintln(c.Stdout, string(out))
    	return nil
    }
    
    func (c *ConfigWriter) PrintConnectionsSummary(filter ConnectionsFilter) error {
    	w := c.tabwriter()
    	d := c.ztunnelDump
    	serviceNames := map[string]string{}
    	workloadNames := map[string]string{}
    	for netIP, s := range d.Services {
    		_, ip, _ := strings.Cut(netIP, "/")
    		serviceNames[ip] = s.Hostname
    	}
    	for netIP, s := range d.Workloads {
    		_, ip, _ := strings.Cut(netIP, "/")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Apr 22 15:39:28 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/compare/comparator.go

    	envoy, istiod *configdump.Wrapper
    	w             io.Writer
    	context       int
    	location      string
    }
    
    // NewComparator is a comparator constructor
    func NewComparator(w io.Writer, istiodResponses map[string][]byte, envoyResponse []byte) (*Comparator, error) {
    	c := &Comparator{}
    	for _, resp := range istiodResponses {
    		istiodDump := &configdump.Wrapper{}
    		err := json.Unmarshal(resp, istiodDump)
    		if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sun Apr 21 17:42:54 GMT 2024
    - 3.7K bytes
    - Viewed (1)
  5. istioctl/pkg/writer/ztunnel/configdump/workload.go

    	return nil
    }
    
    func waypointName(wl *ZtunnelWorkload, services map[string]*ZtunnelService) string {
    	if wl.Waypoint == nil {
    		return "None"
    	}
    
    	if svc, ok := services[wl.Waypoint.Destination]; ok {
    		return svc.Name
    	}
    
    	return "NA" // Shouldn't normally reach here
    }
    
    func serviceWaypointName(svc *ZtunnelService, services map[string]*ZtunnelService) string {
    	if svc.Waypoint == nil {
    		return "None"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 4K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/informers_test.go

    			Namespace: "test",
    			UID:       "1234",
    			Labels:    map[string]string{constants.DataplaneModeLabel: constants.DataplaneModeNone},
    		},
    		Spec: corev1.PodSpec{
    			NodeName: NodeName,
    		},
    		Status: corev1.PodStatus{
    			PodIP: "11.1.1.12",
    		},
    	}
    	ns := &corev1.Namespace{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:   "test",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/net.go

    }
    
    func (s *NetServer) buildZtunnelSnapshot(ambientPodUIDs map[types.UID]*corev1.Pod) error {
    	// first add all the pods as empty:
    	for uid := range ambientPodUIDs {
    		s.currentPodSnapshot.Ensure(string(uid))
    	}
    
    	// populate full pod snapshot from cgroups
    	return s.scanProcForPodsAndCache(ambientPodUIDs)
    }
    
    func (s *NetServer) scanProcForPodsAndCache(pods map[types.UID]*corev1.Pod) error {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.2K bytes
    - Viewed (1)
  8. cni/pkg/plugin/plugin_test.go

    			Namespace:   testNSName,
    			Annotations: map[string]string{},
    		},
    		Spec: corev1.PodSpec{
    			Containers: []corev1.Container{app, proxy},
    		},
    	}
    
    	fakeNS := &corev1.Namespace{
    		TypeMeta: metav1.TypeMeta{
    			APIVersion: "core/v1",
    			Kind:       "Namespace",
    		},
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      testNSName,
    			Namespace: "",
    			Labels:    map[string]string{},
    		},
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  9. manifests/charts/istio-control/istio-discovery/values.yaml

        # increasing system churn.
        keepaliveMaxServerConnectionAge: 30m
    
        # Additional labels to apply to the deployment.
        deploymentLabels: {}
    
        ## Mesh config settings
    
        # Install the mesh config map, generated from values.yaml.
        # If false, pilot wil use default values (by default) or user-supplied values.
        configMap: true
    
        # Additional labels to apply on the pod level for monitoring and logging configuration.
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Apr 22 22:00:40 GMT 2024
    - 20.3K bytes
    - Viewed (0)
  10. manifests/charts/istiod-remote/templates/crd-all.gen.yaml

                            required:
                            - number
                            type: object
                          type: array
                          x-kubernetes-list-map-keys:
                          - number
                          x-kubernetes-list-type: map
                      type: object
                    type: array
                  phase:
                    description: |-
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Apr 22 20:20:47 GMT 2024
    - 606.1K bytes
    - Viewed (0)
Back to top