Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 52 for configPath (0.36 sec)

  1. pilot/pkg/model/typed_xds_cache_test.go

    	"istio.io/istio/tests/util/leak"
    )
    
    type entry struct {
    	key              string
    	dependentTypes   []kind.Kind
    	dependentConfigs []ConfigHash
    }
    
    func (e entry) Key() uint64 {
    	h := hash.New()
    	h.WriteString(e.key)
    	return h.Sum64()
    }
    
    func (e entry) DependentConfigs() []ConfigHash {
    	return e.dependentConfigs
    }
    
    func TestAddTwoEntries(t *testing.T) {
    	test.SetForTest(t, &features.XDSCacheMaxSize, 2)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jan 29 20:35:31 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. cmd/admin-bucket-handlers.go

    					writeErrorResponse(ctx, w, exportError(ctx, err, cfgFile, bucket), r.URL)
    					return
    				}
    				configData, err := xml.Marshal(config)
    				if err != nil {
    					writeErrorResponse(ctx, w, exportError(ctx, err, cfgFile, bucket), r.URL)
    					return
    				}
    				rawDataFn(bytes.NewReader(configData), cfgPath, len(configData))
    			case bucketLifecycleConfig:
    				config, _, err := globalBucketMetadataSys.GetLifecycleConfig(bucket)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  3. cmd/bucket-metadata.go

    		case bucketPolicyConfig:
    			b.PolicyConfigJSON = configData
    		case bucketNotificationConfig:
    			b.NotificationConfigXML = configData
    		case bucketLifecycleConfig:
    			b.LifecycleConfigXML = configData
    		case bucketSSEConfig:
    			b.EncryptionConfigXML = configData
    		case bucketTaggingConfig:
    			b.TaggingConfigXML = configData
    		case objectLockConfig:
    			b.ObjectLockConfigXML = configData
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  4. pilot/pkg/model/typed_xds_cache.go

    		enableAssertions: features.EnableUnsafeAssertions,
    		configIndex:      map[ConfigHash]sets.Set[K]{},
    		evictQueue:       make([]evictKeyConfigs[K], 0, 1000),
    	}
    	cache.store = newLru(cache.onEvict)
    	return cache
    }
    
    type evictKeyConfigs[K comparable] struct {
    	key              K
    	dependentConfigs []ConfigHash
    }
    
    type lruCache[K comparable] struct {
    	enableAssertions bool
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 05:26:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. cmd/bucket-metadata-sys.go

    	case bucketPolicyConfig:
    		meta.PolicyConfigJSON = configData
    		meta.PolicyConfigUpdatedAt = updatedAt
    	case bucketNotificationConfig:
    		meta.NotificationConfigXML = configData
    	case bucketLifecycleConfig:
    		meta.LifecycleConfigXML = configData
    		meta.LifecycleConfigUpdatedAt = updatedAt
    	case bucketSSEConfig:
    		meta.EncryptionConfigXML = configData
    		meta.EncryptionConfigUpdatedAt = updatedAt
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  6. cmd/bucket-replication-handlers.go

    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	configData, err := xml.Marshal(replicationConfig)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	if _, err = globalBucketMetadataSys.Update(ctx, bucket, bucketReplicationConfig, configData); err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  7. pilot/pkg/model/config.go

    var _ = udpa.TypedStruct{}
    
    type ConfigHash uint64
    
    // ConfigKey describe a specific config item.
    // In most cases, the name is the config's name. However, for ServiceEntry it is service's FQDN.
    type ConfigKey struct {
    	Kind      kind.Kind
    	Name      string
    	Namespace string
    }
    
    func (key ConfigKey) HashCode() ConfigHash {
    	h := hash.New()
    	h.Write([]byte{byte(key.Kind)})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 08:51:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/componentconfigs/configset.go

    			return nil, nil
    		}
    		return nil, err
    	}
    
    	configData, ok := configMap.Data[cmKey]
    	if !ok {
    		return nil, errors.Errorf("unexpected error when reading %s ConfigMap: %s key value pair missing", cmName, cmKey)
    	}
    
    	gvkmap, err := kubeadmutil.SplitYAMLDocuments([]byte(configData))
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 04 15:36:00 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. pilot/pkg/xds/sds.go

    	return model.SDSType
    }
    
    func (sr SecretResource) Key() any {
    	return sr.SecretResource.Key() + "/" + sr.pkpConfHash
    }
    
    func (sr SecretResource) DependentConfigs() []model.ConfigHash {
    	configs := []model.ConfigHash{}
    	for _, config := range relatedConfigs(model.ConfigKey{Kind: kind.Secret, Name: sr.Name, Namespace: sr.Namespace}) {
    		configs = append(configs, config.HashCode())
    	}
    	return configs
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 23:04:36 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  10. pilot/pkg/model/sidecar.go

    	// Set of known configs this sidecar depends on.
    	// This field will be used to determine the config/resource scope
    	// which means which config changes will affect the proxies within this scope.
    	configDependencies sets.Set[ConfigHash]
    }
    
    // MarshalJSON implements json.Marshaller
    func (sc *SidecarScope) MarshalJSON() ([]byte, error) {
    	// Json cannot expose unexported fields, so copy the ones we want here
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 20:32:23 UTC 2024
    - 38.4K bytes
    - Viewed (0)
Back to top