mirror of
https://github.com/labring/sealos.git
synced 2026-08-29 01:39:49 +08:00
fix(user-controller): update namespace condition to exclude 'ns-admin' (#6799)
Signed-off-by: cuisongliu <cuisongliu@qq.com>
This commit is contained in:
@@ -304,7 +304,7 @@ func (r *UserReconciler) syncNamespace(
|
||||
}
|
||||
ns.Annotations[userAnnotationCreatorKey] = user.Name
|
||||
ns.Annotations[userAnnotationOwnerKey] = user.Annotations[userAnnotationOwnerKey]
|
||||
if ns.Name != "admin" {
|
||||
if ns.Name != "ns-admin" {
|
||||
ns.Labels = config.SetPodSecurity(ns.Labels)
|
||||
} else {
|
||||
for k := range ns.Labels {
|
||||
|
||||
Reference in New Issue
Block a user