Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for cacheSizes (0.29 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/options/etcd_test.go

    }
    
    func TestParseWatchCacheSizes(t *testing.T) {
    	testCases := []struct {
    		name                  string
    		cacheSizes            []string
    		expectWatchCacheSizes map[schema.GroupResource]int
    		expectErr             string
    	}{
    		{
    			name:       "test when invalid value of watch cache size",
    			cacheSizes: []string{"deployments.apps#65536", "replicasets.extensions"},
    			expectErr:  "invalid value of watch cache size",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/options/etcd.go

    	var cacheSizes []string
    
    	for resource, size := range watchCacheSizes {
    		if size < 0 {
    			return nil, fmt.Errorf("watch cache size cannot be negative for resource %s", resource)
    		}
    		cacheSizes = append(cacheSizes, fmt.Sprintf("%s#%d", resource.String(), size))
    	}
    	return cacheSizes, nil
    }
    
    var _ serverstorage.StorageFactory = &SimpleStorageFactory{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 15:02:16 UTC 2024
    - 20K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_encryption_test.go

    						Timeout:    &metav1.Duration{Duration: 3 * time.Second},
    						CacheSize:  &cacheSize,
    						APIVersion: "v1",
    					},
    				}, {
    					KMS: &apiserver.KMSConfiguration{
    						Name:       "foo",
    						Endpoint:   "unix:///tmp/kms-provider-2.socket",
    						Timeout:    &metav1.Duration{Duration: 3 * time.Second},
    						CacheSize:  &cacheSize,
    						APIVersion: "v1",
    					},
    				}},
    			}},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 20:54:24 UTC 2023
    - 33.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/apis/apiserver/v1/defaults_test.go

    			want: &KMSConfiguration{Timeout: defaultTimeout, CacheSize: &defaultCacheSize, APIVersion: defaultAPIVersion},
    		},
    		{
    			desc: "cache of zero size supplied",
    			in:   &KMSConfiguration{CacheSize: &zero},
    			want: &KMSConfiguration{Timeout: defaultTimeout, CacheSize: &zero, APIVersion: defaultAPIVersion},
    		},
    		{
    			desc: "positive cache size supplied",
    			in:   &KMSConfiguration{CacheSize: &ten},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 20:54:24 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/apis/apiserver/v1/defaults.go

    	if obj.Timeout == nil {
    		obj.Timeout = defaultTimeout
    	}
    
    	if obj.APIVersion == "" {
    		obj.APIVersion = defaultAPIVersion
    	}
    
    	// cacheSize is relevant only for kms v1
    	if obj.CacheSize == nil && obj.APIVersion == "v1" {
    		obj.CacheSize = &defaultCacheSize
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 20:54:24 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/metrics/metrics_test.go

    			} else {
    				validMetrics++
    			}
    		}
    	}
    	if validMetrics != cacheSize {
    		t.Fatalf("expected total valid metrics to be the same as cacheSize %d, got %d", cacheSize, validMetrics)
    	}
    }
    
    func TestRecordKeyIDFromStatus(t *testing.T) {
    	RegisterMetrics()
    
    	cacheSize = 3
    	registerLRUMetrics()
    	KeyIDHashStatusLastTimestampSeconds.Reset()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 09 22:31:32 UTC 2023
    - 31.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			cacheSize := int32(1000)
    			for _, resource := range testCase.config.Resources {
    				for _, provider := range resource.Providers {
    					if provider.KMS != nil {
    						provider.KMS.CacheSize = &cacheSize
    					}
    				}
    			}
    
    			ctx, cancel := context.WithCancel(context.Background())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_encryption.go

    	if c.APIVersion != "v1" && c.CacheSize != nil {
    		allErrs = append(allErrs, field.Invalid(fieldPath, *c.CacheSize, "cachesize is not supported in v2"))
    	}
    	if c.APIVersion == "v1" && *c.CacheSize == 0 {
    		allErrs = append(allErrs, field.Invalid(fieldPath, *c.CacheSize, fmt.Sprintf(nonZeroErrFmt, "cachesize")))
    	}
    
    	return allErrs
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 20:54:24 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/testdata/invalid-configs/invalid-typo.yaml

              keys:
                - name: key1
                  secret: YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXoxMjM0NTY=
          - kms:
              name: testprovider
              endpoint: unix:///tmp/testprovider.sock
              cachesize: 10
          - kms:
              apiVersion: v2
              name: testproviderv2
              endpoint: unix:///tmp/testprovider.sock
              timeout: 10s
              pandas: are the best  # true, but still a typo
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 941 bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultInMemoryCacheDecoratorFactory.java

        private final static Logger LOG = LoggerFactory.getLogger(DefaultInMemoryCacheDecoratorFactory.class);
        private final boolean longLivingProcess;
        private final HeapProportionalCacheSizer cacheSizer = new HeapProportionalCacheSizer();
        private final CrossBuildInMemoryCache<String, CacheDetails> caches;
    
        public DefaultInMemoryCacheDecoratorFactory(boolean longLivingProcess, CrossBuildInMemoryCacheFactory cacheFactory) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:36 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top