Commit dae29625 authored by Wojciech Tyczynski's avatar Wojciech Tyczynski

Enable protobufs in etcd by default

parent 7ee9abe4
......@@ -87,6 +87,8 @@ func NewServerRunOptions() *ServerRunOptions {
},
ServiceNodePortRange: DefaultServiceNodePortRange,
}
// Overwrite the default for storage data format.
s.GenericServerRunOptions.DefaultStorageMediaType = "application/vnd.kubernetes.protobuf"
return &s
}
......
......@@ -55,6 +55,8 @@ func NewServerRunOptions() *ServerRunOptions {
EventTTL: 1 * time.Hour,
}
// Overwrite the default for storage data format.
s.GenericServerRunOptions.DefaultStorageMediaType = "application/vnd.kubernetes.protobuf"
return &s
}
......
......@@ -37,7 +37,9 @@ type ServerRunOptions struct {
AdmissionControlConfigFile string
AdvertiseAddress net.IP
CorsAllowedOriginList []string
CorsAllowedOriginList []string
// To enable protobuf as storage format, it is enough
// to set it to "application/vnd.kubernetes.protobuf".
DefaultStorageMediaType string
DeleteCollectionWorkers int
AuditLogPath string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment