Skip to content

Commit 57e2e50

Browse files
Updated generated deepcopy/conversion
1 parent 79b9aeb commit 57e2e50

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

pkg/deploy/api/deep_copy_generated.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -270,15 +270,6 @@ func DeepCopy_api_DeploymentLogOptions(in DeploymentLogOptions, out *DeploymentL
270270

271271
func DeepCopy_api_DeploymentStrategy(in DeploymentStrategy, out *DeploymentStrategy, c *conversion.Cloner) error {
272272
out.Type = in.Type
273-
if in.CustomParams != nil {
274-
in, out := in.CustomParams, &out.CustomParams
275-
*out = new(CustomDeploymentStrategyParams)
276-
if err := DeepCopy_api_CustomDeploymentStrategyParams(*in, *out, c); err != nil {
277-
return err
278-
}
279-
} else {
280-
out.CustomParams = nil
281-
}
282273
if in.RecreateParams != nil {
283274
in, out := in.RecreateParams, &out.RecreateParams
284275
*out = new(RecreateDeploymentStrategyParams)
@@ -297,6 +288,15 @@ func DeepCopy_api_DeploymentStrategy(in DeploymentStrategy, out *DeploymentStrat
297288
} else {
298289
out.RollingParams = nil
299290
}
291+
if in.CustomParams != nil {
292+
in, out := in.CustomParams, &out.CustomParams
293+
*out = new(CustomDeploymentStrategyParams)
294+
if err := DeepCopy_api_CustomDeploymentStrategyParams(*in, *out, c); err != nil {
295+
return err
296+
}
297+
} else {
298+
out.CustomParams = nil
299+
}
300300
if err := api.DeepCopy_api_ResourceRequirements(in.Resources, &out.Resources, c); err != nil {
301301
return err
302302
}

pkg/deploy/api/v1/conversion_generated.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -759,15 +759,6 @@ func autoConvert_api_DeploymentStrategy_To_v1_DeploymentStrategy(in *deploy_api.
759759
defaulting.(func(*deploy_api.DeploymentStrategy))(in)
760760
}
761761
out.Type = DeploymentStrategyType(in.Type)
762-
if in.CustomParams != nil {
763-
in, out := &in.CustomParams, &out.CustomParams
764-
*out = new(CustomDeploymentStrategyParams)
765-
if err := Convert_api_CustomDeploymentStrategyParams_To_v1_CustomDeploymentStrategyParams(*in, *out, s); err != nil {
766-
return err
767-
}
768-
} else {
769-
out.CustomParams = nil
770-
}
771762
if in.RecreateParams != nil {
772763
in, out := &in.RecreateParams, &out.RecreateParams
773764
*out = new(RecreateDeploymentStrategyParams)
@@ -786,6 +777,15 @@ func autoConvert_api_DeploymentStrategy_To_v1_DeploymentStrategy(in *deploy_api.
786777
} else {
787778
out.RollingParams = nil
788779
}
780+
if in.CustomParams != nil {
781+
in, out := &in.CustomParams, &out.CustomParams
782+
*out = new(CustomDeploymentStrategyParams)
783+
if err := Convert_api_CustomDeploymentStrategyParams_To_v1_CustomDeploymentStrategyParams(*in, *out, s); err != nil {
784+
return err
785+
}
786+
} else {
787+
out.CustomParams = nil
788+
}
789789
// TODO: Inefficient conversion - can we improve it?
790790
if err := s.Convert(&in.Resources, &out.Resources, 0); err != nil {
791791
return err

0 commit comments

Comments
 (0)