Skip to content

Commit

Permalink
feat: replicating kamajicontrolplane metadata to tenantcontrolplane
Browse files Browse the repository at this point in the history
Signed-off-by: Dario Tranchitella <[email protected]>
  • Loading branch information
prometherion committed Oct 24, 2024
1 parent 77bbe06 commit fb45a58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/kamajicontrolplane_controller_tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ func (r *KamajiControlPlaneReconciler) createOrUpdateTenantControlPlane(ctx cont
}

_, scopeErr := controllerutil.CreateOrUpdate(ctx, k8sClient, tcp, func() error {
if tcp.Annotations == nil {
tcp.Labels = kcp.Labels
if tcp.Annotations = kcp.Annotations; tcp.Annotations == nil {
tcp.Annotations = make(map[string]string)
}

Expand Down

0 comments on commit fb45a58

Please sign in to comment.