Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 142 for whenUnsatisfiable (0.57 sec)

  1. pkg/scheduler/apis/config/validation/validation_pluginargs_test.go

    						MaxSkew:           1,
    						TopologyKey:       "node",
    						WhenUnsatisfiable: "",
    					},
    				},
    				DefaultingType: config.ListDefaulting,
    			},
    			wantErrs: field.ErrorList{
    				&field.Error{
    					Type:  field.ErrorTypeRequired,
    					Field: "defaultConstraints[0].whenUnsatisfiable",
    				},
    			},
    		},
    		"whenUnsatisfiable contains unsupported action": {
    			args: &config.PodTopologySpreadArgs{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  2. pkg/scheduler/apis/config/validation/validation_pluginargs.go

    	c := &constraints[idx]
    	for i := range constraints[:idx] {
    		other := &constraints[i]
    		if c.TopologyKey == other.TopologyKey && c.WhenUnsatisfiable == other.WhenUnsatisfiable {
    			return field.Duplicate(path.Index(idx), fmt.Sprintf("{%v, %v}", c.TopologyKey, c.WhenUnsatisfiable))
    		}
    	}
    	return nil
    }
    
    func validateFunctionShape(shape []config.UtilizationShapePoint, path *field.Path) field.ErrorList {
    	const (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 09:29:49 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  3. pkg/test/framework/components/echo/kube/templates/deployment.yaml

            proxy.istio.io/config: '{"holdApplicationUntilProxyStarts": true}'
    {{- end }}
        spec:
    {{- if $.Ambient }}
          topologySpreadConstraints:
          - topologyKey: "kubernetes.io/hostname"
            whenUnsatisfiable: "ScheduleAnyway"
            maxSkew: 1
            labelSelector:
              matchLabels:
                app: {{ $.Service }}
    {{- end }}
    {{- if $.ServiceAccount }}
          serviceAccountName: {{ $.Service }}
    {{- end }}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/podtopologyspread/common.go

    	var result []topologySpreadConstraint
    	for _, c := range constraints {
    		if c.WhenUnsatisfiable == action {
    			selector, err := metav1.LabelSelectorAsSelector(c.LabelSelector)
    			if err != nil {
    				return nil, err
    			}
    
    			if pl.enableMatchLabelKeysInPodTopologySpread && len(c.MatchLabelKeys) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/podtopologyspread/plugin.go

    )
    
    var systemDefaultConstraints = []v1.TopologySpreadConstraint{
    	{
    		TopologyKey:       v1.LabelHostname,
    		WhenUnsatisfiable: v1.ScheduleAnyway,
    		MaxSkew:           3,
    	},
    	{
    		TopologyKey:       v1.LabelTopologyZone,
    		WhenUnsatisfiable: v1.ScheduleAnyway,
    		MaxSkew:           5,
    	},
    }
    
    // PodTopologySpread is a plugin that ensures pod's topologySpreadConstraints is satisfied.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:13:06 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. pkg/scheduler/apis/config/scheme/scheme_test.go

      - name: NodeResourcesFit
        args:
          ignoredResources: ["foo"]
      - name: PodTopologySpread
        args:
          defaultConstraints:
          - maxSkew: 1
            topologyKey: zone
            whenUnsatisfiable: ScheduleAnyway
      - name: VolumeBinding
        args:
          bindTimeoutSeconds: 300
      - name: NodeAffinity
        args:
          addedAffinity:
            requiredDuringSchedulingIgnoredDuringExecution:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  7. pkg/scheduler/apis/config/v1/defaults_test.go

    					{
    						TopologyKey:       "planet",
    						WhenUnsatisfiable: v1.DoNotSchedule,
    						MaxSkew:           2,
    					},
    				},
    			},
    			want: &configv1.PodTopologySpreadArgs{
    				DefaultConstraints: []v1.TopologySpreadConstraint{
    					{
    						TopologyKey:       "planet",
    						WhenUnsatisfiable: v1.DoNotSchedule,
    						MaxSkew:           2,
    					},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 15:03:04 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/podtopologyspread/scoring_test.go

    					{
    						MaxSkew:           1,
    						TopologyKey:       v1.LabelHostname,
    						WhenUnsatisfiable: v1.ScheduleAnyway,
    					},
    					{MaxSkew: 2,
    						TopologyKey:       "rack",
    						WhenUnsatisfiable: v1.DoNotSchedule,
    					},
    					{MaxSkew: 2, TopologyKey: "planet", WhenUnsatisfiable: v1.ScheduleAnyway},
    				},
    				DefaultingType: config.ListDefaulting,
    			},
    			nodes: []*v1.Node{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 60K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/testdata/v1.29.0/apps.v1.DaemonSet.json

    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 04:12:07 UTC 2023
    - 53.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/testdata/v1.29.0/apps.v1.Deployment.json

    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 04:12:07 UTC 2023
    - 53.7K bytes
    - Viewed (0)
Back to top