mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Don't use base64 encoding with etcd v3
This commit is contained in:
		@@ -56,7 +56,7 @@ func NewStorageCodec(opts StorageCodecConfig) (runtime.Codec, error) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	// etcd2 only supports string data - we must wrap any result before returning
 | 
						// etcd2 only supports string data - we must wrap any result before returning
 | 
				
			||||||
	// TODO: storagebackend should return a boolean indicating whether it supports binary data
 | 
						// TODO: storagebackend should return a boolean indicating whether it supports binary data
 | 
				
			||||||
	if !serializer.EncodesAsText && (opts.Config.Type == storagebackend.StorageTypeUnset || opts.Config.Type == storagebackend.StorageTypeETCD2) {
 | 
						if !serializer.EncodesAsText && opts.Config.Type == storagebackend.StorageTypeETCD2 {
 | 
				
			||||||
		glog.V(4).Infof("Wrapping the underlying binary storage serializer with a base64 encoding for etcd2")
 | 
							glog.V(4).Infof("Wrapping the underlying binary storage serializer with a base64 encoding for etcd2")
 | 
				
			||||||
		s = runtime.NewBase64Serializer(s)
 | 
							s = runtime.NewBase64Serializer(s)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user