From c4ceccf450490314ebb3f12570eece0c7a8c8234 Mon Sep 17 00:00:00 2001 From: raihankhan Date: Mon, 9 Dec 2024 15:49:52 +0600 Subject: [PATCH] Remove secret getter Signed-off-by: raihankhan --- apis/kubedb/v1/helpers.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/apis/kubedb/v1/helpers.go b/apis/kubedb/v1/helpers.go index 7a2ef65d55..1a3fecfb44 100644 --- a/apis/kubedb/v1/helpers.go +++ b/apis/kubedb/v1/helpers.go @@ -19,7 +19,6 @@ package v1 import ( "context" "fmt" - "time" "kubedb.dev/apimachinery/apis/kubedb" @@ -168,14 +167,3 @@ func GetSelectorForNetworkPolicy() map[string]string { meta_util.ManagedByLabelKey: kubedb.GroupName, } } - -func GetActivationTimeFromSecret(secretName *core.Secret) (*metav1.Time, error) { - if val, exists := secretName.Annotations[kubedb.AuthActiveFromAnnotation]; exists { - t, err := time.Parse(time.RFC3339, val) - if err != nil { - return nil, err - } - return &metav1.Time{Time: t}, nil - } - return nil, nil -}