This commit is contained in:
Jakub Kabza
2019-09-05 11:31:32 +02:00
parent ff1f11b18f
commit 3c83a7873d
2 changed files with 14 additions and 3 deletions

View File

@ -107,10 +107,11 @@ func (r *OAuth2ClientReconciler) registerOAuth2Client(ctx context.Context, clien
Description: err.Error(),
}
if updateErr := r.Status().Update(ctx, client); updateErr != nil {
return err
r.Log.Error(err, fmt.Sprintf("error registring client %s/%s ", client.Name, client.Namespace), "oauth2client", "register")
return updateErr
}
return err
return nil
}
clientSecret := apiv1.Secret{