- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for LabelSelector (0.23 sec)
-
pkg/registry/core/pod/storage/eviction_test.go
pdbs: []runtime.Object{&policyv1.PodDisruptionBudget{ ObjectMeta: metav1.ObjectMeta{Name: "foo", Namespace: "default"}, Spec: policyv1.PodDisruptionBudgetSpec{Selector: &metav1.LabelSelector{MatchLabels: map[string]string{"a": "true"}}}, Status: policyv1.PodDisruptionBudgetStatus{DisruptionsAllowed: 0}, }},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 09:26:37 UTC 2024 - 40K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/ambient/policies.go
return nil } meshCfg := krt.FetchOne(ctx, MeshConfig.AsCollection()) // If there are any PeerAuthentications in our cache, send our static STRICT policy return &model.WorkloadAuthorization{ LabelSelector: model.LabelSelector{}, Authorization: &security.Authorization{ Name: staticStrictPolicyName, Namespace: meshCfg.GetRootNamespace(), Scope: security.Scope_WORKLOAD_SELECTOR,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 16:51:29 UTC 2024 - 5.2K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/ambient/workloads_test.go
}, }, { name: "pod with authz", inputs: []any{ model.WorkloadAuthorization{ LabelSelector: model.NewSelector(map[string]string{"app": "foo"}), Authorization: &security.Authorization{Name: "wrong-ns", Namespace: "not-ns"}, }, model.WorkloadAuthorization{ LabelSelector: model.NewSelector(map[string]string{"app": "foo"}),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 16:51:29 UTC 2024 - 20.3K bytes - Viewed (0) -
pkg/kube/namespace/filter.go
return "", false } if _, ok := object.(*corev1.Namespace); ok { return object.GetName(), true } return object.GetNamespace(), true } func LabelSelectorAsSelector(ps *meshapi.LabelSelector) (labels.Selector, error) { if ps == nil { return labels.Nothing(), nil } if len(ps.MatchLabels)+len(ps.MatchExpressions) == 0 { return labels.Everything(), nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 10 17:12:52 UTC 2024 - 9.3K bytes - Viewed (0) -
pkg/kube/kclient/client_test.go
} } func TestFilterNamespace(t *testing.T) { tracker := assert.NewTracker[string](t) c := kube.NewFakeClient() meshWatcher := mesh.NewTestWatcher(&meshconfig.MeshConfig{DiscoverySelectors: []*meshconfig.LabelSelector{{ MatchLabels: map[string]string{"kubernetes.io/metadata.name": "selected"}, }}}) testns := clienttest.NewWriter[*corev1.Namespace](t, c) discoveryNamespacesFilter := filter.NewDiscoveryNamespacesFilter(
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 11 15:12:54 UTC 2024 - 17.2K bytes - Viewed (0) -
samples/addons/loki.yaml
mountPath: /var/loki resources: {} affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchLabels: app.kubernetes.io/component: single-binary topologyKey: kubernetes.io/hostname volumes: - name: tmp emptyDir: {}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 18:57:35 UTC 2024 - 7.8K bytes - Viewed (0) -
pkg/printers/internalversion/printers_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 14:04:15 UTC 2024 - 218.6K bytes - Viewed (0) -
pkg/controller/job/job_controller_test.go
TypeMeta: metav1.TypeMeta{Kind: "Job"}, ObjectMeta: metav1.ObjectMeta{ Name: name, UID: uuid.NewUUID(), Namespace: metav1.NamespaceDefault, }, Spec: batch.JobSpec{ Selector: &metav1.LabelSelector{ MatchLabels: map[string]string{"foo": "bar"}, }, Template: v1.PodTemplateSpec{ ObjectMeta: metav1.ObjectMeta{ Labels: map[string]string{ "foo": "bar", }, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 15:36:36 UTC 2024 - 229.2K bytes - Viewed (0) -
pkg/scheduler/framework/types.go
reasonMsg += fmt.Sprintf(" %v", postFilterMsg) } return reasonMsg } func newAffinityTerm(pod *v1.Pod, term *v1.PodAffinityTerm) (*AffinityTerm, error) { selector, err := metav1.LabelSelectorAsSelector(term.LabelSelector) if err != nil { return nil, err } namespaces := getNamespacesFromPodAffinityTerm(pod, term) nsSelector, err := metav1.LabelSelectorAsSelector(term.NamespaceSelector) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 19:28:17 UTC 2024 - 36.7K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.28.md
- The Kubernetes apiserver now emits a warning message for Pods with a null labelSelector in podAffinity or topologySpreadConstraints. The null labelSelector means "match none". Using it in podAffinity or topologySpreadConstraint could lead to unintended behavior. ([#117025](https://github.com/kubernetes/kubernetes/pull/117025), [@sanposhiho](https://github.com/sanposhiho))...
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 23:47:59 UTC 2024 - 408.3K bytes - Viewed (0)