From 8819e93d9186f33edc931b3585bc82ea6f5cba22 Mon Sep 17 00:00:00 2001 From: felipe-colussi Date: Fri, 15 Sep 2023 15:15:52 -0300 Subject: [PATCH] remove get deadlock --- storage/kubernetes/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/kubernetes/controller.go b/storage/kubernetes/controller.go index d540eef..ecaf89e 100644 --- a/storage/kubernetes/controller.go +++ b/storage/kubernetes/controller.go @@ -99,7 +99,7 @@ func (s *storage) init(secrets v1controller.SecretController) { func (s *storage) syncStorage() { var updateStorage bool - secret, err := s.Get() + secret, err := s.storage.Get() if err == nil && cert.IsValidTLSSecret(secret) { // local storage had a cached secret, ensure that it exists in Kubernetes _, err := s.secrets.Create(&v1.Secret{