예제 #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")
}