Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 41 for topologySpreadConstraint (0.3 sec)

  1. pkg/scheduler/apis/config/types_pluginargs.go

    	// deduced from the Pod's membership to Services, ReplicationControllers,
    	// ReplicaSets or StatefulSets.
    	// When not empty, .defaultingType must be "List".
    	DefaultConstraints []v1.TopologySpreadConstraint
    
    	// DefaultingType determines how .defaultConstraints are deduced. Can be one
    	// of "System" or "List".
    	//
    	// - "System": Use kubernetes defined constraints that spread Pods among
    	//   Nodes and Zones.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 13 23:15:53 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  2. pkg/api/pod/warnings_test.go

    						{Preference: api.NodeSelectorTerm{MatchExpressions: []api.NodeSelectorRequirement{{Key: `foo`}}}},
    					},
    				},
    			},
    			TopologySpreadConstraints: []api.TopologySpreadConstraint{
    				{TopologyKey: `foo`},
    			},
    			HostAliases: []api.HostAlias{
    				{IP: "1.1.1.1"},
    				{IP: "2.2.2.2"},
    			},
    			ImagePullSecrets: []api.LocalObjectReference{
    				{Name: "secret1"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 17:51:48 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  3. pkg/registry/core/pod/strategy_test.go

    		ignore           = api.NodeInclusionPolicyIgnore
    		emptyConstraints = []api.TopologySpreadConstraint{
    			{
    				WhenUnsatisfiable: api.DoNotSchedule,
    				TopologyKey:       "kubernetes.io/hostname",
    				MaxSkew:           1,
    			},
    		}
    		defaultConstraints = []api.TopologySpreadConstraint{
    			{
    				NodeAffinityPolicy: &honor,
    				NodeTaintsPolicy:   &ignore,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 76.2K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/podtopologyspread/scoring.go

    const invalidScore = -1
    
    // preScoreState computed at PreScore and used at Score.
    // Fields are exported for comparison during testing.
    type preScoreState struct {
    	Constraints []topologySpreadConstraint
    	// IgnoredNodes is a set of node names which miss some Constraints[*].topologyKey.
    	IgnoredNodes sets.Set[string]
    	// TopologyPairToPodCounts is keyed with topologyPair, and valued with the number of matching pods.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  5. pkg/scheduler/apis/config/v1/zz_generated.conversion.go

    }
    
    func autoConvert_v1_PodTopologySpreadArgs_To_config_PodTopologySpreadArgs(in *v1.PodTopologySpreadArgs, out *config.PodTopologySpreadArgs, s conversion.Scope) error {
    	out.DefaultConstraints = *(*[]corev1.TopologySpreadConstraint)(unsafe.Pointer(&in.DefaultConstraints))
    	out.DefaultingType = config.PodTopologySpreadConstraintsDefaulting(in.DefaultingType)
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 18:47:23 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  6. pkg/scheduler/apis/config/zz_generated.deepcopy.go

    	*out = *in
    	out.TypeMeta = in.TypeMeta
    	if in.DefaultConstraints != nil {
    		in, out := &in.DefaultConstraints, &out.DefaultConstraints
    		*out = make([]v1.TopologySpreadConstraint, len(*in))
    		for i := range *in {
    			(*in)[i].DeepCopyInto(&(*out)[i])
    		}
    	}
    	return
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 22:02:57 UTC 2022
    - 16.2K bytes
    - Viewed (0)
  7. pkg/apis/core/v1/zz_generated.conversion.go

    	}); err != nil {
    		return err
    	}
    	if err := s.AddGeneratedConversionFunc((*v1.TopologySpreadConstraint)(nil), (*core.TopologySpreadConstraint)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_v1_TopologySpreadConstraint_To_core_TopologySpreadConstraint(a.(*v1.TopologySpreadConstraint), b.(*core.TopologySpreadConstraint), scope)
    	}); err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 472.1K bytes
    - Viewed (0)
  8. pkg/scheduler/testing/wrappers.go

    	return p
    }
    
    // SpreadConstraint constructs a TopologySpreadConstraint object and injects
    // into the inner pod.
    func (p *PodWrapper) SpreadConstraint(maxSkew int, tpKey string, mode v1.UnsatisfiableConstraintAction, selector *metav1.LabelSelector, minDomains *int32, nodeAffinityPolicy, nodeTaintsPolicy *v1.NodeInclusionPolicy, matchLabelKeys []string) *PodWrapper {
    	c := v1.TopologySpreadConstraint{
    		MaxSkew:            int32(maxSkew),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  9. pkg/apis/core/validation/validation_test.go

    	testCases := []struct {
    		name            string
    		constraints     []core.TopologySpreadConstraint
    		wantFieldErrors field.ErrorList
    		opts            PodValidationOptions
    	}{{
    		name: "all required fields ok",
    		constraints: []core.TopologySpreadConstraint{{
    			MaxSkew:           1,
    			TopologyKey:       "k8s.io/zone",
    			WhenUnsatisfiable: core.DoNotSchedule,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  10. pkg/apis/core/zz_generated.deepcopy.go

    		copy(*out, *in)
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TopologySpreadConstraint.
    func (in *TopologySpreadConstraint) DeepCopy() *TopologySpreadConstraint {
    	if in == nil {
    		return nil
    	}
    	out := new(TopologySpreadConstraint)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.5K bytes
    - Viewed (0)
Back to top