when create more than two ingress-controllers, the ingress-controller pod args are duplicate

This commit is contained in:
styshoo
2021-08-25 11:19:30 +08:00
parent 9dfb736a03
commit 637e3a4b0a

View File

@@ -310,7 +310,8 @@ func (c *routerOperator) createOrUpdateRouterWorkload(namespace string, publishS
if err != nil {
if errors.IsNotFound(err) {
deployment = obj.(*v1.Deployment)
deploymentOri := obj.(*v1.Deployment)
deployment = deploymentOri.DeepCopy()
deployment.Name = ingressControllerPrefix + namespace