Просмотр исходного кода

etcdmain: more description for init cluster token

This adds more description to initial-cluster-token from
https://github.com/coreos/etcd/issues/3690 to help.go.
Gyu-Ho Lee 10 лет назад
Родитель
Сommit
5eb57c2aee
2 измененных файлов с 3 добавлено и 0 удалено
  1. 2 0
      etcdmain/config.go
  2. 1 0
      etcdmain/help.go

+ 2 - 0
etcdmain/config.go

@@ -12,6 +12,8 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+// Every change should be reflected on help.go as well.
+
 package etcdmain
 
 import (

+ 1 - 0
etcdmain/help.go

@@ -57,6 +57,7 @@ clustering flags:
 		initial cluster state ('new' or 'existing').
 	--initial-cluster-token 'etcd-cluster'
 		initial cluster token for the etcd cluster during bootstrap.
+		Specifying this can protect you from unintended cross-cluster interaction when running multiple clusters.
 	--advertise-client-urls 'http://localhost:2379,http://localhost:4001'
 		list of this member's client URLs to advertise to the public.
 		The client URLs advertised should be accessible to machines that talk to etcd cluster. etcd client libraries parse these URLs to connect to the cluster.