On Fri, Jan 15, 2021 at 03:10:53PM +0800, Cao Xueliang wrote:
On Fri, Jan 15, 2021 at 12:23:22PM +0800, Wu Fengguang wrote:
On Fri, Jan 15, 2021 at 11:37:34AM +0800, Cao Xueliang wrote:
On Fri, Jan 15, 2021 at 10:51:12AM +0800, Wu Fengguang wrote:
--- a/src/delimiter.rb +++ b/src/delimiter.rb @@ -2,9 +2,13 @@ # Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved. # frozen_string_literal: true
+require_relative '../lib/build_my_info_client' require_relative './delimiter/delimiter'
begin
- build_my_info = BuildMyInfo.new(DELIMITER_EMAIL, DELIMITER_NAME, ENV['lab'])
- build_my_info.store_account_info
会不会重复创建帐号? 在sparrow deploy的时候一次性做好?
No account will be created repeatedly.
store_account_info 是在重复吧,每次跑delimiter.rb就重复一次?
Yes, but only have one account, we can search it before create it.
越搞越复杂了。
我们把所有service account集中到一个脚本来创建吧。 sparrow deploy的时候创建一次,或者后面更改了再跑一次即可。
If I want to change the email, I rather start a container than deploy again.
为啥需要change email?
I mean that's more flexible in the container which need a account.
We do that in deploy, we need a accounts file, after the es container is already we store the account info.
就是要集中。随便哪里都可以加帐号的话,以后安全策略不好做。
Thanks, Fengguang