recall repo maintenance history on restart

Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
This commit is contained in:
Lyndon-Li
2025-01-06 16:39:00 +08:00
parent db69829fd7
commit 6b73a256d5
7 changed files with 26 additions and 97 deletions

View File

@@ -480,7 +480,7 @@ func (s *server) checkNodeAgent() {
func (s *server) initRepoManager() error {
// ensure the repo key secret is set up
if err := repokey.EnsureCommonRepositoryKey(s.kubeClient.CoreV1(), s.namespace); err != nil {
if err := repokey.EnsureCommonRepositoryKey(s.mgr.GetClient(), s.namespace); err != nil {
return err
}