Skip to content

Commit

Permalink
remove get deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
felipe-colussi committed Sep 15, 2023
1 parent 2f2edde commit 8819e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/kubernetes/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 8819e93

Please sign in to comment.