| ... | ... |
@@ -269,7 +269,9 @@ message DeploymentStrategy {
|
| 269 | 269 |
// Type is the name of a deployment strategy. |
| 270 | 270 |
optional string type = 1; |
| 271 | 271 |
|
| 272 |
- // CustomParams are the input to the Custom deployment strategy. |
|
| 272 |
+ // CustomParams are the input to the Custom deployment strategy, and may also |
|
| 273 |
+ // be specified for the Recreate and Rolling strategies to customize the execution |
|
| 274 |
+ // process that runs the deployment. |
|
| 273 | 275 |
optional CustomDeploymentStrategyParams customParams = 2; |
| 274 | 276 |
|
| 275 | 277 |
// RecreateParams are the input to the Recreate deployment strategy. |
| ... | ... |
@@ -278,7 +280,7 @@ message DeploymentStrategy {
|
| 278 | 278 |
// RollingParams are the input to the Rolling deployment strategy. |
| 279 | 279 |
optional RollingDeploymentStrategyParams rollingParams = 4; |
| 280 | 280 |
|
| 281 |
- // Resources contains resource requirements to execute the deployment and any hooks |
|
| 281 |
+ // Resources contains resource requirements to execute the deployment and any hooks. |
|
| 282 | 282 |
optional k8s.io.kubernetes.pkg.api.v1.ResourceRequirements resources = 5; |
| 283 | 283 |
|
| 284 | 284 |
// Labels is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods. |
| ... | ... |
@@ -424,8 +426,8 @@ message RollingDeploymentStrategyParams {
|
| 424 | 424 |
optional LifecycleHook pre = 7; |
| 425 | 425 |
|
| 426 | 426 |
// Post is a lifecycle hook which is executed after the strategy has |
| 427 |
- // finished all deployment logic. The LifecycleHookFailurePolicyAbort policy |
|
| 428 |
- // is NOT supported. |
|
| 427 |
+ // finished all deployment logic. All LifecycleHookFailurePolicy values |
|
| 428 |
+ // are supported. |
|
| 429 | 429 |
optional LifecycleHook post = 8; |
| 430 | 430 |
} |
| 431 | 431 |
|
| ... | ... |
@@ -23218,7 +23218,7 @@ |
| 23218 | 23218 |
}, |
| 23219 | 23219 |
"customParams": {
|
| 23220 | 23220 |
"$ref": "v1.CustomDeploymentStrategyParams", |
| 23221 |
- "description": "CustomParams are the input to the Custom deployment strategy." |
|
| 23221 |
+ "description": "CustomParams are the input to the Custom deployment strategy, and may also be specified for the Recreate and Rolling strategies to customize the execution process that runs the deployment." |
|
| 23222 | 23222 |
}, |
| 23223 | 23223 |
"recreateParams": {
|
| 23224 | 23224 |
"$ref": "v1.RecreateDeploymentStrategyParams", |
| ... | ... |
@@ -23230,7 +23230,7 @@ |
| 23230 | 23230 |
}, |
| 23231 | 23231 |
"resources": {
|
| 23232 | 23232 |
"$ref": "v1.ResourceRequirements", |
| 23233 |
- "description": "Resources contains resource requirements to execute the deployment and any hooks" |
|
| 23233 |
+ "description": "Resources contains resource requirements to execute the deployment and any hooks." |
|
| 23234 | 23234 |
}, |
| 23235 | 23235 |
"labels": {
|
| 23236 | 23236 |
"type": "object", |
| ... | ... |
@@ -23399,7 +23399,7 @@ |
| 23399 | 23399 |
}, |
| 23400 | 23400 |
"post": {
|
| 23401 | 23401 |
"$ref": "v1.LifecycleHook", |
| 23402 |
- "description": "Post is a lifecycle hook which is executed after the strategy has finished all deployment logic. The LifecycleHookFailurePolicyAbort policy is NOT supported." |
|
| 23402 |
+ "description": "Post is a lifecycle hook which is executed after the strategy has finished all deployment logic. All LifecycleHookFailurePolicy values are supported." |
|
| 23403 | 23403 |
} |
| 23404 | 23404 |
} |
| 23405 | 23405 |
}, |
| ... | ... |
@@ -269,7 +269,9 @@ message DeploymentStrategy {
|
| 269 | 269 |
// Type is the name of a deployment strategy. |
| 270 | 270 |
optional string type = 1; |
| 271 | 271 |
|
| 272 |
- // CustomParams are the input to the Custom deployment strategy. |
|
| 272 |
+ // CustomParams are the input to the Custom deployment strategy, and may also |
|
| 273 |
+ // be specified for the Recreate and Rolling strategies to customize the execution |
|
| 274 |
+ // process that runs the deployment. |
|
| 273 | 275 |
optional CustomDeploymentStrategyParams customParams = 2; |
| 274 | 276 |
|
| 275 | 277 |
// RecreateParams are the input to the Recreate deployment strategy. |
| ... | ... |
@@ -278,7 +280,7 @@ message DeploymentStrategy {
|
| 278 | 278 |
// RollingParams are the input to the Rolling deployment strategy. |
| 279 | 279 |
optional RollingDeploymentStrategyParams rollingParams = 4; |
| 280 | 280 |
|
| 281 |
- // Resources contains resource requirements to execute the deployment and any hooks |
|
| 281 |
+ // Resources contains resource requirements to execute the deployment and any hooks. |
|
| 282 | 282 |
optional k8s.io.kubernetes.pkg.api.v1.ResourceRequirements resources = 5; |
| 283 | 283 |
|
| 284 | 284 |
// Labels is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods. |
| ... | ... |
@@ -424,8 +426,8 @@ message RollingDeploymentStrategyParams {
|
| 424 | 424 |
optional LifecycleHook pre = 7; |
| 425 | 425 |
|
| 426 | 426 |
// Post is a lifecycle hook which is executed after the strategy has |
| 427 |
- // finished all deployment logic. The LifecycleHookFailurePolicyAbort policy |
|
| 428 |
- // is NOT supported. |
|
| 427 |
+ // finished all deployment logic. All LifecycleHookFailurePolicy values |
|
| 428 |
+ // are supported. |
|
| 429 | 429 |
optional LifecycleHook post = 8; |
| 430 | 430 |
} |
| 431 | 431 |
|
| ... | ... |
@@ -177,10 +177,10 @@ func (DeploymentRequest) SwaggerDoc() map[string]string {
|
| 177 | 177 |
var map_DeploymentStrategy = map[string]string{
|
| 178 | 178 |
"": "DeploymentStrategy describes how to perform a deployment.", |
| 179 | 179 |
"type": "Type is the name of a deployment strategy.", |
| 180 |
- "customParams": "CustomParams are the input to the Custom deployment strategy.", |
|
| 180 |
+ "customParams": "CustomParams are the input to the Custom deployment strategy, and may also be specified for the Recreate and Rolling strategies to customize the execution process that runs the deployment.", |
|
| 181 | 181 |
"recreateParams": "RecreateParams are the input to the Recreate deployment strategy.", |
| 182 | 182 |
"rollingParams": "RollingParams are the input to the Rolling deployment strategy.", |
| 183 |
- "resources": "Resources contains resource requirements to execute the deployment and any hooks", |
|
| 183 |
+ "resources": "Resources contains resource requirements to execute the deployment and any hooks.", |
|
| 184 | 184 |
"labels": "Labels is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods.", |
| 185 | 185 |
"annotations": "Annotations is a set of key, value pairs added to custom deployer and lifecycle pre/post hook pods.", |
| 186 | 186 |
} |
| ... | ... |
@@ -254,7 +254,7 @@ var map_RollingDeploymentStrategyParams = map[string]string{
|
| 254 | 254 |
"maxUnavailable": "MaxUnavailable is the maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total pods at the start of update (ex: 10%). Absolute number is calculated from percentage by rounding up.\n\nThis cannot be 0 if MaxSurge is 0. By default, 25% is used.\n\nExample: when this is set to 30%, the old RC can be scaled down by 30% immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that at least 70% of original number of pods are available at all times during the update.", |
| 255 | 255 |
"maxSurge": "MaxSurge is the maximum number of pods that can be scheduled above the original number of pods. Value can be an absolute number (ex: 5) or a percentage of total pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up.\n\nThis cannot be 0 if MaxUnavailable is 0. By default, 25% is used.\n\nExample: when this is set to 30%, the new RC can be scaled up by 30% immediately when the rolling update starts. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of original pods.", |
| 256 | 256 |
"pre": "Pre is a lifecycle hook which is executed before the deployment process begins. All LifecycleHookFailurePolicy values are supported.", |
| 257 |
- "post": "Post is a lifecycle hook which is executed after the strategy has finished all deployment logic. The LifecycleHookFailurePolicyAbort policy is NOT supported.", |
|
| 257 |
+ "post": "Post is a lifecycle hook which is executed after the strategy has finished all deployment logic. All LifecycleHookFailurePolicy values are supported.", |
|
| 258 | 258 |
} |
| 259 | 259 |
|
| 260 | 260 |
func (RollingDeploymentStrategyParams) SwaggerDoc() map[string]string {
|
| ... | ... |
@@ -671,6 +671,15 @@ func Convert_v1_DeploymentStrategy_To_api_DeploymentStrategy(in *DeploymentStrat |
| 671 | 671 |
|
| 672 | 672 |
func autoConvert_api_DeploymentStrategy_To_v1_DeploymentStrategy(in *api.DeploymentStrategy, out *DeploymentStrategy, s conversion.Scope) error {
|
| 673 | 673 |
out.Type = DeploymentStrategyType(in.Type) |
| 674 |
+ if in.CustomParams != nil {
|
|
| 675 |
+ in, out := &in.CustomParams, &out.CustomParams |
|
| 676 |
+ *out = new(CustomDeploymentStrategyParams) |
|
| 677 |
+ if err := Convert_api_CustomDeploymentStrategyParams_To_v1_CustomDeploymentStrategyParams(*in, *out, s); err != nil {
|
|
| 678 |
+ return err |
|
| 679 |
+ } |
|
| 680 |
+ } else {
|
|
| 681 |
+ out.CustomParams = nil |
|
| 682 |
+ } |
|
| 674 | 683 |
if in.RecreateParams != nil {
|
| 675 | 684 |
in, out := &in.RecreateParams, &out.RecreateParams |
| 676 | 685 |
*out = new(RecreateDeploymentStrategyParams) |
| ... | ... |
@@ -689,15 +698,6 @@ func autoConvert_api_DeploymentStrategy_To_v1_DeploymentStrategy(in *api.Deploym |
| 689 | 689 |
} else {
|
| 690 | 690 |
out.RollingParams = nil |
| 691 | 691 |
} |
| 692 |
- if in.CustomParams != nil {
|
|
| 693 |
- in, out := &in.CustomParams, &out.CustomParams |
|
| 694 |
- *out = new(CustomDeploymentStrategyParams) |
|
| 695 |
- if err := Convert_api_CustomDeploymentStrategyParams_To_v1_CustomDeploymentStrategyParams(*in, *out, s); err != nil {
|
|
| 696 |
- return err |
|
| 697 |
- } |
|
| 698 |
- } else {
|
|
| 699 |
- out.CustomParams = nil |
|
| 700 |
- } |
|
| 701 | 692 |
if err := api_v1.Convert_api_ResourceRequirements_To_v1_ResourceRequirements(&in.Resources, &out.Resources, s); err != nil {
|
| 702 | 693 |
return err |
| 703 | 694 |
} |
| ... | ... |
@@ -365,6 +365,15 @@ func DeepCopy_api_DeploymentStrategy(in interface{}, out interface{}, c *convers
|
| 365 | 365 |
in := in.(*DeploymentStrategy) |
| 366 | 366 |
out := out.(*DeploymentStrategy) |
| 367 | 367 |
out.Type = in.Type |
| 368 |
+ if in.CustomParams != nil {
|
|
| 369 |
+ in, out := &in.CustomParams, &out.CustomParams |
|
| 370 |
+ *out = new(CustomDeploymentStrategyParams) |
|
| 371 |
+ if err := DeepCopy_api_CustomDeploymentStrategyParams(*in, *out, c); err != nil {
|
|
| 372 |
+ return err |
|
| 373 |
+ } |
|
| 374 |
+ } else {
|
|
| 375 |
+ out.CustomParams = nil |
|
| 376 |
+ } |
|
| 368 | 377 |
if in.RecreateParams != nil {
|
| 369 | 378 |
in, out := &in.RecreateParams, &out.RecreateParams |
| 370 | 379 |
*out = new(RecreateDeploymentStrategyParams) |
| ... | ... |
@@ -383,15 +392,6 @@ func DeepCopy_api_DeploymentStrategy(in interface{}, out interface{}, c *convers
|
| 383 | 383 |
} else {
|
| 384 | 384 |
out.RollingParams = nil |
| 385 | 385 |
} |
| 386 |
- if in.CustomParams != nil {
|
|
| 387 |
- in, out := &in.CustomParams, &out.CustomParams |
|
| 388 |
- *out = new(CustomDeploymentStrategyParams) |
|
| 389 |
- if err := DeepCopy_api_CustomDeploymentStrategyParams(*in, *out, c); err != nil {
|
|
| 390 |
- return err |
|
| 391 |
- } |
|
| 392 |
- } else {
|
|
| 393 |
- out.CustomParams = nil |
|
| 394 |
- } |
|
| 395 | 386 |
if err := pkg_api.DeepCopy_api_ResourceRequirements(&in.Resources, &out.Resources, c); err != nil {
|
| 396 | 387 |
return err |
| 397 | 388 |
} |