Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 262 for labelSelectors (0.47 sec)

  1. pkg/controller/deployment/util/deployment_util_test.go

    			Labels:          template.Labels,
    			OwnerReferences: []metav1.OwnerReference{*newDControllerRef(&deployment)},
    		},
    		Spec: apps.ReplicaSetSpec{
    			Replicas: new(int32),
    			Template: *template,
    			Selector: &metav1.LabelSelector{MatchLabels: template.Labels},
    		},
    	}
    }
    
    func randomUID() types.UID {
    	return types.UID(strconv.FormatInt(rand.Int63(), 10))
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 37.1K bytes
    - Viewed (0)
  2. pkg/apis/policy/v1/zz_generated.conversion.go

    	out.MinAvailable = (*intstr.IntOrString)(unsafe.Pointer(in.MinAvailable))
    	out.Selector = (*metav1.LabelSelector)(unsafe.Pointer(in.Selector))
    	out.MaxUnavailable = (*intstr.IntOrString)(unsafe.Pointer(in.MaxUnavailable))
    	out.UnhealthyPodEvictionPolicy = (*policy.UnhealthyPodEvictionPolicyType)(unsafe.Pointer(in.UnhealthyPodEvictionPolicy))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 10 22:32:27 UTC 2022
    - 12.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go

    			(*in)[i].DeepCopyInto(&(*out)[i])
    		}
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelSelector.
    func (in *LabelSelector) DeepCopy() *LabelSelector {
    	if in == nil {
    		return nil
    	}
    	out := new(LabelSelector)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 10:00:25 UTC 2023
    - 32.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/autoscaling/v1/types.go

    	// When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping
    	// When unset, just the metricName will be used to gather metrics.
    	// +optional
    	Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,4,name=selector"`
    
    	// averageValue is the target value of the average of the
    	// metric across all relevant pods (as a quantity)
    	// +optional
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/admissionregistration/v1alpha1/zz_generated.deepcopy.go

    	*out = *in
    	if in.NamespaceSelector != nil {
    		in, out := &in.NamespaceSelector, &out.NamespaceSelector
    		*out = new(v1.LabelSelector)
    		(*in).DeepCopyInto(*out)
    	}
    	if in.ObjectSelector != nil {
    		in, out := &in.ObjectSelector, &out.ObjectSelector
    		*out = new(v1.LabelSelector)
    		(*in).DeepCopyInto(*out)
    	}
    	if in.ResourceRules != nil {
    		in, out := &in.ResourceRules, &out.ResourceRules
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 20 16:30:10 UTC 2023
    - 14K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/apps/v1/zz_generated.deepcopy.go

    func (in *DaemonSetSpec) DeepCopyInto(out *DaemonSetSpec) {
    	*out = *in
    	if in.Selector != nil {
    		in, out := &in.Selector, &out.Selector
    		*out = new(metav1.LabelSelector)
    		(*in).DeepCopyInto(*out)
    	}
    	in.Template.DeepCopyInto(&out.Template)
    	in.UpdateStrategy.DeepCopyInto(&out.UpdateStrategy)
    	if in.RevisionHistoryLimit != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 15:48:00 UTC 2022
    - 23.8K bytes
    - Viewed (0)
  7. pkg/apis/core/v1/helper/helpers.go

    	for _, req := range topologySelectorTerms {
    		// nil or empty term selects no objects
    		if len(req.MatchLabelExpressions) == 0 {
    			continue
    		}
    
    		labelSelector, err := TopologySelectorRequirementsAsSelector(req.MatchLabelExpressions)
    		if err != nil || !labelSelector.Matches(lbls) {
    			continue
    		}
    
    		return true
    	}
    
    	return false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 23:03:54 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  8. pkg/registry/apps/replicaset/storage/storage_test.go

    func validNewReplicaSet() *apps.ReplicaSet {
    	return &apps.ReplicaSet{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "foo",
    			Namespace: metav1.NamespaceDefault,
    		},
    		Spec: apps.ReplicaSetSpec{
    			Selector: &metav1.LabelSelector{MatchLabels: map[string]string{"a": "b"}},
    			Template: api.PodTemplateSpec{
    				ObjectMeta: metav1.ObjectMeta{
    					Labels: map[string]string{"a": "b"},
    				},
    				Spec: api.PodSpec{
    					Containers: []api.Container{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 17.7K bytes
    - Viewed (0)
  9. 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)
  10. staging/src/k8s.io/api/apps/v1beta2/zz_generated.deepcopy.go

    func (in *DaemonSetSpec) DeepCopyInto(out *DaemonSetSpec) {
    	*out = *in
    	if in.Selector != nil {
    		in, out := &in.Selector, &out.Selector
    		*out = new(v1.LabelSelector)
    		(*in).DeepCopyInto(*out)
    	}
    	in.Template.DeepCopyInto(&out.Template)
    	in.UpdateStrategy.DeepCopyInto(&out.UpdateStrategy)
    	if in.RevisionHistoryLimit != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 15:48:00 UTC 2022
    - 25.5K bytes
    - Viewed (0)
Back to top