Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 134 for fsquota (0.21 sec)

  1. pkg/volume/emptydir/empty_dir.go

    		// above.
    		hasQuotas, err := fsquota.SupportsQuotas(ed.mounter, dir)
    		if err != nil {
    			klog.V(3).Infof("Unable to check for quota support on %s: %s", dir, err.Error())
    		} else if hasQuotas {
    			klog.V(4).Infof("emptydir trying to assign quota %v on %s", mounterSize, dir)
    			if err := fsquota.AssignQuota(ed.mounter, dir, ed.pod.UID, mounterSize); err != nil {
    				klog.V(3).Infof("Set quota on %s failed %s", dir, err.Error())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. pkg/volume/util/fsquota/quota_linux_test.go

    limitations under the License.
    */
    
    package fsquota
    
    import (
    	"fmt"
    	"os"
    	"strings"
    	"testing"
    
    	"k8s.io/mount-utils"
    
    	"k8s.io/apimachinery/pkg/api/resource"
    	"k8s.io/apimachinery/pkg/types"
    	utilfeature "k8s.io/apiserver/pkg/util/feature"
    	featuregatetesting "k8s.io/component-base/featuregate/testing"
    	"k8s.io/kubernetes/pkg/features"
    	"k8s.io/kubernetes/pkg/volume/util/fsquota/common"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  3. cmd/bucket-quota.go

    			internalLogIf(GlobalContext, errors.New("Detected older 'fifo' quota config, 'fifo' feature is removed and not supported anymore. Please clear your quota configs using 'mc admin bucket quota alias/bucket --clear' and use 'mc ilm add' for expiration of objects"), logger.WarningKind)
    			return quotaCfg, fmt.Errorf("invalid quota type 'fifo'")
    		}
    		return quotaCfg, fmt.Errorf("Invalid quota config %#v", quotaCfg)
    	}
    	return
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/helpers_linux.go

    	MinQuotaPeriod = 1000
    )
    
    // MilliCPUToQuota converts milliCPU to CFS quota and period values.
    // Input parameters and resulting value is number of microseconds.
    func MilliCPUToQuota(milliCPU int64, period int64) (quota int64) {
    	// CFS quota is measured in two values:
    	//  - cfs_period_us=100ms (the amount of time to measure usage across given by period)
    	//  - cfs_quota=20ms (the amount of cpu time allowed to be used across a period)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 11:52:28 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access.go

    // checkCache compares the passed quota against the value in the look-aside cache and returns the newer
    // if the cache is out of date, it deletes the stale entry.  This only works because of etcd resourceVersions
    // being monotonically increasing integers
    func (e *quotaAccessor) checkCache(quota *corev1.ResourceQuota) *corev1.ResourceQuota {
    	key := quota.Namespace + "/" + quota.Name
    	uncastCachedQuota, ok := e.updatedQuotas.Get(key)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 13:54:56 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  9. plugin/pkg/admission/resourcequota/admission_test.go

    	}
    }
    
    // TestAdmitBelowTerminatingQuotaLimit ensures that terminating pods are charged to the right quota.
    // It creates a terminating and non-terminating quota, and creates a terminating pod.
    // It ensures that the terminating quota is incremented, and the non-terminating quota is not.
    func TestAdmitBelowTerminatingQuotaLimit(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 84.1K bytes
    - Viewed (0)
  10. pkg/controlplane/apiserver/admission/initializer.go

    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/apiserver/pkg/admission"
    	"k8s.io/apiserver/pkg/admission/initializer"
    	quota "k8s.io/apiserver/pkg/quota/v1"
    )
    
    // PluginInitializer is used for initialization of the generic controlplane admission plugins.
    type PluginInitializer struct {
    	quotaConfiguration         quota.Configuration
    	excludedAdmissionResources []schema.GroupResource
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top