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") }
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") }