Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
fixup! change the way labels are set
Browse files Browse the repository at this point in the history
  • Loading branch information
Namrata Chaudhary committed Dec 18, 2019
1 parent 5f16ba1 commit e2b852a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/oneagent/oneagent_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,13 +392,13 @@ func newDaemonSetForCR(instance *dynatracev1alpha1.OneAgent) *appsv1.DaemonSet {
ObjectMeta: metav1.ObjectMeta{
Name: instance.Name,
Namespace: instance.Namespace,
Labels: instance.GetLabels(),
},
Spec: appsv1.DaemonSetSpec{
Selector: &metav1.LabelSelector{MatchLabels: instance.GetLabels()},
Template: corev1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{Labels: instance.GetLabels()},
Spec: podSpec,
Labels: instance.GetLabels(),
},
},
}
Expand Down

0 comments on commit e2b852a

Please sign in to comment.