-
Notifications
You must be signed in to change notification settings - Fork 103
Bug 1844471: bump kubernetes to 1.19.0-rc.2 #132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 14 commits
79255af
2e2920a
944393e
61fa0a3
3aba14e
41fd0e3
9f9f266
7f6bb8b
5197be6
7dc1d9a
e938f1b
846373e
f23a48d
b78bd3b
d857ce4
c7dfd6b
e9678d3
f747ca3
c3310f0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,7 @@ package v1 | |
| import ( | ||
| "strings" | ||
|
|
||
| metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
| "k8s.io/apimachinery/pkg/conversion" | ||
| "k8s.io/apimachinery/pkg/util/intstr" | ||
|
|
||
|
|
@@ -45,7 +46,7 @@ func Convert_apps_DeploymentTriggerImageChangeParams_To_v1_DeploymentTriggerImag | |
| return nil | ||
| } | ||
|
|
||
| func Convert_v1_RollingDeploymentStrategyParams_To_apps_RollingDeploymentStrategyParams(in *v1.RollingDeploymentStrategyParams, out *newer.RollingDeploymentStrategyParams, s conversion.Scope) error { | ||
| func Convert_v1_RollingDeploymentStrategyParams_To_apps_RollingDeploymentStrategyParams(in *v1.RollingDeploymentStrategyParams, out *newer.RollingDeploymentStrategyParams, _ conversion.Scope) error { | ||
| SetDefaults_RollingDeploymentStrategyParams(in) | ||
|
|
||
| out.UpdatePeriodSeconds = in.UpdatePeriodSeconds | ||
|
|
@@ -54,43 +55,44 @@ func Convert_v1_RollingDeploymentStrategyParams_To_apps_RollingDeploymentStrateg | |
|
|
||
| if in.Pre != nil { | ||
| out.Pre = &newer.LifecycleHook{} | ||
| if err := Convert_v1_LifecycleHook_To_apps_LifecycleHook(in.Pre, out.Pre, s); err != nil { | ||
| if err := Convert_v1_LifecycleHook_To_apps_LifecycleHook(in.Pre, out.Pre, nil); err != nil { | ||
| return err | ||
| } | ||
| } | ||
| if in.Post != nil { | ||
| out.Post = &newer.LifecycleHook{} | ||
| if err := Convert_v1_LifecycleHook_To_apps_LifecycleHook(in.Post, out.Post, s); err != nil { | ||
| if err := Convert_v1_LifecycleHook_To_apps_LifecycleHook(in.Post, out.Post, nil); err != nil { | ||
|
||
| return err | ||
| } | ||
| } | ||
| if in.MaxUnavailable != nil { | ||
| if err := s.Convert(in.MaxUnavailable, &out.MaxUnavailable, 0); err != nil { | ||
| if err := metav1.Convert_intstr_IntOrString_To_intstr_IntOrString(in.MaxUnavailable, &out.MaxUnavailable, nil); err != nil { | ||
| return err | ||
| } | ||
| } | ||
| if in.MaxSurge != nil { | ||
| if err := s.Convert(in.MaxSurge, &out.MaxSurge, 0); err != nil { | ||
| if err := metav1.Convert_intstr_IntOrString_To_intstr_IntOrString(in.MaxSurge, &out.MaxSurge, nil); err != nil { | ||
| return err | ||
| } | ||
| } | ||
|
|
||
| return nil | ||
| } | ||
|
|
||
| func Convert_apps_RollingDeploymentStrategyParams_To_v1_RollingDeploymentStrategyParams(in *newer.RollingDeploymentStrategyParams, out *v1.RollingDeploymentStrategyParams, s conversion.Scope) error { | ||
| func Convert_apps_RollingDeploymentStrategyParams_To_v1_RollingDeploymentStrategyParams(in *newer.RollingDeploymentStrategyParams, out *v1.RollingDeploymentStrategyParams, _ conversion.Scope) error { | ||
| out.UpdatePeriodSeconds = in.UpdatePeriodSeconds | ||
| out.IntervalSeconds = in.IntervalSeconds | ||
| out.TimeoutSeconds = in.TimeoutSeconds | ||
|
|
||
| if in.Pre != nil { | ||
| out.Pre = &v1.LifecycleHook{} | ||
| if err := Convert_apps_LifecycleHook_To_v1_LifecycleHook(in.Pre, out.Pre, s); err != nil { | ||
| if err := Convert_apps_LifecycleHook_To_v1_LifecycleHook(in.Pre, out.Pre, nil); err != nil { | ||
| return err | ||
| } | ||
| } | ||
| if in.Post != nil { | ||
| out.Post = &v1.LifecycleHook{} | ||
| if err := Convert_apps_LifecycleHook_To_v1_LifecycleHook(in.Post, out.Post, s); err != nil { | ||
| if err := Convert_apps_LifecycleHook_To_v1_LifecycleHook(in.Post, out.Post, nil); err != nil { | ||
| return err | ||
| } | ||
| } | ||
|
|
@@ -101,11 +103,13 @@ func Convert_apps_RollingDeploymentStrategyParams_To_v1_RollingDeploymentStrateg | |
| if out.MaxSurge == nil { | ||
| out.MaxSurge = &intstr.IntOrString{} | ||
| } | ||
| if err := s.Convert(&in.MaxUnavailable, out.MaxUnavailable, 0); err != nil { | ||
|
|
||
| if err := metav1.Convert_intstr_IntOrString_To_intstr_IntOrString(&in.MaxUnavailable, out.MaxUnavailable, nil); err != nil { | ||
| return err | ||
| } | ||
| if err := s.Convert(&in.MaxSurge, out.MaxSurge, 0); err != nil { | ||
| if err := metav1.Convert_intstr_IntOrString_To_intstr_IntOrString(&in.MaxSurge, out.MaxSurge, nil); err != nil { | ||
| return err | ||
| } | ||
|
|
||
| return nil | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will revert.