Skip to content

Commit a96fb62

Browse files
Updated generated deepcopy/conversion
1 parent 4afa914 commit a96fb62

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
@@ -269,15 +269,6 @@ func DeepCopy_api_DeploymentLogOptions(in DeploymentLogOptions, out *DeploymentL
269269

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

pkg/deploy/api/v1/conversion_generated.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -757,15 +757,6 @@ func autoConvert_api_DeploymentStrategy_To_v1_DeploymentStrategy(in *deploy_api.
757757
defaulting.(func(*deploy_api.DeploymentStrategy))(in)
758758
}
759759
out.Type = DeploymentStrategyType(in.Type)
760-
if in.CustomParams != nil {
761-
in, out := &in.CustomParams, &out.CustomParams
762-
*out = new(CustomDeploymentStrategyParams)
763-
if err := Convert_api_CustomDeploymentStrategyParams_To_v1_CustomDeploymentStrategyParams(*in, *out, s); err != nil {
764-
return err
765-
}
766-
} else {
767-
out.CustomParams = nil
768-
}
769760
if in.RecreateParams != nil {
770761
in, out := &in.RecreateParams, &out.RecreateParams
771762
*out = new(RecreateDeploymentStrategyParams)
@@ -784,6 +775,15 @@ func autoConvert_api_DeploymentStrategy_To_v1_DeploymentStrategy(in *deploy_api.
784775
} else {
785776
out.RollingParams = nil
786777
}
778+
if in.CustomParams != nil {
779+
in, out := &in.CustomParams, &out.CustomParams
780+
*out = new(CustomDeploymentStrategyParams)
781+
if err := Convert_api_CustomDeploymentStrategyParams_To_v1_CustomDeploymentStrategyParams(*in, *out, s); err != nil {
782+
return err
783+
}
784+
} else {
785+
out.CustomParams = nil
786+
}
787787
// TODO: Inefficient conversion - can we improve it?
788788
if err := s.Convert(&in.Resources, &out.Resources, 0); err != nil {
789789
return err

0 commit comments

Comments
 (0)