fix(user-controller): update namespace condition to exclude 'ns-admin' (#6799)

Signed-off-by: cuisongliu <cuisongliu@qq.com>
This commit is contained in:
cuisongliu
2026-03-13 17:17:44 +08:00
committed by GitHub
parent 8b8fc465c0
commit f3d634937e
@@ -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 {