From a4665e9dfb7d64c52d2f0e4ffaefb8414dcea03c Mon Sep 17 00:00:00 2001 From: bfabricio Date: Tue, 17 Dec 2024 17:54:27 -0300 Subject: [PATCH] PTEUDO-1422: remove timestamp from create condition --- api/v1/condition.go | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/api/v1/condition.go b/api/v1/condition.go index e6ae3ba..e1b4429 100644 --- a/api/v1/condition.go +++ b/api/v1/condition.go @@ -2,8 +2,6 @@ package v1 import ( "fmt" - "time" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -40,13 +38,11 @@ const ( ) func CreateCondition(condType ConditionType, status metav1.ConditionStatus, reason, message string) metav1.Condition { - now := metav1.NewTime(time.Now()) return metav1.Condition{ - Type: string(condType), - Status: status, - Reason: reason, - Message: message, - LastTransitionTime: now, + Type: string(condType), + Status: status, + Reason: reason, + Message: message, } }