Skip to content

Commit

Permalink
add karmada.io/system label to created execution namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Jul 23, 2024
1 parent 721495d commit df9ff8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controllers/cluster/cluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,9 @@ func (c *Controller) createExecutionSpace(cluster *clusterv1alpha1.Cluster) erro
executionSpace := &corev1.Namespace{
ObjectMeta: metav1.ObjectMeta{
Name: executionSpaceName,
Labels: map[string]string{
util.KarmadaSystemLabel: util.KarmadaSystemLabelValue,
},
},
}
err = c.Client.Create(context.TODO(), executionSpace)
Expand Down

0 comments on commit df9ff8b

Please sign in to comment.