Skip to content

Commit

Permalink
feat: ensuring well-known label
Browse files Browse the repository at this point in the history
Signed-off-by: Dario Tranchitella <[email protected]>
  • Loading branch information
prometherion committed Nov 26, 2023
1 parent 2c70bf0 commit 62de942
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/tenant/namespaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ func (r *Manager) syncNamespaceMetadata(ctx context.Context, namespace string, t
res, conflictErr = controllerutil.CreateOrUpdate(ctx, r.Client, ns, func() error {
annotations := make(map[string]string)
labels := map[string]string{
"name": namespace,
capsuleLabel: tnt.GetName(),
"kubernetes.io/metadata.name": namespace,
capsuleLabel: tnt.GetName(),
}

if tnt.Spec.NamespaceOptions != nil && tnt.Spec.NamespaceOptions.AdditionalMetadata != nil {
Expand Down

0 comments on commit 62de942

Please sign in to comment.