Skip to content

Commit

Permalink
Merge pull request #6555 from yanggangtony/clean-server
Browse files Browse the repository at this point in the history
Delete redundance checkNodeAgent code
  • Loading branch information
reasonerjt authored Jul 31, 2023
2 parents 462022c + 2f20fac commit 3e631ca
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/cmd/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,13 +586,6 @@ func (s *server) checkNodeAgent() {
}

func (s *server) initRepoManager() error {
// warn if node agent does not exist
if err := nodeagent.IsRunning(s.ctx, s.kubeClient, s.namespace); err == nodeagent.ErrDaemonSetNotFound {
s.logger.Warn("Velero node agent not found; pod volume backups/restores will not work until it's created")
} else if err != nil {
s.logger.WithError(errors.WithStack(err)).Warn("Error checking for existence of velero node agent")
}

// ensure the repo key secret is set up
if err := repokey.EnsureCommonRepositoryKey(s.kubeClient.CoreV1(), s.namespace); err != nil {
return err
Expand Down

0 comments on commit 3e631ca

Please sign in to comment.