Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 236 for fsquota (0.14 sec)

  1. pkg/volume/util/fs/fs.go

    	if path == "" {
    		return usage, fmt.Errorf("invalid directory")
    	}
    
    	// First check whether the quota system knows about this directory
    	// A nil quantity or error means that the path does not support quotas
    	// or xfs_quota tool is missing and we should use other mechanisms.
    	startTime := time.Now()
    	consumption, _ := fsquota.GetConsumption(path)
    	if consumption != nil {
    		usage.Bytes = consumption.Value()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 20 02:56:02 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  2. pkg/volume/util/fsquota/quota.go

    limitations under the License.
    */
    
    package fsquota
    
    import (
    	"k8s.io/mount-utils"
    
    	"k8s.io/apimachinery/pkg/api/resource"
    	"k8s.io/apimachinery/pkg/types"
    	utilfeature "k8s.io/apiserver/pkg/util/feature"
    	"k8s.io/kubernetes/pkg/features"
    	"k8s.io/kubernetes/pkg/volume/util/fsquota/common"
    )
    
    // Interface -- quota interface
    type Interface interface {
    	// GetQuotaOnDir gets the quota ID (if any) that applies to
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 28 06:09:31 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. pkg/volume/util/fsquota/quota_unsupported.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package fsquota
    
    import (
    	"errors"
    
    	"k8s.io/kubernetes/pkg/volume/util/fsquota/common"
    	"k8s.io/mount-utils"
    
    	"k8s.io/apimachinery/pkg/api/resource"
    	"k8s.io/apimachinery/pkg/types"
    )
    
    // Dummy quota implementation for systems that do not implement support
    // for volume quotas
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 28 06:09:31 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. 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)
  5. pkg/volume/util/fsquota/quota_linux.go

    	// From fsquota point of view each volume is attached to a
    	// single unique pod.
    	// If we decide later that we want to assign one quota for all
    	// volumes in a pod, we can simply use poduid parameter directly
    	// If and when we decide permanently that we're going to adopt
    	// one quota per volume, we can rip all of the pod code out.
    	externalPodUid := poduid
    	internalPodUid, ok := dirPodMap[path]
    	if ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 07 08:07:51 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  6. pkg/kubelet/server/metrics/metrics.go

    		},
    		[]string{"method", "path", "server_type", "long_running"},
    	)
    	// VolumeStatCalDuration tracks the duration in seconds to calculate volume stats.
    	// this metric is mainly for comparison between fsquota monitoring and `du` for disk usage.
    	VolumeStatCalDuration = metrics.NewHistogramVec(
    		&metrics.HistogramOpts{
    			Subsystem:      kubeletSubsystem,
    			Name:           "volume_metric_collection_duration_seconds",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 19 14:33:37 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  7. pkg/volume/util/fsquota/project.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package fsquota
    
    import (
    	"bufio"
    	"fmt"
    	"os"
    	"path/filepath"
    	"regexp"
    	"strconv"
    	"sync"
    
    	"golang.org/x/sys/unix"
    	"k8s.io/kubernetes/pkg/volume/util/fsquota/common"
    )
    
    var projectsFile = "/etc/projects"
    var projidFile = "/etc/projid"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. cluster/gce/addons/admission-resource-quota-critical-pods/resource-quota.yaml

    # critical pods are configured as a limited resource by admission_controller_config.yaml,
    # which means they are disallowed unless explicitly allowed by a namespaced quota object.
    # This quota effectively removes the restriction on the number of critical pods allowed in the kube-system namespace.
    apiVersion: v1
    kind: ResourceQuota
    metadata:
      name: gcp-critical-pods
      namespace: kube-system
      labels:
        addonmanager.kubernetes.io/mode: Reconcile
    spec:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 17 13:52:19 UTC 2020
    - 644 bytes
    - Viewed (0)
Back to top