mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #46685 from xilabao/fix-err-message-in-namespace_policy
Automatic merge from submit-queue fix err message in namespace_policy **What this PR does / why we need it**: **Which issue this PR fixes**: fixes #49541 **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
This commit is contained in:
		@@ -53,7 +53,7 @@ func addNamespaceRole(namespace string, role rbac.Role) {
 | 
			
		||||
 | 
			
		||||
func addNamespaceRoleBinding(namespace string, roleBinding rbac.RoleBinding) {
 | 
			
		||||
	if !strings.HasPrefix(namespace, "kube-") {
 | 
			
		||||
		glog.Fatalf(`roles can only be bootstrapped into reserved namespaces starting with "kube-", not %q`, namespace)
 | 
			
		||||
		glog.Fatalf(`rolebindings can only be bootstrapped into reserved namespaces starting with "kube-", not %q`, namespace)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	existingRoleBindings := namespaceRoleBindings[namespace]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user