fix(crd): Declare Build recovery AttemptTime field optional
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 @@
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 @@
// 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"`
}