add selector for isgw service
Signed-off-by: Dmitry Yusupov <dmitry.yusupov@nexenta.com>
This commit is contained in:
1 parent
d91c0560cf
commit
06b6be3866
1 file changed
+7
-1
@@ -220,7 +220,13 @@ func (c *ISGWController) makeDeployment(svcname, namespace, rookImage string, is
|
||||
Name: name,
|
||||
Namespace: namespace,
|
||||
},
|
||||
Spec: apps.DeploymentSpec{Template: podSpec, Replicas: &instancesCount},
|
||||
Spec: apps.DeploymentSpec{
|
||||
Selector: &metav1.LabelSelector{
|
||||
MatchLabels: podSpec.Labels,
|
||||
},
|
||||
Template: podSpec,
|
||||
Replicas: &instancesCount,
|
||||
},
|
||||
}
|
||||
k8sutil.SetOwnerRef(c.context.Clientset, namespace, &d.ObjectMeta, &c.ownerRef)
|
||||
return d
|
||||
|
||||
Reference in new issue
Block a user