@@ -268,12 +268,12 @@ impl From<Error> for i32 {
268268 fn from ( err : Error ) -> Self {
269269 match err {
270270 Error :: YamlParseBufferForUnsupportedVersion { .. } => 401 ,
271- Error :: UpgradeEventNotPresent { .. } => 402 ,
272- Error :: NoDeploymentPresent { .. } => 403 ,
273- Error :: MessageInEventNotPresent { .. } => 404 ,
274- Error :: NodesInCordonedState { .. } => 405 ,
275- Error :: SingleReplicaVolumeErr { .. } => 406 ,
276- Error :: VolumeRebuildInProgress { .. } => 407 ,
271+ Error :: UpgradeEventNotPresent => 402 ,
272+ Error :: NoDeploymentPresent => 403 ,
273+ Error :: MessageInEventNotPresent => 404 ,
274+ Error :: NodesInCordonedState => 405 ,
275+ Error :: SingleReplicaVolumeErr => 406 ,
276+ Error :: VolumeRebuildInProgress => 407 ,
277277 Error :: K8sClient { .. } => 408 ,
278278 Error :: EventSerdeDeserialization { .. } => 409 ,
279279 Error :: ServiceAccountCreate { .. } => 410 ,
@@ -284,13 +284,13 @@ impl From<Error> for i32 {
284284 Error :: ClusterRoleBindingCreate { .. } => 415 ,
285285 Error :: UpgradeJobCreate { .. } => 416 ,
286286 Error :: UpgradeJobDelete { .. } => 417 ,
287- Error :: ReferenceDeploymentInvalidImage { .. } => 418 ,
288- Error :: ReferenceDeploymentNoImage { .. } => 419 ,
289- Error :: ReferenceDeploymentNoSpec { .. } => 420 ,
290- Error :: ReferenceDeploymentNoPodTemplateSpec { .. } => 421 ,
291- Error :: ReferenceDeploymentNoContainers { .. } => 422 ,
287+ Error :: ReferenceDeploymentInvalidImage => 418 ,
288+ Error :: ReferenceDeploymentNoImage => 419 ,
289+ Error :: ReferenceDeploymentNoSpec => 420 ,
290+ Error :: ReferenceDeploymentNoPodTemplateSpec => 421 ,
291+ Error :: ReferenceDeploymentNoContainers => 422 ,
292292 Error :: NodeSpecNotPresent { .. } => 423 ,
293- Error :: PodNameNotPresent { .. } => 424 ,
293+ Error :: PodNameNotPresent => 424 ,
294294 Error :: UpgradeJobStatusNotPresent { .. } => 425 ,
295295 Error :: UpgradeJobNotPresent { .. } => 426 ,
296296 Error :: ListPodsWithLabel { .. } => 427 ,
@@ -309,16 +309,16 @@ impl From<Error> for i32 {
309309 Error :: OpeningFile { .. } => 440 ,
310310 Error :: YamlParseFromFile { .. } => 441 ,
311311 Error :: SemverParse { .. } => 442 ,
312- Error :: SourceTargetVersionSame { .. } => 443 ,
313- Error :: NotAValidSourceForUpgrade { .. } => 444 ,
314- Error :: InvalidUpgradePath { .. } => 445 ,
312+ Error :: SourceTargetVersionSame => 443 ,
313+ Error :: NotAValidSourceForUpgrade => 444 ,
314+ Error :: InvalidUpgradePath => 445 ,
315315 Error :: DeleteEventsWithFieldSelector { .. } => 446 ,
316316 Error :: ReadFromFile { .. } => 447 ,
317317 Error :: GetUpgradeConfigMap { .. } => 448 ,
318318 Error :: UpgradeConfigMapCreate { .. } => 449 ,
319319 Error :: UpgradeConfigMapDelete { .. } => 450 ,
320320 Error :: InvalidSetFileArguments { .. } => 451 ,
321- Error :: SpecifiedKeyNotPresent { .. } => 452 ,
321+ Error :: SpecifiedKeyNotPresent => 452 ,
322322 }
323323 }
324324}
0 commit comments