Skip to content

Commit 1170de4

Browse files
committed
Ensure lastTransitionTime stays optional in v1alpha3 & v1alpha4
Signed-off-by: Stefan Büringer [email protected]
1 parent 4682c6b commit 1170de4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/apis/core/v1alpha3/condition_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ type Condition struct {
7272
// Last time the condition transitioned from one status to another.
7373
// This should be when the underlying condition changed. If that is not known, then using the time when
7474
// the API field changed is acceptable.
75-
// +required
75+
// +optional
7676
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
7777

7878
// The reason for the condition's last transition in CamelCase.

internal/apis/core/v1alpha4/condition_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ type Condition struct {
7272
// Last time the condition transitioned from one status to another.
7373
// This should be when the underlying condition changed. If that is not known, then using the time when
7474
// the API field changed is acceptable.
75-
// +required
75+
// +optional
7676
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
7777

7878
// The reason for the condition's last transition in CamelCase.

0 commit comments

Comments
 (0)