Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 179 for defaulting (0.17 sec)

  1. pkg/controller/volume/persistentvolume/config/v1alpha1/defaults.go

    // function to allow consumers of this type to set whatever defaults for their
    // embedded configs. Forcing consumers to use these defaults would be problematic
    // as defaulting in the scheme is done as part of the conversion, and there would
    // be no easy way to opt-out. Instead, if you want to use this defaulting method
    // run it in your wrapper struct of this type in its `SetDefaults_` method.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 02:59:09 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. pkg/apis/flowcontrol/internalbootstrap/defaults_test.go

    			defaulted := original.DeepCopyObject().(*flowcontrol.FlowSchema)
    			scheme.Default(defaulted)
    			if apiequality.Semantic.DeepEqual(original, defaulted) {
    				t.Logf("Defaulting makes no change to FlowSchema: %q", original.Name)
    				return
    			}
    			t.Errorf("Expected defaulting to not change FlowSchema: %q, diff: %s", original.Name, cmp.Diff(original, defaulted))
    		})
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  3. pkg/apis/flowcontrol/v1/defaults_test.go

    	"k8s.io/utils/ptr"
    )
    
    func TestDefaultWithPriorityLevelConfiguration(t *testing.T) {
    	tests := []struct {
    		name     string
    		original runtime.Object
    		expected runtime.Object
    	}{
    		{
    			name: "Defaulting for Exempt",
    			original: &flowcontrolv1.PriorityLevelConfiguration{
    				Spec: flowcontrolv1.PriorityLevelConfigurationSpec{
    					Type:   flowcontrolv1.PriorityLevelEnablementExempt,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/componentconfigs/kubelet_test.go

    		},
    	}
    }
    
    func TestKubeletDefault(t *testing.T) {
    	tests := []struct {
    		name       string
    		clusterCfg kubeadmapi.ClusterConfiguration
    		expected   kubeletConfig
    	}{
    		{
    			name:       "No specific defaulting works",
    			clusterCfg: kubeadmapi.ClusterConfiguration{},
    			expected: kubeletConfig{
    				config: kubeletconfig.KubeletConfiguration{
    					FeatureGates:  map[string]bool{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 10:26:46 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  5. pkg/controller/podautoscaler/config/v1alpha1/defaults.go

    // function to allow consumers of this type to set whatever defaults for their
    // embedded configs. Forcing consumers to use these defaults would be problematic
    // as defaulting in the scheme is done as part of the conversion, and there would
    // be no easy way to opt-out. Instead, if you want to use this defaulting method
    // run it in your wrapper struct of this type in its `SetDefaults_` method.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 19 09:49:23 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. pkg/apis/flowcontrol/v1beta3/defaults_test.go

    	"k8s.io/utils/pointer"
    )
    
    func TestDefaultWithPriorityLevelConfiguration(t *testing.T) {
    	tests := []struct {
    		name     string
    		original runtime.Object
    		expected runtime.Object
    	}{
    		{
    			name: "Defaulting for Exempt",
    			original: &flowcontrolv1beta3.PriorityLevelConfiguration{
    				Spec: flowcontrolv1beta3.PriorityLevelConfigurationSpec{
    					Type:   flowcontrolv1beta3.PriorityLevelEnablementExempt,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  7. cluster/images/etcd/migrate/options.go

    			opts.port = 18631
    		} else {
    			opts.port = 18629
    		}
    		klog.Infof("--port unset - defaulting to %d", opts.port)
    	}
    	if opts.peerPort == 0 {
    		if etcdEventsRE.MatchString(opts.dataDir) {
    			opts.peerPort = 2381
    		} else {
    			opts.peerPort = 2380
    		}
    		klog.Infof("--peer-port unset - defaulting to %d", opts.peerPort)
    	}
    
    	if opts.initialCluster == "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 09:59:52 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. pkg/kubelet/kubeletconfig/util/codec/codec.go

    func DecodeKubeletConfiguration(kubeletCodecs *serializer.CodecFactory, data []byte) (*kubeletconfig.KubeletConfiguration, error) {
    	var (
    		obj runtime.Object
    		gvk *schema.GroupVersionKind
    	)
    
    	// The UniversalDecoder runs defaulting and returns the internal type by default.
    	obj, gvk, err := kubeletCodecs.UniversalDecoder().Decode(data, nil, nil)
    	if err != nil {
    		// Try strict decoding first. If that fails decode with a lenient
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 21:48:29 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test_cases/valid/default-match-http.yaml

    kind: Gateway
    metadata:
      name: default-match-gw
    spec:
      gatewayClassName: default-match-example
      listeners:
      - name: http
        protocol: HTTP
        port: 80
    ---
    # This HTTPRoute demonstrates patch match defaulting. If no path match is
    # specified, CRD defaults adds a default PathPrefix match on the path "/". This
    # matches every HTTP request and ensures that route rules always have at
    # least one valid match.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 17:15:18 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. pkg/apis/flowcontrol/v1beta3/defaults.go

    // PriorityLevelConfiguration object. Since we need to inspect the presence
    // of the roundtrip annotation in order to determine whether the user has
    // specified a zero value for the 'NominalConcurrencyShares' field,
    // the defaulting logic needs visibility to the annotations field.
    func SetDefaults_PriorityLevelConfiguration(in *v1beta3.PriorityLevelConfiguration) {
    	if limited := in.Spec.Limited; limited != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top