- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 98 for labelSelectors (0.26 sec)
-
pkg/kube/multicluster/secretcontroller_test.go
}, }) } tc := testController{ client: clientWithNamespace(), t: t, } mesh := mesh.NewFixedWatcher(&meshconfig.MeshConfig{ DiscoverySelectors: []*meshconfig.LabelSelector{ { MatchLabels: map[string]string{ "kubernetes.io/metadata.name": "allowed", }, }, }, }) // For primary cluster, we need to set it up ourselves.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 17.6K bytes - Viewed (0) -
pkg/volume/plugins.go
// Returns trust anchors from the ClusterTrustBundles selected by signer // name and label selector. GetTrustAnchorsBySigner(signerName string, labelSelector *metav1.LabelSelector, allowMissing bool) ([]byte, error) } // AttachDetachVolumeHost is a AttachDetach Controller specific interface that plugins can use // to access methods on the Attach Detach Controller.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 06 16:13:15 UTC 2024 - 38.2K bytes - Viewed (0) -
operator/cmd/mesh/install.go
if !helmreconciler.DetectIfTagWebhookIsNeeded(iop, exists) { return nil } mwhs, err := client.Kube().AdmissionregistrationV1().MutatingWebhookConfigurations().List(context.Background(), metav1.ListOptions{ LabelSelector: "app=sidecar-injector,istio.io/rev=default,istio.io/tag=default", }) if err != nil { return err } // If there is no default webhook but a revisioned default webhook exists,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 17 21:52:35 UTC 2024 - 15.4K bytes - Viewed (0) -
pkg/apis/core/v1/conversion.go
out.Replicas = *in.Replicas out.MinReadySeconds = in.MinReadySeconds if in.Selector != nil { out.Selector = new(metav1.LabelSelector) metav1.Convert_Map_string_To_string_To_v1_LabelSelector(&in.Selector, out.Selector, s) } if in.Template != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 19 22:30:55 UTC 2024 - 19K bytes - Viewed (0) -
operator/cmd/mesh/manifest-generate_test.go
}) } }) } } func selectorMatches(t *testing.T, selector *metav1.LabelSelector, labels klabels.Set) bool { t.Helper() // From webhook spec: "Default to the empty LabelSelector, which matches everything." if selector == nil { return true } s, err := metav1.LabelSelectorAsSelector(selector) if err != nil { t.Fatal(err)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 04 18:05:06 UTC 2024 - 43.5K bytes - Viewed (0) -
istioctl/pkg/ztunnelconfig/ztunnelconfig.go
kv := []string{} for k, v := range sel { kv = append(kv, k+"="+v) } podsr, err := client.Kube().CoreV1().Pods(namespace).List(context.Background(), metav1.ListOptions{ TypeMeta: metav1.TypeMeta{}, LabelSelector: strings.Join(kv, ","), FieldSelector: "spec.nodeName=" + node, }) if err != nil { return types.NamespacedName{}, err } pods := slices.Reference(podsr.Items) if len(pods) > 0 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 20:18:34 UTC 2024 - 22K bytes - Viewed (0) -
pkg/kube/krt/collection.go
c.name = name } } // WithObjectAugmentation allows transforming an object into another for usage throughout the library. // Currently this applies to things like Name, Namespace, Labels, LabelSelector, etc. Equals is not currently supported, // but likely in the future. // The intended usage is to add support for these fields to collections of types that do not implement the appropriate interfaces.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 19.4K bytes - Viewed (0) -
pkg/controller/deployment/deployment_controller.go
return nil } if err != nil { return err } // Deep-copy otherwise we are mutating our cache. // TODO: Deep-copy only when needed. d := deployment.DeepCopy() everything := metav1.LabelSelector{} if reflect.DeepEqual(d.Spec.Selector, &everything) { dc.eventRecorder.Eventf(d, v1.EventTypeWarning, "SelectingAll", "This deployment is selecting all pods. A non-empty selector is required.")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 24.2K bytes - Viewed (0) -
pkg/controller/tainteviction/taint_eviction_test.go
selector := fields.SelectorFromSet(fields.Set{"spec.nodeName": nodeName}) pods, err := c.CoreV1().Pods(corev1.NamespaceAll).List(ctx, metav1.ListOptions{ FieldSelector: selector.String(), LabelSelector: labels.Everything().String(), }) if err != nil { return []*corev1.Pod{}, fmt.Errorf("failed to get Pods assigned to node %v", nodeName) } rPods := make([]*corev1.Pod, len(pods.Items))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 31.3K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_pod_control_test.go
WhenDeleted: apps.RetainPersistentVolumeClaimRetentionPolicyType, WhenScaled: apps.DeletePersistentVolumeClaimRetentionPolicyType, } set.Spec.Selector = &metav1.LabelSelector{MatchLabels: map[string]string{"key": "value"}} claimIndexer := cache.NewIndexer(cache.MetaNamespaceKeyFunc, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}) for i, claimState := range tc.claimStates {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 35.5K bytes - Viewed (0)