Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 345 for quotas (0.14 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access_test.go

    		go func() {
    			defer wg.Done()
    			quotas, err := accessor.GetQuotas(testNamespace1)
    			if err != nil {
    				t.Errorf("unexpected error: %v", err)
    			}
    			if len(quotas) != len(resourceQuotas) {
    				t.Errorf("Expected %d resource quotas, got %d", len(resourceQuotas), len(quotas))
    			}
    			for _, q := range quotas {
    				if q.Namespace != testNamespace1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 13:54:56 UTC 2024
    - 7.2K 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. staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access.go

    		return quota
    	}
    	cachedQuota := uncastCachedQuota.(*corev1.ResourceQuota)
    
    	if etcdVersioner.CompareResourceVersion(quota, cachedQuota) >= 0 {
    		e.updatedQuotas.Remove(key)
    		return quota
    	}
    	return cachedQuota
    }
    
    func (e *quotaAccessor) GetQuotas(namespace string) ([]corev1.ResourceQuota, error) {
    	// determine if there are any quotas in this namespace
    	// if there are no quotas, we don't need to do anything
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 13:54:56 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. 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)
  5. pkg/volume/util/fsquota/quota_linux_test.go

    }
    
    const (
    	projectsHeader = `# This is a /etc/projects header
    1048578:/quota/d
    `
    	projects1 = `1048577:/quota1/a
    `
    	projects2 = `1048577:/quota1/a
    1048580:/quota1/b
    `
    	projects3 = `1048577:/quota1/a
    1048580:/quota1/b
    1048581:/quota2/b
    `
    	projects4 = `1048577:/quota1/a
    1048581:/quota2/b
    `
    	projects5 = `1048581:/quota2/b
    `
    
    	projidHeader = `# This is a /etc/projid header
    xxxxxx:1048579
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  6. pkg/volume/emptydir/empty_dir.go

    		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())
    				return err
    			}
    			return nil
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 19K bytes
    - Viewed (0)
  7. 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)
  8. operator/pkg/apis/istio/v1alpha1/values_types.proto

      // The name of the init container to use for the repairPods mode.
      string initContainerName = 10;
    }
    
    // Configuration for the resource quotas for the CNI DaemonSet.
    message ResourceQuotas {
      // Controls whether to create resource quotas or not for the CNI DaemonSet.
      google.protobuf.BoolValue enabled = 1;
    
      // The hard limit on the number of pods in the namespace where the CNI DaemonSet is deployed.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 01:55:05 UTC 2024
    - 57.2K bytes
    - Viewed (0)
  9. src/strconv/quote.go

    	}
    	quote := in[0]
    	end := index(in[1:], quote)
    	if end < 0 {
    		return "", in, ErrSyntax
    	}
    	end += 2 // position after terminating quote; may be wrong if escape sequences are present
    
    	switch quote {
    	case '`':
    		switch {
    		case !unescape:
    			out = in[:end] // include quotes
    		case !contains(in[:end], '\r'):
    			out = in[len("`") : end-len("`")] // exclude quotes
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  10. 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)
Back to top