Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

Commit 8eb6b46

Browse files
lorenzo-angeLorenzo Angelini
and
Lorenzo Angelini
authored
use only 'function' and 'created-by' labels as deployment matchLabels (#1212)
Co-authored-by: Lorenzo Angelini <[email protected]>
1 parent c7ee7b5 commit 8eb6b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/utils/kubelessutil.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ func EnsureFuncDeployment(client kubernetes.Interface, funcObj *kubelessApi.Func
626626
dpm.OwnerReferences = or
627627
dpm.ObjectMeta.Name = funcObj.ObjectMeta.Name
628628
dpm.Spec.Selector = &metav1.LabelSelector{
629-
MatchLabels: funcObj.ObjectMeta.Labels,
629+
MatchLabels: map[string]string{"created-by": funcObj.ObjectMeta.Labels["created-by"], "function": funcObj.ObjectMeta.Labels["function"]},
630630
}
631631

632632
dpm.Spec.Strategy = appsv1.DeploymentStrategy{

0 commit comments

Comments
 (0)