- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for LabelValue (0.19 sec)
-
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) -
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/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) -
istioctl/pkg/waypoint/waypoint.go
} func namespaceHasLabelWithValue(kubeClient kube.CLIClient, ns string, label, labelValue string) (bool, error) { nsObj, err := getNamespace(kubeClient, ns) if err != nil { return false, err } if nsObj.Labels == nil { return false, nil } return nsObj.Labels[label] == labelValue, nil } func getNamespace(kubeClient kube.CLIClient, ns string) (*corev1.Namespace, error) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 15:59:33 UTC 2024 - 16.4K bytes - Viewed (0) -
cni/pkg/cmd/root.go
DeletePods: viper.GetBool(constants.RepairDeletePods), LabelPods: viper.GetBool(constants.RepairLabelPods), LabelKey: viper.GetString(constants.RepairLabelKey), LabelValue: viper.GetString(constants.RepairLabelValue), NodeName: viper.GetString(constants.RepairNodeName), SidecarAnnotation: viper.GetString(constants.RepairSidecarAnnotation),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 16:26:35 UTC 2024 - 13K bytes - Viewed (0)