Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for lendablePercent (0.3 sec)

  1. pkg/apis/flowcontrol/v1beta1/defaults.go

    	}
    	if eplc.LendablePercent == nil {
    		eplc.LendablePercent = new(int32)
    		*eplc.LendablePercent = 0
    	}
    }
    
    func SetDefaults_LimitedPriorityLevelConfiguration(lplc *v1beta1.LimitedPriorityLevelConfiguration) {
    	if lplc.AssuredConcurrencyShares == 0 {
    		lplc.AssuredConcurrencyShares = PriorityLevelConfigurationDefaultAssuredConcurrencyShares
    	}
    	if lplc.LendablePercent == nil {
    		lplc.LendablePercent = new(int32)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 00:47:58 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. pkg/apis/flowcontrol/v1beta2/defaults_test.go

    					Exempt: &flowcontrolv1beta2.ExemptPriorityLevelConfiguration{
    						NominalConcurrencyShares: pointer.Int32(0),
    						LendablePercent:          pointer.Int32(0),
    					},
    				},
    			},
    		},
    		{
    			name: "LendablePercent is not specified, should default to zero",
    			original: &flowcontrolv1beta2.PriorityLevelConfiguration{
    				Spec: flowcontrolv1beta2.PriorityLevelConfigurationSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 00:47:58 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/testdata/v1.30.0/flowcontrol.apiserver.k8s.io.v1beta3.PriorityLevelConfiguration.yaml

        name: nameValue
        uid: uidValue
      resourceVersion: resourceVersionValue
      selfLink: selfLinkValue
      uid: uidValue
    spec:
      exempt:
        lendablePercent: 2
        nominalConcurrencyShares: 1
      limited:
        borrowingLimitPercent: 4
        lendablePercent: 3
        limitResponse:
          queuing:
            handSize: 2
            queueLengthLimit: 3
            queues: 1
          type: typeValue
        nominalConcurrencyShares: 1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  4. pkg/apis/flowcontrol/v1beta3/defaults_test.go

    					Exempt: &flowcontrolv1beta3.ExemptPriorityLevelConfiguration{
    						NominalConcurrencyShares: pointer.Int32(0),
    						LendablePercent:          pointer.Int32(0),
    					},
    				},
    			},
    		},
    		{
    			name: "LendablePercent is not specified in Limited, should default to zero",
    			original: &flowcontrolv1beta3.PriorityLevelConfiguration{
    				Spec: flowcontrolv1beta3.PriorityLevelConfigurationSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/apis/flowcontrol/bootstrap/default_test.go

    	}
    	if exemptPL.Spec.Exempt.LendablePercent != nil && *exemptPL.Spec.Exempt.LendablePercent != 0 {
    		t.Errorf("Expected exempt priority level to have LendablePercent==0 but got %d instead", *exemptPL.Spec.Exempt.LendablePercent)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/testdata/v1.29.0/flowcontrol.apiserver.k8s.io.v1beta3.PriorityLevelConfiguration.yaml

        name: nameValue
        uid: uidValue
      resourceVersion: resourceVersionValue
      selfLink: selfLinkValue
      uid: uidValue
    spec:
      exempt:
        lendablePercent: 2
        nominalConcurrencyShares: 1
      limited:
        borrowingLimitPercent: 4
        lendablePercent: 3
        limitResponse:
          queuing:
            handSize: 2
            queueLengthLimit: 3
            queues: 1
          type: typeValue
        nominalConcurrencyShares: 1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 04:12:07 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/testdata/v1.30.0/flowcontrol.apiserver.k8s.io.v1beta1.PriorityLevelConfiguration.yaml

        name: nameValue
        uid: uidValue
      resourceVersion: resourceVersionValue
      selfLink: selfLinkValue
      uid: uidValue
    spec:
      exempt:
        lendablePercent: 2
        nominalConcurrencyShares: 1
      limited:
        assuredConcurrencyShares: 1
        borrowingLimitPercent: 4
        lendablePercent: 3
        limitResponse:
          queuing:
            handSize: 2
            queueLengthLimit: 3
            queues: 1
          type: typeValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. pkg/apis/flowcontrol/v1beta2/defaults.go

    	}
    	if eplc.LendablePercent == nil {
    		eplc.LendablePercent = new(int32)
    		*eplc.LendablePercent = 0
    	}
    }
    
    func SetDefaults_LimitedPriorityLevelConfiguration(lplc *v1beta2.LimitedPriorityLevelConfiguration) {
    	if lplc.AssuredConcurrencyShares == 0 {
    		lplc.AssuredConcurrencyShares = PriorityLevelConfigurationDefaultAssuredConcurrencyShares
    	}
    	if lplc.LendablePercent == nil {
    		lplc.LendablePercent = new(int32)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 00:47:58 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. pkg/apis/flowcontrol/v1/defaults.go

    	if eplc.NominalConcurrencyShares == nil {
    		eplc.NominalConcurrencyShares = new(int32)
    		*eplc.NominalConcurrencyShares = 0
    	}
    	if eplc.LendablePercent == nil {
    		eplc.LendablePercent = new(int32)
    		*eplc.LendablePercent = 0
    	}
    }
    
    func SetDefaults_LimitedPriorityLevelConfiguration(lplc *v1.LimitedPriorityLevelConfiguration) {
    	if lplc.NominalConcurrencyShares == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  10. pkg/apis/flowcontrol/validation/validation_test.go

    		}
    		return fmt.Sprintf("lendablePercent %s, borrowingLimitPercent %s", formatFn(lendablePercent), formatFn(borrowingLimitPercent))
    	}
    
    	tests := []struct {
    		lendablePercent       *int32
    		borrowingLimitPercent *int32
    		errExpected           field.ErrorList
    	}{{
    		lendablePercent: nil,
    		errExpected:     nil,
    	}, {
    		lendablePercent: pointer.Int32(0),
    		errExpected:     nil,
    	}, {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 54.7K bytes
    - Viewed (0)
Back to top