From 2a454dcea0b867bab44796a86a8b27f04b49528d Mon Sep 17 00:00:00 2001 From: xiangpengzhao Date: Thu, 12 Oct 2017 19:42:12 +0800 Subject: [PATCH] Mark etcd-quorum-read as deprecated. --- staging/src/k8s.io/apiserver/pkg/server/options/etcd.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/staging/src/k8s.io/apiserver/pkg/server/options/etcd.go b/staging/src/k8s.io/apiserver/pkg/server/options/etcd.go index f05e9b289e3f0..d522cde9bcb8a 100644 --- a/staging/src/k8s.io/apiserver/pkg/server/options/etcd.go +++ b/staging/src/k8s.io/apiserver/pkg/server/options/etcd.go @@ -144,7 +144,8 @@ func (s *EtcdOptions) AddFlags(fs *pflag.FlagSet) { "SSL Certificate Authority file used to secure etcd communication.") fs.BoolVar(&s.StorageConfig.Quorum, "etcd-quorum-read", s.StorageConfig.Quorum, - "If true, enable quorum read.") + "If true, enable quorum read. It defaults to true and is strongly recommended not setting to false.") + fs.MarkDeprecated("etcd-quorum-read", "This flag is deprecated and the ability to switch off quorum read will be removed in a future release.") fs.StringVar(&s.EncryptionProviderConfigFilepath, "experimental-encryption-provider-config", s.EncryptionProviderConfigFilepath, "The file containing configuration for encryption providers to be used for storing secrets in etcd")