Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for labels (0.3 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. istioctl/pkg/tag/generate.go

    }
    
    func generateLabels(whLabels, curLabels, customLabels map[string]string, userManaged bool) map[string]string {
    	whLabels = maps.MergeCopy(whLabels, curLabels)
    	whLabels = maps.MergeCopy(whLabels, customLabels)
    	if userManaged {
    		for label := range whLabels {
    			if strings.Contains(label, operatorNamespace) {
    				delete(whLabels, label)
    			}
    		}
    	}
    	return whLabels
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/asm.go

    	if p.firstProg == nil {
    		p.firstProg = prog
    	} else {
    		p.lastProg.Link = prog
    	}
    	p.lastProg = prog
    	if doLabel {
    		p.pc++
    		for _, label := range p.pendingLabels {
    			if p.labels[label] != nil {
    				p.errorf("label %q multiply defined", label)
    				return
    			}
    			p.labels[label] = prog
    		}
    		p.pendingLabels = p.pendingLabels[0:0]
    	}
    	prog.Pc = p.pc
    	if *flags.Debug {
    		fmt.Println(p.lineNum, prog)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 25.3K bytes
    - Viewed (0)
  8. operator/cmd/mesh/manifest-generate_test.go

    	// 3. inject label false
    	// 4. inject label true and revision label
    	// 5. inject label false and revision label
    	// 6. no label
    	// However, we filter out all the disable cases, leaving us with a reasonable number of cases
    	testLabels := []LabelSet{}
    	for _, namespaceLabel := range []klabels.Set{empty, revLabel, legacyLabel, legacyLabelDisabled, legacyAndRevLabel, legacyDisabledAndRevLabel} {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
  9. istioctl/pkg/workload/workload.go

    	lbls := map[string]string{}
    	for k, v := range wg.Spec.Metadata.Labels {
    		lbls[k] = v
    	}
    	// case where a user provided custom workload group has labels in the workload entry template field
    	we := wg.Spec.Template
    	if len(we.Labels) > 0 {
    		fmt.Printf("Labels should be set in the metadata. The following WorkloadEntry labels will override metadata labels: %s\n", we.Labels)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  10. istioctl/pkg/injector/injector-list.go

    	"github.com/spf13/cobra"
    	admitv1 "k8s.io/api/admissionregistration/v1"
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	api_pkg_labels "k8s.io/apimachinery/pkg/labels"
    
    	"istio.io/api/annotation"
    	"istio.io/api/label"
    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/istioctl/pkg/clioptions"
    	"istio.io/istio/istioctl/pkg/describe"
    	"istio.io/istio/istioctl/pkg/util/ambient"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jan 04 03:08:06 GMT 2024
    - 10.4K bytes
    - Viewed (0)
Back to top