add log messages for usernames
This commit is contained in:
		
							parent
							
								
									f9150aa6db
								
							
						
					
					
						commit
						995ffe5297
					
				|  | @ -1118,6 +1118,7 @@ func (c *Cluster) initDefaultRoles(defaultRoles map[string]string, admin, prefix | ||||||
| 		if secretNamespace != "" { | 		if secretNamespace != "" { | ||||||
| 			if c.Config.OpConfig.EnableCrossNamespaceSecret { | 			if c.Config.OpConfig.EnableCrossNamespaceSecret { | ||||||
| 				namespace = secretNamespace | 				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 { | 			} else { | ||||||
| 				c.logger.Warn("secretNamespace ignored because enable_cross_namespace_secret set to false. Creating secrets in cluster namespace.") | 				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, ".") { | 			if strings.Contains(username, ".") { | ||||||
| 				splits := strings.Split(username, ".") | 				splits := strings.Split(username, ".") | ||||||
| 				namespace = splits[0] | 				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) | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue