- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for LabelValue (0.21 sec)
-
pkg/monitoring/monitoring.go
} // A LabelValue represents a Label with a specific value. It is used to record // values for a Metric. type LabelValue struct { keyValue attribute.KeyValue } func (l LabelValue) Key() Label { return Label{l.keyValue.Key} } func (l LabelValue) Value() string { return l.keyValue.Value.AsString() } // RecordHook has a callback function which a measure is recorded.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 24 03:31:28 UTC 2023 - 9.5K bytes - Viewed (0) -
src/runtime/pprof/label.go
func Label(ctx context.Context, key string) (string, bool) { ctxLabels := labelValue(ctx) v, ok := ctxLabels[key] return v, ok } // ForLabels invokes f with each label set on the context. // The function f should return true to continue iteration or false to stop iteration early. func ForLabels(ctx context.Context, f func(key, value string) bool) { ctxLabels := labelValue(ctx) for k, v := range ctxLabels { if !f(k, v) { break
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 3K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/ambient/waypoints.go
// ~ is used in other portions of the API, reserve it with special meaning although it's unlikely to be documented if labelValue == "none" || labelValue == "~" || strings.HasSuffix(labelValue, "/none") { return nil, true } namespacedName := strings.Split(labelValue, "/") switch len(namespacedName) { case 1: return &krt.Named{ Name: namespacedName[0], Namespace: defaultNamespace,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 18:02:28 UTC 2024 - 11.1K bytes - Viewed (0) -
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) -
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) -
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) -
pkg/monitoring/gauge.go
f.currentGaugeSet = &gaugeValues{} 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, }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Sep 13 16:04:48 UTC 2023 - 2.9K bytes - Viewed (0) -
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) -
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) -
cni/pkg/repair/repaircontroller.go
return nil } repairLog.Infof("Labeling pod %s/%s with label %s=%s", pod.Namespace, pod.Name, c.cfg.LabelKey, c.cfg.LabelValue) patchBytes := fmt.Sprintf(`{"metadata":{"labels":{%q:%q}}}`, c.cfg.LabelKey, c.cfg.LabelValue) // Both "pods" and "pods/status" can mutate the metadata. However, pods/status is lower privilege, so we use that instead.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Feb 10 00:31:55 UTC 2024 - 10.4K bytes - Viewed (0)