mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 14:14:39 +00:00
Simple refactor for ease of readability
runtime.DefaultCodec -> latest.Codec
This commit is contained in:
@@ -47,7 +47,7 @@ type SourceEtcd struct {
|
||||
func NewSourceEtcd(key string, client tools.EtcdClient, updates chan<- interface{}) *SourceEtcd {
|
||||
helper := tools.EtcdHelper{
|
||||
client,
|
||||
runtime.DefaultCodec,
|
||||
latest.Codec,
|
||||
runtime.DefaultResourceVersioner,
|
||||
}
|
||||
source := &SourceEtcd{
|
||||
|
Reference in New Issue
Block a user