示例#1
0
func updatePolicy(cluster string) {
	remote := c_GRU_REMOTE + cluster + "/" + c_POLICY_REMOTE
	policy := cfg.ReadPolicyConfig(remote)
	cfg.SetPolicy(policy)
	log.WithField("policy", policy).Debugln("Policy updated from remote")
}
示例#2
0
文件: join.go 项目: elleFlorio/gru
func initializePolicy(clusterName string) {
	remote := c_GRU_REMOTE + clusterName + "/" + c_POLICY_REMOTE
	policy := cfg.ReadPolicyConfig(remote)
	cfg.SetPolicy(policy)
	log.WithField("Policy", policy).Debugln("Policy read from remote")
}