astefanutti commented on code in PR #3511:
URL: https://github.com/apache/camel-k/pull/3511#discussion_r936831941


##########
pkg/apis/camel/v1/trait/deployment.go:
##########
@@ -26,4 +30,19 @@ type DeploymentTrait struct {
        // The maximum time in seconds for the deployment to make progress 
before it
        // is considered to be failed. It defaults to 60s.
        ProgressDeadlineSeconds *int32 `property:"progress-deadline-seconds" 
json:"progressDeadlineSeconds,omitempty"`
+       // The deployment strategy to use to replace existing pods with new 
ones.
+       Strategy appsv1.DeploymentStrategyType `property:"strategy" 
json:"strategy,omitempty"`

Review Comment:
   It worked 😃, the following `enum` has been generated, which makes admission 
rejecting invalid values:
   
   ```yaml
   strategy:
     description: The deployment strategy to use to replace existing pods with 
new ones.
     enum:
       - Recreate
       - RollingUpdate
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to