Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 161 for labelSelector (0.17 sec)

  1. staging/src/k8s.io/api/networking/v1/types.go

    	// the ingress rules for each are combined additively.
    	// This field is NOT optional and follows standard label selector semantics.
    	// An empty podSelector matches all pods in this namespace.
    	PodSelector metav1.LabelSelector `json:"podSelector" protobuf:"bytes,1,opt,name=podSelector"`
    
    	// ingress is a list of ingress rules to be applied to the selected pods.
    	// Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/get.go

    				timeout = time.Duration(float64(minRequestTimeout) * (rand.Float64() + 1.0))
    			}
    			klog.V(3).InfoS("Starting watch", "path", req.URL.Path, "resourceVersion", opts.ResourceVersion, "labels", opts.LabelSelector, "fields", opts.FieldSelector, "timeout", timeout)
    			ctx, cancel := context.WithTimeout(ctx, timeout)
    			defer func() { cancel() }()
    			watcher, err := rw.Watch(ctx, &opts)
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 10:22:16 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. cni/pkg/repair/repaircontroller.go

    	}
    	// filter out pod events from different nodes
    	fieldSelectors = append(fieldSelectors, fmt.Sprintf("spec.nodeName=%v", cfg.NodeName))
    	c.pods = kclient.NewFiltered[*corev1.Pod](client, kclient.Filter{
    		LabelSelector: cfg.LabelSelectors,
    		FieldSelector: strings.Join(fieldSelectors, ","),
    	})
    	c.queue = controllers.NewQueue("repair pods",
    		controllers.WithReconciler(c.Reconcile),
    		controllers.WithMaxAttempts(5))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Feb 10 00:31:55 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. pkg/controller/deployment/deployment_controller_test.go

    			Name:              name,
    			CreationTimestamp: timestamp,
    			Namespace:         metav1.NamespaceDefault,
    		},
    		Spec: apps.ReplicaSetSpec{
    			Replicas: ptr.To(replicas),
    			Selector: &metav1.LabelSelector{MatchLabels: selector},
    			Template: v1.PodTemplateSpec{},
    		},
    	}
    }
    
    func newRSWithStatus(name string, specReplicas, statusReplicas int32, selector map[string]string) *apps.ReplicaSet {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/apis/meta/fuzzer/fuzzer.go

    			*j = matches[c.Rand.Intn(len(matches))]
    		},
    		func(j *metav1.ListMeta, c fuzz.Continue) {
    			j.ResourceVersion = strconv.FormatUint(c.RandUint64(), 10)
    			j.SelfLink = c.RandString()
    		},
    		func(j *metav1.LabelSelector, c fuzz.Continue) {
    			c.FuzzNoCustom(j)
    			// we can't have an entirely empty selector, so force
    			// use of MatchExpression if necessary
    			if len(j.MatchLabels) == 0 && len(j.MatchExpressions) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 15:12:26 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. common-protos/k8s.io/api/apps/v1beta1/generated.proto

      // selector is the label selector for pods. Existing ReplicaSets whose pods are
      // selected by this will be the ones affected by this deployment.
      // +optional
      optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
    
      // Template describes the pods that will be created.
      // The only allowed template.spec.restartPolicy value is "Always".
      optional k8s.io.api.core.v1.PodTemplateSpec template = 3;
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 24K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/storage/v1alpha1/generated.proto

      // not accessible from any node in the cluster. If empty, the
      // storage is accessible from all nodes. This field is
      // immutable.
      //
      // +optional
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector nodeTopology = 2;
    
      // storageClassName represents the name of the StorageClass that the reported capacity applies to.
      // It must meet the same requirements as the name of a StorageClass
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  8. pkg/api/pod/util.go

    // hasInvalidTopologySpreadConstraintLabelSelector return true if spec.TopologySpreadConstraints have any entry with invalid labelSelector
    func hasInvalidTopologySpreadConstraintLabelSelector(spec *api.PodSpec) bool {
    	for _, constraint := range spec.TopologySpreadConstraints {
    		errs := metavalidation.ValidateLabelSelector(constraint.LabelSelector, metavalidation.LabelSelectorValidationOptions{AllowInvalidLabelValueInSelector: false}, nil)
    		if len(errs) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41.3K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/util/config/cluster.go

    	podList, err := client.CoreV1().Pods(metav1.NamespaceSystem).List(
    		ctx,
    		metav1.ListOptions{
    			FieldSelector: fmt.Sprintf("spec.nodeName=%s", nodeName),
    			LabelSelector: fmt.Sprintf("component=%s,tier=%s", constants.KubeAPIServer, constants.ControlPlaneTier),
    		},
    	)
    	if err != nil {
    		return "", errors.Wrap(err, "could not retrieve list of pods to determine api server endpoints")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 11:04:08 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/policy/v1/types.go

    	// budget.
    	// A null selector will match no pods, while an empty ({}) selector will select
    	// all pods within the namespace.
    	// +patchStrategy=replace
    	// +optional
    	Selector *metav1.LabelSelector `json:"selector,omitempty" patchStrategy:"replace" protobuf:"bytes,2,opt,name=selector"`
    
    	// An eviction is allowed if at most "maxUnavailable" pods selected by
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top