2279
clearVersionFromRoutingConfig(workerDeploymentData, old, vd)
2280
2282
>
changed = true
2283
>
deploymentData.Versions = append(deploymentData.Versions, vd)
2284
>
2285
>
// Go through the new deployment data format for this deployment.
2286
>
workerDeploymentData := deploymentData.GetDeploymentsData()[vd.GetVersion().GetDeploymentName()]
2287
>
clearVersionFromRoutingConfig(workerDeploymentData, nil, vd)
2288
>
}
2289
} else if v := req.GetForgetVersion(); v != nil {
2290
// Go through the new and old deployment data format for this deployment and remove the version if present.