mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-08-19 12:36:39 +00:00
feat: adding name label to each Namespace (#242)
Co-authored-by: Santiago Sanchez Paz <sanchezpaz@gmail.com>
This commit is contained in:
co-authored by
Santiago Sanchez Paz
parent
d8449fee24
commit
12237ae106
@@ -500,6 +500,7 @@ func (r *TenantReconciler) syncNamespaceMetadata(namespace string, tnt *capsulev
|
||||
if l == nil {
|
||||
l = make(map[string]string)
|
||||
}
|
||||
l["name"] = namespace
|
||||
capsuleLabel, _ := capsulev1alpha1.GetTypeLabel(&capsulev1alpha1.Tenant{})
|
||||
l[capsuleLabel] = tnt.GetName()
|
||||
ns.SetLabels(l)
|
||||
|
||||
Reference in New Issue
Block a user