Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for labels (1.39 sec)

  1. istioctl/pkg/checkinject/checkinject.go

    			if selector == nil {
    				return nil
    			}
    			labels := make([]string, 0)
    			for _, me := range selector.MatchExpressions {
    				if me.Operator != metav1.LabelSelectorOpIn {
    					continue
    				}
    				for _, v := range me.Values {
    					labels = append(labels, fmt.Sprintf("%s=%s", me.Key, v))
    				}
    			}
    			return labels
    		}
    
    		var isDeactivated bool
    		for _, wh := range whs {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  2. cmd/metrics-v3-handler.go

    	Type   string   `json:"type"`
    	Labels []string `json:"labels"`
    }
    
    func (md metricDisplay) String() string {
    	return fmt.Sprintf("Name: %s\nType: %s\nHelp: %s\nLabels: {%s}\n", md.Name, md.Type, md.Help, strings.Join(md.Labels, ","))
    }
    
    func (md metricDisplay) TableRow() string {
    	labels := strings.Join(md.Labels, ",")
    	if labels == "" {
    		labels = ""
    	} else {
    		labels = "`" + labels + "`"
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 17:37:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  3. cmd/metrics-resource.go

    				updateResourceMetrics(memSubsystem, memFree, float64(stats.Free), labels, false)
    				updateResourceMetrics(memSubsystem, memShared, float64(stats.Shared), labels, false)
    				updateResourceMetrics(memSubsystem, memBuffers, float64(stats.Buffers), labels, false)
    				updateResourceMetrics(memSubsystem, memAvailable, float64(stats.Available), labels, false)
    				updateResourceMetrics(memSubsystem, memCache, float64(stats.Cache), labels, false)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 23:56:12 GMT 2024
    - 17.4K bytes
    - Viewed (0)
  4. istioctl/pkg/waypoint/waypoint_test.go

    }
    
    func makeGatewayWithRevision(name, namespace string, programmed, isWaypoint bool, rev string) *gateway.Gateway {
    	gw := makeGateway(name, namespace, programmed, isWaypoint)
    	if gw.Labels == nil {
    		gw.Labels = make(map[string]string)
    	}
    	gw.Labels[label.IoIstioRev.Name] = rev
    	return gw
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 04 15:53:09 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  5. istioctl/pkg/util/handlers/handlers.go

    func SelectorsForObject(object runtime.Object) (namespace string, selector labels.Selector, err error) {
    	switch t := object.(type) {
    	case *gatewayapi.Gateway:
    		if !gateway.IsManaged(&t.Spec) {
    			return "", nil, fmt.Errorf("gateway is not a managed gateway")
    		}
    		namespace = t.Namespace
    		selector, err = labels.Parse(constants.GatewayNameLabel + "=" + t.Name)
    	case *gatewayapibeta.Gateway:
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Feb 06 15:01:41 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  6. istioctl/pkg/tag/tag_test.go

    							Name: "istio-revision-test",
    							Labels: map[string]string{
    								label.IoIstioRev.Name: "revision",
    								IstioTagLabel:         "test",
    							},
    						},
    					},
    				},
    			},
    			namespaces: corev1.NamespaceList{
    				Items: []corev1.Namespace{
    					{
    						ObjectMeta: metav1.ObjectMeta{
    							Name:   "dependent",
    							Labels: map[string]string{label.IoIstioRev.Name: "test"},
    						},
    					},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Nov 17 22:41:06 GMT 2023
    - 8.7K bytes
    - Viewed (0)
  7. 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)
  8. istioctl/pkg/checkinject/checkinject_test.go

    				c.pod.Labels, c.ns.Labels)
    			assert.Equal(t, c.expectedMessages, checkResults)
    		})
    	}
    }
    
    var nsTestObject = func(namespace, injLabelValue, revLabelValue string) *corev1.Namespace {
    	labels := map[string]string{}
    	if injLabelValue != "" {
    		labels["istio-injection"] = injLabelValue
    	}
    	if revLabelValue != "" {
    		labels[label.IoIstioRev.Name] = revLabelValue
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  9. cni/pkg/plugin/plugin_test.go

    	ns.ObjectMeta.Labels = map[string]string{constants.DataplaneModeLabel: constants.DataplaneModeAmbient}
    	pod.ObjectMeta.Labels = map[string]string{constants.DataplaneModeLabel: constants.DataplaneModeNone}
    	pod.Spec.Containers = []corev1.Container{app}
    
    	testDoAddRun(t, cniConf, testNSName, pod, ns)
    
    	wasCalled := serverClose()
    	// Pod has an explicit opt-out label, should not be added to ambient mesh
    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)
  10. operator/cmd/mesh/test-util_test.go

    			ret.append(v)
    		}
    	}
    	return ret
    }
    
    // labels returns a subset of o where the object's labels match all the given labels.
    func (o *ObjectSet) labels(labels ...string) *ObjectSet {
    	ret := &ObjectSet{}
    	for _, obj := range o.objMap {
    		hasAll := true
    		for _, l := range labels {
    			lkv := strings.Split(l, "=")
    			if len(lkv) != 2 {
    				panic("label must have format key=value")
    			}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 15.3K bytes
    - Viewed (0)
Back to top