Skip to content
Snippets Groups Projects
Commit 995ffe52 authored by Rafia Sabih's avatar Rafia Sabih
Browse files

add log messages for usernames

parent f9150aa6
No related branches found
No related tags found
No related merge requests found
......@@ -1118,6 +1118,7 @@ func (c *Cluster) initDefaultRoles(defaultRoles map[string]string, admin, prefix
if secretNamespace != "" {
if c.Config.OpConfig.EnableCrossNamespaceSecret {
namespace = secretNamespace
c.logger.Warningf("enable_cross_namespace_secret is set. Hence username contains the respective namespace i.e. %s is the created user", prefix+defaultRole)
} else {
c.logger.Warn("secretNamespace ignored because enable_cross_namespace_secret set to false. Creating secrets in cluster namespace.")
}
......@@ -1176,6 +1177,7 @@ func (c *Cluster) initRobotUsers() error {
if strings.Contains(username, ".") {
splits := strings.Split(username, ".")
namespace = splits[0]
c.logger.Warningf("enable_cross_namespace_secret is set. Hence username contains the respective namespace i.e. %s is the created user", username)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment