federation: simplify deepcopy calls

This commit is contained in:
Dr. Stefan Schimanski
2017-08-15 13:46:53 +02:00
parent ac33bfd53b
commit 5427ff1583
14 changed files with 32 additions and 144 deletions

View File

@@ -70,6 +70,6 @@ func DeepCopyDeploymentObjectMeta(meta metav1.ObjectMeta) metav1.ObjectMeta {
func DeepCopyDeployment(a *extensions_v1.Deployment) *extensions_v1.Deployment {
return &extensions_v1.Deployment{
ObjectMeta: DeepCopyDeploymentObjectMeta(a.ObjectMeta),
Spec: *(DeepCopyApiTypeOrPanic(&a.Spec).(*extensions_v1.DeploymentSpec)),
Spec: *a.Spec.DeepCopy(),
}
}