Beispiel #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")
}
Beispiel #2
0
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")
}