This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 827b90e7efe0657f410abe2b17739acf26b794ae
Author: Antonin Stefanutti <[email protected]>
AuthorDate: Fri Jun 12 11:53:49 2020 +0200

    fix(crd): Declare Build recovery AttemptTime field optional
---
 deploy/crd-build.yaml             | 1 -
 pkg/apis/camel/v1/common_types.go | 5 +++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/deploy/crd-build.yaml b/deploy/crd-build.yaml
index 10dcd13..0eda499 100644
--- a/deploy/crd-build.yaml
+++ b/deploy/crd-build.yaml
@@ -4675,7 +4675,6 @@ spec:
                       required:
                         - attempt
                         - attemptMax
-                        - attemptTime
                       type: object
                     time:
                       format: date-time
diff --git a/pkg/apis/camel/v1/common_types.go 
b/pkg/apis/camel/v1/common_types.go
index b523ffe..ee660f7 100644
--- a/pkg/apis/camel/v1/common_types.go
+++ b/pkg/apis/camel/v1/common_types.go
@@ -45,8 +45,9 @@ type Failure struct {
 
 // FailureRecovery --
 type FailureRecovery struct {
-       Attempt     int         `json:"attempt"`
-       AttemptMax  int         `json:"attemptMax"`
+       Attempt    int `json:"attempt"`
+       AttemptMax int `json:"attemptMax"`
+       // +optional
        AttemptTime metav1.Time `json:"attemptTime"`
 }
 

Reply via email to