- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for RemoveLabel (0.15 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testing/testcase.go
ExpectAnnotations: map[string]string{ "removelabel.example.com/key1": "value1", "mutation.webhook.admission.k8s.io/round_0_index_0": mutationAnnotationValue(configurationName, "removelabel.example.com", true), "patch.webhook.admission.k8s.io/round_0_index_0": patchAnnotationValue(configurationName, "removelabel.example.com", `[{"op": "remove", "path": "/metadata/labels/remove"}]`), },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 03 06:51:04 UTC 2023 - 47.6K bytes - Viewed (0) -
pkg/test/framework/components/namespace/static.go
return string(s) } func (s Static) Labels() (map[string]string, error) { panic("implement me") } func (s Static) SetLabel(key, value string) error { panic("implement me") } func (s Static) RemoveLabel(key string) error { panic("implement me") } func (s Static) IsAmbient() bool { return strings.Contains(string(s), "ambient") } func (s Static) IsInjected() bool { return !s.IsAmbient() }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 26 21:45:22 UTC 2023 - 1.3K bytes - Viewed (0) -
tests/integration/ambient/gateway_conformance_test.go
ns, err := namespace.Claim(ctx, namespace.Config{ Prefix: "gateway-conformance-infra", Inject: false, }) if err != nil { t.Fatal(err) } ns.RemoveLabel(constants.DataplaneModeLabel) // create a waypoint for mesh conformance meshNS := namespace.Static("gateway-conformance-mesh") ambientComponent.NewWaypointProxyOrFail(ctx, meshNS, "namespace")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 02 21:29:40 UTC 2024 - 6K bytes - Viewed (0) -
tests/integration/pilot/revisioned_upgrade_test.go
func enableDefaultInjection(ns namespace.Instance) error { var errs *multierror.Error errs = multierror.Append(errs, ns.SetLabel("istio-injection", "enabled")) errs = multierror.Append(errs, ns.RemoveLabel("istio.io/rev")) return errs.ErrorOrNil()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 4.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testing/webhook_server.go
json.NewEncoder(w).Encode(&v1beta1.AdmissionReview{ Response: &v1beta1.AdmissionResponse{ Allowed: true, AuditAnnotations: map[string]string{ "key1": "value1", }, }, }) case "/removeLabel": w.Header().Set("Content-Type", "application/json") pt := v1beta1.PatchTypeJSONPatch json.NewEncoder(w).Encode(&v1beta1.AdmissionReview{ Response: &v1beta1.AdmissionResponse{ Allowed: true,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 15 11:11:25 UTC 2021 - 6.3K bytes - Viewed (0) -
pkg/test/framework/components/namespace/namespace.go
c.Revision = "" } } // Instance represents an allocated namespace that can be used to create config, or deploy components in. type Instance interface { Name() string SetLabel(key, value string) error RemoveLabel(key string) error Prefix() string Labels() (map[string]string, error) IsAmbient() bool IsInjected() bool } // Claim an existing namespace in all clusters, or create a new one if doesn't exist.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Dec 21 18:12:14 UTC 2023 - 4.6K bytes - Viewed (0) -
pkg/test/framework/components/namespace/kube.go
} } return perCluster[0], nil } func (n *kubeNamespace) SetLabel(key, value string) error { return n.setNamespaceLabel(key, value) } func (n *kubeNamespace) RemoveLabel(key string) error { return n.removeNamespaceLabel(key) } func (n *kubeNamespace) ID() resource.ID { return n.id } func (n *kubeNamespace) Close() error {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 9K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/profile/profile.go
if sample.Label == nil { sample.Label = map[string][]string{key: value} } else { sample.Label[key] = value } } } // RemoveLabel removes all labels associated with the specified key for all // samples in the profile. func (p *Profile) RemoveLabel(key string) { for _, sample := range p.Sample { delete(sample.Label, key) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 22.3K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/report/report.go
} } s.NumLabel = numLabels s.NumUnit = numUnits } // Remove label marking samples from the base profiles, so it does not appear // as a nodelet in the graph view. prof.RemoveLabel("pprof::base") formatTag := func(v int64, key string) string { return measurement.ScaledLabel(v, key, o.OutputUnit) } gopt := &graph.Options{ SampleValue: o.SampleValue,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 37.5K bytes - Viewed (0)