Skip to content

Commit

Permalink
Merge pull request #44 from jwsui/status_fix
Browse files Browse the repository at this point in the history
fix set antreainstall status bug
  • Loading branch information
jwsui authored Feb 11, 2022
2 parents cf725c7 + 26c1013 commit bbd9042
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/statusmanager/status_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ func (status *StatusManager) setAntreaInstallStatus(conditions *[]configv1.Clust
antreaInstall := &operatorv1.AntreaInstall{}
err := status.client.Get(context.TODO(), types.NamespacedName{Namespace: operatortypes.OperatorNameSpace, Name: operatortypes.OperatorConfigName}, antreaInstall)
if err != nil {
if k8serrors.IsNotFound(err) {
log.Info("AntreaInstall not found, skipping set AntreaInstall status")
return nil
}
log.Error(err, "failed to get AntreaInstall")
return err
}
Expand Down

0 comments on commit bbd9042

Please sign in to comment.