diff --git a/pkg/apps/util/util.go b/pkg/apps/util/util.go index adc7f332dd44..985057cacec2 100644 --- a/pkg/apps/util/util.go +++ b/pkg/apps/util/util.go @@ -396,6 +396,12 @@ func HasUpdatedImages(dc *deployapi.DeploymentConfig, rc *v1.ReplicationControll // comparing replication controller template with deployment config template. func filterOutTemplateAnnotationsAndLabels(in *v1.PodTemplateSpec) *v1.PodTemplateSpec { out := *in + // TODO: Some templates and new-app sets the 'name' for the template + // PodTemplateSpec, however we don't copy it when we creating the deployment. + // That results to endless rollouts as the config change sees that as a change + // in DC. Unfortunatelly copying the name into RC will cause mass redeployment + // for all existing deployments with 'name'. + out.Name = "" out.Annotations = map[string]string{} out.Labels = map[string]string{} if in.Annotations != nil {