Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for vuotta (0.11 sec)

  1. pkg/volume/util/fsquota/quota_linux.go

    			klog.V(3).Infof("Attempt to clear quota failed: %v", err)
    		}
    		// Even if clearing the quota failed, we still need to
    		// try to remove the project ID, or that may be left dangling.
    		err1 := removeProjectID(path, projid)
    		if err1 != nil {
    			klog.V(3).Infof("Attempt to remove quota ID from system files failed: %v", err1)
    		}
    		clearFSInfo(path)
    		if err != nil {
    			return err
    		}
    		return err1
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 07 08:07:51 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/controller.go

    //     and the running quota doesn't change.  If it did fit, check to see if any quota was changed.  If there was no quota change
    //     mark the waiter as succeeded.  If some quota did change, update the running quotas
    //  2. If no running quota was changed, return now since no updates are needed.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  3. pkg/controller/resourcequota/resource_quota_controller.go

    				// We are only interested in observing updates to quota.spec to drive updates to quota.status.
    				// We ignore all updates to quota.Status because they are all driven by this controller.
    				// IMPORTANT:
    				// We do not use this function to queue up a full quota recalculation.  To do so, would require
    				// us to enqueue all quota.Status updates, and since quota.Status updates involve additional queries
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/helpers_linux_test.go

    		{
    			msg:      "1500 input 150k quota and default period",
    			input:    int64(1500),
    			expected: int64(150000),
    			period:   uint64(100000),
    		}} {
    		t.Run(testCase.msg, func(t *testing.T) {
    			quota := milliCPUToQuota(testCase.input, int64(testCase.period))
    			if quota != testCase.expected {
    				t.Errorf("Input %v and %v, expected quota %v, but got quota %v", testCase.input, testCase.period, testCase.expected, quota)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/quota/v1/generic/evaluator.go

    func (o *objectCountEvaluator) UsageStats(options quota.UsageStatsOptions) (quota.UsageStats, error) {
    	return CalculateUsageStats(options, o.listFuncByNamespace, MatchesNoScopeFunc, o.Usage)
    }
    
    // Verify implementation of interface at compile time.
    var _ quota.Evaluator = &objectCountEvaluator{}
    
    // NewObjectCountEvaluator returns an evaluator that can perform generic
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 05 00:02:47 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  6. pkg/quota/v1/evaluator/core/pods.go

    	"k8s.io/apimachinery/pkg/labels"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/apiserver/pkg/admission"
    	quota "k8s.io/apiserver/pkg/quota/v1"
    	"k8s.io/apiserver/pkg/quota/v1/generic"
    	"k8s.io/apiserver/pkg/util/feature"
    	"k8s.io/utils/clock"
    
    	resourcehelper "k8s.io/kubernetes/pkg/api/v1/resource"
    	api "k8s.io/kubernetes/pkg/apis/core"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 05 00:02:47 UTC 2023
    - 17.4K bytes
    - Viewed (0)
  7. pkg/controller/resourcequota/resource_quota_controller_test.go

    		items             []runtime.Object
    		quota             v1.ResourceQuota
    		status            v1.ResourceQuotaStatus
    		expectedError     string
    		expectedActionSet sets.String
    	}{
    		"non-matching-best-effort-scoped-quota": {
    			gvr: v1.SchemeGroupVersion.WithResource("pods"),
    			quota: v1.ResourceQuota{
    				ObjectMeta: metav1.ObjectMeta{Name: "quota", Namespace: "testing"},
    				Spec: v1.ResourceQuotaSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 16:29:33 UTC 2023
    - 42.6K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/helpers_linux_test.go

    		quota := MilliCPUToQuota(testCase.input, int64(testCase.period))
    		if quota != testCase.quota {
    			t.Errorf("Input %v and %v, expected quota %v, but got quota %v", testCase.input, testCase.period, testCase.quota, quota)
    		}
    	}
    }
    
    func TestHugePageLimits(t *testing.T) {
    	Mi := int64(1024 * 1024)
    	type inputStruct struct {
    		key   string
    		input string
    	}
    
    	testCases := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/helpers_linux.go

    		period = QuotaPeriod
    	}
    
    	// we then convert your milliCPU to a value normalized over a period
    	quota = (milliCPU * period) / MilliCPUToCPU
    
    	// quota needs to be a minimum of 1ms.
    	if quota < MinQuotaPeriod {
    		quota = MinQuotaPeriod
    	}
    	return
    }
    
    // MilliCPUToShares converts the milliCPU to CFS shares.
    func MilliCPUToShares(milliCPU int64) uint64 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 11:52:28 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  10. pkg/controller/resourcequota/resource_quota_monitor.go

    	"k8s.io/apimachinery/pkg/runtime/schema"
    	utilerrors "k8s.io/apimachinery/pkg/util/errors"
    	utilruntime "k8s.io/apimachinery/pkg/util/runtime"
    	"k8s.io/apimachinery/pkg/util/wait"
    	quota "k8s.io/apiserver/pkg/quota/v1"
    	"k8s.io/apiserver/pkg/quota/v1/generic"
    	"k8s.io/client-go/tools/cache"
    	"k8s.io/client-go/util/workqueue"
    	"k8s.io/controller-manager/pkg/informerfactory"
    	"k8s.io/kubernetes/pkg/controller"
    )
    
    type eventType int
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 11.6K bytes
    - Viewed (0)
Back to top