Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 886 for labelValue (2.51 sec)

  1. cni/pkg/config/config.go

    	var b strings.Builder
    	b.WriteString("Enabled: " + fmt.Sprint(c.Enabled) + "\n")
    	b.WriteString("NodeName: " + c.NodeName + "\n")
    	b.WriteString("LabelKey: " + c.LabelKey + "\n")
    	b.WriteString("LabelValue: " + c.LabelValue + "\n")
    	b.WriteString("DeletePods: " + fmt.Sprint(c.DeletePods) + "\n")
    	b.WriteString("LabelPods: " + fmt.Sprint(c.LabelPods) + "\n")
    	b.WriteString("SidecarAnnotation: " + c.SidecarAnnotation + "\n")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. pkg/monitoring/distribution.go

    		f.d.Record(context.Background(), value, f.precomputedRecordOption...)
    	} else {
    		f.d.Record(context.Background(), value)
    	}
    }
    
    func (f *distribution) With(labelValues ...LabelValue) Metric {
    	attrs, set := rebuildAttributes(f.baseMetric, labelValues)
    	nm := &distribution{
    		d:                       f.d,
    		precomputedRecordOption: []api.RecordOption{api.WithAttributeSet(set)},
    	}
    	nm.baseMetric = baseMetric{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/timing_ratio_histogram_test.go

    			Buckets:   []float64{1, 2, 4, 8, 16, 32},
    		},
    		"labelname")
    	registry := compbasemetrics.NewKubeRegistry()
    	registry.MustRegister(thv.metrics()...)
    	th, err := thv.NewForLabelValuesChecked(0, 3, []string{"labelvalue"})
    	if err != nil {
    		b.Error(err)
    	}
    	var x int
    	b.StartTimer()
    	for i := 0; i < b.N; i++ {
    		delta := (i % 6) + 1
    		now = now.Add(time.Duration(delta) * time.Millisecond)
    		clk.SetTime(now)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 13 16:03:06 UTC 2022
    - 8.7K bytes
    - Viewed (0)
  4. cni/pkg/repair/repair_test.go

    			config: config.RepairConfig{
    				InitContainerName:  constants.ValidationContainerName,
    				InitExitCode:       126,
    				InitTerminationMsg: "Died for some reason",
    				LabelKey:           "testkey",
    				LabelValue:         "testval",
    			},
    			wantLabels: map[string]string{workingPod.Name: "", workingPodDiedPreviously.Name: ""},
    			wantCount:  0,
    		},
    		{
    			name:   "With broken pods",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 24 03:31:28 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/cel/library/format.go

    	},
    	"dns1035LabelPrefix": {
    		Name:         "DNS1035LabelPrefix",
    		ValidateFunc: func(s string) []string { return apimachineryvalidation.NameIsDNS1035Label(s, true) },
    		MaxRegexSize: 30,
    	},
    	"labelValue": {
    		Name:         "LabelValue",
    		ValidateFunc: validation.IsValidLabelValue,
    		MaxRegexSize: 40,
    	},
    
    	// CRD formats
    	// Implementations sourced from strfmt, which kube-openapi uses as its
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. pkg/monitoring/counter.go

    		f.c.Add(context.Background(), value, f.precomputedAddOption...)
    	} else {
    		f.c.Add(context.Background(), value)
    	}
    }
    
    func (f *counter) With(labelValues ...LabelValue) Metric {
    	attrs, set := rebuildAttributes(f.baseMetric, labelValues)
    	nm := &counter{
    		c:                    f.c,
    		precomputedAddOption: []api.AddOption{api.WithAttributeSet(set)},
    	}
    	nm.baseMetric = baseMetric{
    		name:  f.name,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  7. pkg/monitoring/gauge.go

    		f.attributeSets[attribute.NewSet()] = f.currentGaugeSet
    	}
    	f.currentGaugeSet.val = value
    	f.attributeSetsMutex.Unlock()
    }
    
    func (f *gauge) With(labelValues ...LabelValue) Metric {
    	attrs, set := rebuildAttributes(f.baseMetric, labelValues)
    	nm := &gauge{
    		g:                  f.g,
    		attributeSetsMutex: f.attributeSetsMutex,
    		attributeSets:      f.attributeSets,
    	}
    	if _, f := nm.attributeSets[set]; !f {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 13 16:04:48 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_node_status.go

    		}
    		if instanceType != "" {
    			klog.InfoS("Adding label from cloud provider", "labelKey", v1.LabelInstanceType, "labelValue", instanceType)
    			node.ObjectMeta.Labels[v1.LabelInstanceType] = instanceType
    			klog.InfoS("Adding node label from cloud provider", "labelKey", v1.LabelInstanceTypeStable, "labelValue", instanceType)
    			node.ObjectMeta.Labels[v1.LabelInstanceTypeStable] = instanceType
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/library/format_test.go

    			expectValue: types.False,
    		},
    		{
    			name:        "labelValue_success",
    			expr:        `format.labelValue().validate("my-cool-label-Value")`,
    			expectValue: types.OptionalNone,
    		},
    		{
    			name: "labelValue_failure",
    			expr: `format.labelValue().validate("my-cool-label-Value!!\n\n!!!")`,
    			expectValue: types.OptionalOf(types.NewStringList(types.DefaultTypeAdapter, []string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go

    }
    
    func Convert_Map_string_To_string_To_v1_LabelSelector(in *map[string]string, out *LabelSelector, s conversion.Scope) error {
    	if in == nil {
    		return nil
    	}
    	for labelKey, labelValue := range *in {
    		AddLabelToSelector(out, labelKey, labelValue)
    	}
    	return nil
    }
    
    func Convert_v1_LabelSelector_To_Map_string_To_string(in *LabelSelector, out *map[string]string, s conversion.Scope) error {
    	var err error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 26 03:49:57 UTC 2020
    - 8.8K bytes
    - Viewed (0)
Back to top