Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for SystemDefaulting (0.18 sec)

  1. pkg/scheduler/apis/config/scheme/scheme_test.go

    								DefaultConstraints: []corev1.TopologySpreadConstraint{
    									{MaxSkew: 1, TopologyKey: "zone", WhenUnsatisfiable: corev1.ScheduleAnyway},
    								},
    								DefaultingType: config.SystemDefaulting,
    							},
    						},
    						{
    							Name: "VolumeBinding",
    							Args: &config.VolumeBindingArgs{
    								BindTimeoutSeconds: 300,
    							},
    						},
    						{
    							Name: "NodeAffinity",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  2. pkg/scheduler/apis/config/validation/validation_pluginargs.go

    	if v != config.SystemDefaulting && v != config.ListDefaulting {
    		return field.NotSupported(p, v, []string{string(config.SystemDefaulting), string(config.ListDefaulting)})
    	}
    	if v == config.SystemDefaulting && len(constraints) > 0 {
    		return field.Invalid(p, v, "when .defaultConstraints are not empty")
    	}
    	return nil
    }
    
    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/scheduler/apis/config/v1/defaults_test.go

    			TypeMeta: metav1.TypeMeta{
    				Kind:       "PodTopologySpreadArgs",
    				APIVersion: "kubescheduler.config.k8s.io/v1",
    			},
    			DefaultingType: configv1.SystemDefaulting,
    		}},
    	},
    	{
    		Name: "VolumeBinding",
    		Args: runtime.RawExtension{Object: &configv1.VolumeBindingArgs{
    			TypeMeta: metav1.TypeMeta{
    				Kind:       "VolumeBindingArgs",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 15:03:04 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  4. pkg/scheduler/apis/config/types_pluginargs.go

    // PodTopologySpreadConstraintsDefaulting defines how to set default constraints
    // for the PodTopologySpread plugin.
    type PodTopologySpreadConstraintsDefaulting string
    
    const (
    	// SystemDefaulting instructs to use the kubernetes defined default.
    	SystemDefaulting PodTopologySpreadConstraintsDefaulting = "System"
    	// ListDefaulting instructs to use the config provided default.
    	ListDefaulting PodTopologySpreadConstraintsDefaulting = "List"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 13 23:15:53 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  5. pkg/scheduler/apis/config/testing/defaults/defaults.go

    				Resources: []config.ResourceSpec{{Name: "cpu", Weight: 1}, {Name: "memory", Weight: 1}},
    			},
    		},
    	},
    	{
    		Name: "PodTopologySpread",
    		Args: &config.PodTopologySpreadArgs{
    			DefaultingType: config.SystemDefaulting,
    		},
    	},
    	{
    		Name: "VolumeBinding",
    		Args: &config.VolumeBindingArgs{
    			BindTimeoutSeconds: 600,
    		},
    	},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. cmd/kube-scheduler/app/options/options_test.go

    									},
    								},
    							},
    							{
    								Name: "PodTopologySpread",
    								Args: &kubeschedulerconfig.PodTopologySpreadArgs{
    									DefaultingType: kubeschedulerconfig.SystemDefaulting,
    								},
    							},
    							{
    								Name: "VolumeBinding",
    								Args: &kubeschedulerconfig.VolumeBindingArgs{
    									BindTimeoutSeconds: 600,
    								},
    							},
    						},
    					},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 30.3K bytes
    - Viewed (0)
  7. pkg/scheduler/apis/config/v1/defaults.go

    			obj.Resources[i].Weight = 1
    		}
    	}
    }
    
    func SetDefaults_PodTopologySpreadArgs(obj *configv1.PodTopologySpreadArgs) {
    	if obj.DefaultingType == "" {
    		obj.DefaultingType = configv1.SystemDefaulting
    	}
    }
    
    func SetDefaults_NodeResourcesFitArgs(obj *configv1.NodeResourcesFitArgs) {
    	if obj.ScoringStrategy == nil {
    		obj.ScoringStrategy = &configv1.ScoringStrategy{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  8. pkg/scheduler/apis/config/validation/validation_pluginargs_test.go

    			args: &config.PodTopologySpreadArgs{
    				DefaultingType: config.ListDefaulting,
    			},
    		},
    		"system default constraints": {
    			args: &config.PodTopologySpreadArgs{
    				DefaultingType: config.SystemDefaulting,
    			},
    		},
    		"wrong constraints": {
    			args: &config.PodTopologySpreadArgs{
    				DefaultingType: "unknown",
    			},
    			wantErrs: field.ErrorList{
    				&field.Error{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/podtopologyspread/plugin.go

    		enableMatchLabelKeysInPodTopologySpread:      fts.EnableMatchLabelKeysInPodTopologySpread,
    	}
    	if args.DefaultingType == config.SystemDefaulting {
    		pl.defaultConstraints = systemDefaultConstraints
    		pl.systemDefaulted = true
    	}
    	if len(pl.defaultConstraints) != 0 {
    		if h.SharedInformerFactory() == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:13:06 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/podtopologyspread/scoring_test.go

    			config: config.PodTopologySpreadArgs{
    				DefaultingType: config.SystemDefaulting,
    			},
    			nodes: []*v1.Node{
    				st.MakeNode().Name("node-a").Label(v1.LabelHostname, "node-a").Label(v1.LabelTopologyZone, "mars").Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 60K bytes
    - Viewed (0)
Back to top